@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&family=Orbitron:wght@400;500;700&display=swap');

/* City Time Page Specific Styles */

/* Apply a subtle gradient background to the body for this page context if possible */
/* This might be better placed in a general stylesheet or applied via JS */
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    transition: background 0.5s ease;
}

body.dark-mode {
     background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}


.city-time-page-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px; /* Space between elements */
    width: 100%;
}

.city-time-container {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent white */
    backdrop-filter: blur(10px); /* Frosted glass effect */
    padding: 45px 55px; /* Slightly increased padding */
    border-radius: 16px; /* More rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Softer, deeper shadow */
    width: 90%;
    max-width: 750px; /* Slightly wider */
    border: 1px solid rgba(224, 224, 224, 0.6);
    transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.city-page-title {
    font-family: 'Poppins', sans-serif; /* New font */
    font-size: 2.4rem; /* Slightly larger */
    font-weight: 600; /* Bolder */
    color: #2c3e50; /* Dark blue-grey */
    margin-bottom: 30px; /* More space */
    transition: color 0.5s ease;
}

.city-time-digital {
    font-family: 'Orbitron', sans-serif;
    font-size: 5.5rem; /* Even larger */
    font-weight: 500;
    color: #1a2533; /* Darker shade */
    letter-spacing: 5px; /* More spacing */
    margin-bottom: 15px;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Adjusted shadow */
    transition: color 0.5s ease, text-shadow 0.5s ease;
    display: flex; /* Use flex to align digits and period */
    align-items: baseline; /* Align text along the baseline */
    justify-content: center; /* Center the whole time block */
}

.city-time-digital .time-digits {
    /* Inherits most styles from parent */
}

.city-time-digital .time-period {
    font-size: 2.5rem; /* Significantly smaller size for AM/PM */
    font-weight: 400; /* Lighter weight */
    margin-left: 10px; /* Space between time and period */
    /* Inherits color and transition */
}


.city-date-display {
    font-family: 'Poppins', sans-serif; /* New font */
    font-size: 1.5rem; /* Larger */
    font-weight: 400; /* Regular weight */
    color: #555; /* Slightly darker grey */
    letter-spacing: 1.5px; /* More spacing */
    text-transform: uppercase;
    margin-bottom: 20px; /* More space */
    transition: color 0.5s ease;
}

.city-timezone-info,
.time-difference-info {
    font-family: 'Poppins', sans-serif; /* New font */
    font-size: 1.1rem; /* Slightly larger */
    font-weight: 300; /* Lighter weight */
    color: #667; /* Adjusted grey */
    margin-top: 8px; /* More space */
    transition: color 0.5s ease;
}

.back-link-container {
    margin-top: 25px; /* More space above the link */
    width: 90%;
    max-width: 750px; /* Match container width */
    text-align: left;
}

.back-link {
    font-family: 'Poppins', sans-serif; /* New font */
    color: #3498db; /* Brighter blue */
    text-decoration: none;
    font-size: 1.1rem; /* Slightly larger */
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block; /* Needed for transform */
}

.back-link:hover {
    color: #2980b9; /* Darker blue on hover */
    text-decoration: none; /* Remove underline */
    transform: translateX(-3px); /* Slight move left effect */
}

/* Dark Mode Adjustments */
body.dark-mode .city-time-container {
    background-color: rgba(45, 55, 72, 0.85); /* Dark blue-grey, slightly transparent */
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* Darker shadow */
    border: 1px solid rgba(74, 85, 104, 0.7); /* Darker border */
}

body.dark-mode .city-page-title {
    color: #e2e8f0; /* Lighter grey */
}

body.dark-mode .city-time-digital {
    color: #f7fafc; /* Very light grey / off-white */
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4); /* Adjusted dark shadow */
}

body.dark-mode .city-date-display {
    color: #a0aec0; /* Medium grey */
}

body.dark-mode .city-timezone-info,
body.dark-mode .time-difference-info {
    color: #cbd5e0; /* Lighter grey */
}

body.dark-mode .back-link {
    color: #63b3ed; /* Lighter blue */
}

body.dark-mode .back-link:hover {
    color: #90cdf4; /* Even lighter blue */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
     .city-time-container {
        padding: 35px 40px;
        border-radius: 12px;
    }
    .city-page-title {
        font-size: 2rem;
    }
    .city-time-digital {
        font-size: 4.5rem;
        letter-spacing: 3px;
    }
    .city-date-display {
        font-size: 1.3rem;
    }
     .city-timezone-info,
    .time-difference-info {
        font-size: 1rem;
    }
    .back-link {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
     .city-time-container {
        padding: 25px 20px;
        border-radius: 10px;
    }
    .city-page-title {
        font-size: 1.7rem;
    }
    .city-time-digital {
    font-size: 3.2rem; /* Adjusted size */
    letter-spacing: 2px;
}
.city-time-digital .time-period {
    font-size: 1.5rem; /* Adjust smaller size for mobile */
    margin-left: 5px;
}
    .city-date-display {
        font-size: 1.1rem; /* Adjusted size */
    }
    .city-timezone-info,
    .time-difference-info {
        font-size: 0.9rem;
    }
    .back-link {
        font-size: 0.95rem;
    }
}
