:root {
    /* Light Theme Variables */
    --primary-color: #4a6fa1;
    --secondary-color: #6c9bcf;
    --accent-color: #ff9800;
    --text-color: #333333;
    --text-color-light: #666666;
    --background-color: #f5f7fa;
    --card-background: #ffffff;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --input-background: #ffffff;
    --input-border: #e0e0e0;
    --divider-color: #eeeeee;
    --error-color: #e53935;
    --success-color: #43a047;
    --header-gradient: linear-gradient(135deg, #4a6fa1, #6c9bcf);
    --transition-speed: 0.3s;
}

[data-theme="dark"] {
    --primary-color: #3a5683;
    --secondary-color: #5a84b3;
    --accent-color: #ffb74d;
    --text-color: #f5f5f5;
    --text-color-light: #b0b0b0;
    --background-color: #121212;
    --card-background: #1e1e1e;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --input-background: #2d2d2d;
    --input-border: #444444;
    --divider-color: #333333;
    --error-color: #ef5350;
    --success-color: #66bb6a;
    --header-gradient: linear-gradient(135deg, #2c4262, #3a5683);
}

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

html {
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color var(--transition-speed) ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo i {
    font-size: 2rem;
    color: var(--accent-color);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    background: var(--header-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.theme-toggle button {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.25rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-speed) ease;
}

.theme-toggle button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .theme-toggle button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Main Content Styles */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Search Section Styles */
.search-section {
    width: 100%;
}

.search-container {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-container input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 1px solid var(--input-border);
    border-radius: 30px;
    font-size: 1rem;
    background-color: var(--input-background);
    color: var(--text-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) ease;
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.search-container button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-speed) ease;
}

.search-container button:hover {
    background-color: var(--secondary-color);
}

.recent-searches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.recent-search-item {
    background-color: var(--card-background);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--divider-color);
}

.recent-search-item:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Weather Section Styles */
.weather-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.weather-card {
    background-color: var(--card-background);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
}

.weather-header {
    background: var(--header-gradient);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.location-info h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.location-info p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.weather-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.weather-icon {
    width: 80px;
    height: 80px;
}

.weather-body {
    padding: 2rem;
}

.temperature-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.temperature-container h3 {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.temperature-container p {
    color: var(--text-color-light);
    font-size: 1rem;
}

.weather-description {
    text-align: center;
    margin-bottom: 2rem;
}

.weather-description p {
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: capitalize;
}

.weather-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.weather-detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.weather-detail-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    width: 30px;
    text-align: center;
}

.detail-info {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.875rem;
    color: var(--text-color-light);
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 500;
}

.sunrise-sunset {
    display: flex;
    justify-content: space-around;
    background-color: rgba(0, 0, 0, 0.03);
    padding: 1.5rem;
    border-top: 1px solid var(--divider-color);
}

[data-theme="dark"] .sunrise-sunset {
    background-color: rgba(255, 255, 255, 0.03);
}

.sun-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sun-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.sun-info {
    display: flex;
    flex-direction: column;
}

.sun-label {
    font-size: 0.875rem;
    color: var(--text-color-light);
    margin-bottom: 0.25rem;
}

.sun-time {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Loading, Error, and Initial States */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    color: var(--error-color);
    text-align: center;
}

.error-container i {
    font-size: 3rem;
}

.initial-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem;
    color: var(--text-color-light);
    text-align: center;
}

.initial-state i {
    font-size: 4rem;
    color: var(--secondary-color);
    opacity: 0.7;
}

.initial-state p {
    font-size: 1.2rem;
}

/* Footer Styles */
.footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--text-color-light);
    font-size: 0.875rem;
    margin-top: auto;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.footer a:hover {
    color: var(--secondary-color);
}

/* Demo Banner */
.demo-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--accent-color);
    color: white;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.875rem;
    z-index: 1000;
}

.demo-banner a {
    color: white;
    text-decoration: underline;
}

body.has-demo-banner .app-container {
    padding-top: 2.5rem;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .weather-header {
        padding: 1.25rem 1.5rem;
    }

    .weather-body {
        padding: 1.5rem;
    }

    .weather-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .sunrise-sunset {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .weather-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .temperature-container h3 {
        font-size: 3rem;
    }
} /* Focus styles for better accessibility */
