/* Emotional Weather Styles */
.emotional-weather-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header */
.emotional-header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.emotional-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.emotional-title i {
    color: #ff6b9d;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.emotional-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* City Selection */
.city-selection {
    margin-bottom: 40px;
}

.selection-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.2);
    max-width: 600px;
    margin: 0 auto;
}

.selection-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: white;
}

.selection-header i {
    font-size: 1.5rem;
    color: #ffd700;
}

.selection-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.selection-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.form-select {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 15px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1.1rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255,215,0,0.3);
}

.form-select option {
    background: #333;
    color: white;
}

.btn {
    padding: 15px 25px;
    border: none;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b9d, #c44569);
    color: white;
    box-shadow: 0 4px 15px rgba(255,107,157,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,157,0.4);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Emotional Score */
.emotional-score {
    margin-bottom: 40px;
}

.score-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}

.score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    color: white;
}

.score-header h2 {
    margin: 0;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.last-updated {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.score-circle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    transition: stroke-dasharray 0.8s ease;
}

.progress-ring-circle.progress {
    stroke-dasharray: 565.48; /* 2 * π * 90 */
    stroke-dashoffset: 565.48;
    stroke-linecap: round;
}

.score-content {
    position: absolute;
    text-align: center;
    color: white;
}

.score-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.mood-level {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.9;
    margin-top: 5px;
}

.score-breakdown {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 15px;
    color: white;
}

.breakdown-item i {
    font-size: 2rem;
    color: #ffd700;
    width: 40px;
    text-align: center;
}

.breakdown-info {
    flex: 1;
    text-align: left;
}

.breakdown-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.breakdown-value {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Analysis Section */
.analysis-section {
    margin-bottom: 40px;
}

.analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.analysis-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.2);
}

.card-header {
    margin-bottom: 25px;
    color: white;
}

.card-header h3 {
    margin: 0;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header i {
    color: #ffd700;
}

/* Weather Analysis */
.weather-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.weather-item {
    text-align: center;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 15px;
    color: white;
}

.weather-item i {
    font-size: 1.8rem;
    color: #ffd700;
    margin-bottom: 8px;
}

.weather-label {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.weather-value {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Social Analysis */
.sentiment-chart {
    margin-bottom: 25px;
}

.sentiment-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: white;
}

.sentiment-label {
    width: 80px;
    font-weight: 600;
    font-size: 0.9rem;
}

.sentiment-bar {
    flex: 1;
    height: 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    overflow: hidden;
}

.sentiment-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.8s ease;
    width: 0%;
}

.sentiment-item.positive .sentiment-fill {
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
}

.sentiment-item.neutral .sentiment-fill {
    background: linear-gradient(90deg, #FFC107, #FFD54F);
}

.sentiment-item.negative .sentiment-fill {
    background: linear-gradient(90deg, #F44336, #EF5350);
}

.sentiment-percent {
    width: 50px;
    text-align: right;
    font-weight: 600;
}

.trending-topics {
    margin-bottom: 25px;
}

.trending-topics h4 {
    color: white;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trending-topics i {
    color: #ff6b9d;
}

.topics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.topic-tag {
    background: rgba(255,107,157,0.2);
    color: #ff6b9d;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255,107,157,0.3);
}

.sample-posts h4 {
    color: white;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sample-posts i {
    color: #4285f4;
}

.posts-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.post-item {
    background: rgba(0,0,0,0.2);
    padding: 12px 15px;
    border-radius: 10px;
    color: white;
    font-size: 0.9rem;
    line-height: 1.4;
    border-left: 3px solid #4285f4;
}

/* Trends Section */
.trends-section {
    margin-bottom: 40px;
}

.trends-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.2);
}

.trends-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    color: white;
}

.trends-header h2 {
    margin: 0;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.trends-controls {
    display: flex;
    gap: 15px;
}

.trends-chart {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 20px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Recommendations */
.recommendations-section {
    margin-bottom: 40px;
}

.recommendations-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.2);
}

.recommendations-header {
    margin-bottom: 25px;
    color: white;
}

.recommendations-header h2 {
    margin: 0;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.recommendations-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.recommendation-category h3 {
    color: white;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.recommendation-category i {
    color: #ffd700;
}

.recommendations-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommendations-list li {
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    color: white;
    line-height: 1.5;
    border-left: 4px solid #ffd700;
}

/* Global Mood Map */
.global-mood-section {
    margin-bottom: 40px;
}

.mood-map-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.2);
}

.mood-map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    color: white;
}

.mood-map-header h2 {
    margin: 0;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.mood-city-card {
    background: rgba(0,0,0,0.2);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    color: white;
    transition: transform 0.3s ease;
}

.mood-city-card:hover {
    transform: translateY(-5px);
}

.city-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.city-score {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.city-mood {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 15px;
}

.city-weather {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid #ff6b9d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content p {
    font-size: 1.1rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .score-display {
        flex-direction: column;
        gap: 30px;
    }
    
    .recommendations-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .emotional-title {
        font-size: 2.2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .selection-controls {
        flex-direction: column;
    }
    
    .score-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .trends-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .mood-map-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .weather-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mood-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .emotional-weather-container {
        padding: 15px;
    }
    
    .emotional-title {
        font-size: 1.8rem;
    }
    
    .score-card,
    .analysis-card,
    .trends-card,
    .recommendations-card,
    .mood-map-card {
        padding: 20px;
    }
    
    .weather-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    z-index: 1002;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: #4caf50;
}

.notification-error {
    background: #f44336;
}

.notification-warning {
    background: #ff9800;
}

.notification-info {
    background: #2196f3;
}