/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    margin: 20px 0;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    color: #4f46e5;
}

.logo-icon {
    font-size: 32px;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lang-btn {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.lang-btn.active {
    background: #4f46e5;
    border-color: #4f46e5;
    color: white;
}

/* Weather Alert */
.weather-alert {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.alert-icon {
    font-size: 20px;
}

/* Search Section */
.search-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.search-container {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    min-width: 250px;
}

.search-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

.suggestion-item:hover {
    background: #f8fafc;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.my-location-btn {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.my-location-btn:hover {
    background: #4338ca;
    transform: translateY(-2px);
}

.location-icon {
    font-size: 18px;
}

/* Location Section */
.location-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.location-name {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.location-indicator {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.coordinates {
    color: #64748b;
    font-size: 14px;
    font-weight: 400;
}

/* Current Weather */
.current-weather {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.weather-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.temperature-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.current-temp {
    font-size: 64px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.weather-icon {
    font-size: 64px;
}

.weather-description {
    text-align: right;
}

.condition {
    font-size: 24px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.feels-like {
    font-size: 18px;
    color: #6b7280;
}

/* Hourly Forecast */
.hourly-forecast {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hourly-forecast h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.forecast-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.forecast-item:hover {
    transform: translateY(-4px);
}

.time-label {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
    font-weight: 500;
}

.forecast-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.forecast-temp {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

/* Short Forecast */
.short-forecast {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.short-forecast h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.forecast-text {
    font-size: 16px;
    color: #374151;
    line-height: 1.7;
}

/* Ad Block */
.ad-block {
    margin: 24px 0;
}

.ad-placeholder {
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    color: #64748b;
    font-size: 18px;
    font-weight: 500;
}

/* Weather Details */
.weather-details {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.weather-details h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 24px;
}

.detail-group {
    margin-bottom: 32px;
}

.detail-group:last-child {
    margin-bottom: 0;
}

.detail-group h4 {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.detail-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-2px);
}

.detail-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 8px;
}

.detail-value {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-description {
    font-size: 13px;
    color: #6b7280;
}

.wind-arrow {
    font-size: 18px;
    color: #4f46e5;
}

/* Astronomical Data */
.astronomical-data {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.astronomical-data h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 24px;
}

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

.astro-group {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
}

.astro-group h4 {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.astro-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.astro-item:last-child {
    border-bottom: none;
}

.astro-label {
    color: #64748b;
    font-size: 14px;
}

.astro-value {
    font-weight: 600;
    color: #1e293b;
}

/* AI Analysis */
.ai-analysis {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.ai-analysis h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-content p {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.7;
}

.ai-content p:last-child {
    margin-bottom: 0;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    padding: 32px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.footer-section p {
    color: #64748b;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #4f46e5;
}

.footer-bottom {
    border-top: 1px solid #e2e8f0;
    padding: 20px 32px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .logo-icon {
        font-size: 28px;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .search-input-wrapper {
        min-width: auto;
    }
    
    .weather-main {
        flex-direction: column;
        text-align: center;
    }
    
    .weather-description {
        text-align: center;
    }
    
    .current-temp {
        font-size: 48px;
    }
    
    .weather-icon {
        font-size: 48px;
    }
    
    .condition {
        font-size: 20px;
    }
    
    .feels-like {
        font-size: 16px;
    }
    
    .forecast-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .astro-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .language-switcher {
        justify-content: center;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .current-temp {
        font-size: 40px;
    }
    
    .weather-icon {
        font-size: 40px;
    }
    
    .forecast-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-analysis {
        padding: 24px;
    }
    
    .ai-analysis h3 {
        font-size: 20px;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0 12px;
    }
    
    .header,
    .search-section,
    .location-section,
    .current-weather,
    .hourly-forecast,
    .short-forecast,
    .weather-details,
    .astronomical-data,
    .ai-analysis,
    .footer {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .current-temp {
        font-size: 36px;
    }
    
    .weather-icon {
        font-size: 36px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .logo-icon {
        font-size: 24px;
    }
}

/* Google Translate Overrides */
.goog-te-banner-frame {
    display: none !important;
}

.goog-te-menu-value {
    padding: 3px 3px;
    background: #4f46e5;
    color: white;
    border-radius: 6px;
    border: none;
}

body {
    top: 0px !important;
}

#google_translate_element {
    display: none;
}
