/* ==========================================================================
   Remarkable City Theme - Urban Inspired Calendar
   Version: 1.0
   Updated: 2024-06-10
   Changes:
   - Modern cityscape color palette with neon accents
   - Geometric shapes and architectural elements
   - Urban skyline design aesthetic
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Roboto:wght@300;400;700&display=swap');

:root {
    /* City Color Palette */
    --city-bg: #0F1621;
    --city-text: #F0F4FF;
    --city-primary: #1A2432;
    --city-secondary: #243143;
    --city-date-number: #FFFFFF;

    /* Skyline Layer Colors */
    --city-layer1: #1E2A3A;
    --city-layer2: #263448;
    --city-layer3: #2E3E56;
    --city-layer4: #364864;
    --city-layer5: #3E5272;

    /* Neon Accent Colors */
    --city-accent1: #4A90E2;
    /* Skyline Blue */
    --city-accent2: #FF5E5B;
    /* Neon Pink */
    --city-accent3: #FFD166;
    /* Taxi Yellow */
    --city-accent4: rgba(74, 144, 226, 0.7);
    --city-accent5: rgba(255, 94, 91, 0.5);

    /* Theme Variables */
    --city-shadow: rgba(74, 144, 226, 0.15);
    --city-radius: 8px;
    --city-transition: 0.3s ease-in-out;
    --city-hover: #3A7BC8;
    --city-glow: 0 0 12px rgba(74, 144, 226, 0.25);
    --city-pattern: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><rect width="1200" height="10" fill="%234A90E2" opacity="0.3"/><rect y="20" width="1200" height="8" fill="%234A90E2" opacity="0.25"/><rect y="40" width="1200" height="6" fill="%234A90E2" opacity="0.2"/></svg>');
}

/* ==================== ANIMATIONS ==================== */
@keyframes city-fade {

    0%,
    100% {
        opacity: 0.95;
    }

    50% {
        opacity: 1;
    }
}

@keyframes city-rise {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes city-pulse {

    0%,
    100% {
        box-shadow: 0 0 3px var(--city-shadow);
    }

    50% {
        box-shadow: var(--city-glow);
    }
}

@keyframes city-lights {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

/* ==================== BASE STYLES ==================== */
.remarkable-city {
    font-family: 'Roboto', sans-serif;
    color: var(--city-text);
    line-height: 1.6;
    font-size: 1rem;
    background-color: var(--city-bg);
    min-height: 100vh;
    background-image:
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100" viewBox="0 0 1200 120" preserveAspectRatio="none"><rect x="0" y="80" width="50" height="40" fill="%231A2432" opacity="0.8"/><rect x="70" y="60" width="40" height="60" fill="%231A2432" opacity="0.8"/><rect x="130" y="40" width="60" height="80" fill="%231A2432" opacity="0.8"/><rect x="210" y="20" width="80" height="100" fill="%231A2432" opacity="0.8"/><rect x="310" y="50" width="70" height="70" fill="%231A2432" opacity="0.8"/><rect x="400" y="30" width="90" height="90" fill="%231A2432" opacity="0.8"/><rect x="510" y="10" width="110" height="110" fill="%231A2432" opacity="0.8"/><rect x="640" y="40" width="80" height="80" fill="%231A2432" opacity="0.8"/><rect x="740" y="20" width="100" height="100" fill="%231A2432" opacity="0.8"/><rect x="860" y="60" width="60" height="60" fill="%231A2432" opacity="0.8"/><rect x="940" y="30" width="80" height="90" fill="%231A2432" opacity="0.8"/><rect x="1040" y="10" width="120" height="110" fill="%231A2432" opacity="0.8"/></svg>'),
        linear-gradient(to bottom, var(--city-bg), var(--city-layer5));
    background-repeat: no-repeat;
    background-position: bottom;
    animation: city-lights 60s linear infinite;
}

.remarkable-city .container {
    background-color: var(--city-primary);
    padding: 2rem;
    border: 1px solid var(--city-accent4);
    box-shadow: var(--city-glow);
    position: relative;
    overflow: hidden;
    max-width: 1600px;
    margin: 0 auto;
    border-radius: var(--city-radius);
    background-image:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.1), transparent);
}

.remarkable-city .container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            var(--city-accent1) 0%,
            var(--city-accent2) 50%,
            var(--city-accent1) 100%);
}

.remarkable-city .container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    background-image: var(--city-pattern);
    background-size: 1200px 100%;
    opacity: 0.1;
}

/* ==================== HEADER & TITLE ==================== */
.remarkable-city #calendar-title {
    font-family: 'Montserrat', sans-serif;
    color: var(--city-text);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    letter-spacing: 0.03em;
    position: relative;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.remarkable-city #calendar-title::after {
    content: "🏙️";
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.3rem;
    opacity: 0.8;
}

/* ==================== DATE & WEATHER DISPLAY ==================== */
.remarkable-city #date-weather-container {
    text-align: center;
    margin: 1.8rem 0;
    padding: 1.2rem;
    background-color: var(--city-primary);
    border: 1px solid var(--city-accent4);
    border-radius: var(--city-radius);
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.remarkable-city #date-weather-container::before {
    content: "URBAN CALENDAR";
    position: absolute;
    top: -10px;
    right: 20px;
    background-color: var(--city-primary);
    padding: 0 8px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--city-text);
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.remarkable-city #date-weather-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--city-accent1), transparent);
}

.remarkable-city #current-date {
    font-family: 'Montserrat', sans-serif;
    color: var(--city-text);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.remarkable-city #today-weather {
    font-family: 'Roboto', sans-serif;
    color: var(--city-text);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* ==================== ANALOG CLOCK ==================== */
.remarkable-city #analog-watch {
    display: flex;
    justify-content: center;
    margin: 1.8rem 0;
}

.remarkable-city .clock-face {
    width: 180px;
    height: 180px;
    border: 6px solid var(--city-accent1);
    border-radius: 50%;
    position: relative;
    background-color: var(--city-primary);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
    background-image:
        radial-gradient(circle at center, transparent 65%, var(--city-accent4) 100%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="48" y="10" width="4" height="10" fill="%234A90E2" opacity="0.6"/><rect x="48" y="80" width="4" height="10" fill="%234A90E2" opacity="0.6"/><rect x="10" y="48" width="10" height="4" fill="%234A90E2" opacity="0.6"/><rect x="80" y="48" width="10" height="4" fill="%234A90E2" opacity="0.6"/></svg>');
}

.remarkable-city .hand {
    position: absolute;
    top: 50%;
    transform-origin: 100%;
    transform: rotate(90deg);
    transition: all 0.05s;
    transition-timing-function: cubic-bezier(0.1, 2.7, 0.58, 1);
}

.remarkable-city .hour-hand {
    width: 40%;
    left: 10%;
    height: 6px;
    background: var(--city-accent1);
    margin-top: -3px;
    border-radius: 3px;
}

.remarkable-city .minute-hand {
    width: 48%;
    left: 2%;
    height: 4px;
    background: var(--city-accent2);
    margin-top: -2px;
    border-radius: 2px;
}

.remarkable-city .second-hand {
    width: 48%;
    left: 2%;
    height: 2px;
    background: var(--city-accent3);
    margin-top: -1px;
}

/* Clock center ornament */
.remarkable-city .clock-face::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background-color: var(--city-accent1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    box-shadow: 0 0 0 2px var(--city-primary);
}

/* ==================== CALENDAR TABLE ==================== */
.remarkable-city table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin: 1.8rem auto;
    background-color: transparent;
    table-layout: fixed;
}

/* DAY OF WEEK HEADERS */
.remarkable-city th {
    background-color: var(--city-accent1);
    color: var(--city-text) !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    padding: 0.8rem 0.4rem;
    border-radius: var(--city-radius);
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
}

.remarkable-city th span.full-day-name {
    display: inline;
}

.remarkable-city th abbr {
    display: none;
    text-decoration: none;
    border-bottom: none;
}

/* DATE NUMBER STYLES */
.remarkable-city td {
    background-color: var(--city-primary);
    color: var(--city-text);
    padding: 1rem;
    border: 1px solid var(--city-accent4);
    height: 90px;
    vertical-align: top;
    transition: all var(--city-transition);
    position: relative;
    border-radius: var(--city-radius);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.remarkable-city td .date-number {
    color: var(--city-date-number) !important;
    font-weight: 700;
    font-size: 1.2rem;
    position: absolute;
    top: 8px;
    left: 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    font-family: 'Montserrat', sans-serif;
}

.remarkable-city td:hover {
    background-color: var(--city-secondary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Current date highlight */
.remarkable-city td.current-day {
    background-color: rgba(74, 144, 226, 0.15);
    border: 2px solid var(--city-accent1);
    animation: city-pulse 3s infinite;
}

.remarkable-city td.current-day .date-number {
    color: var(--city-text) !important;
    font-weight: 700;
}

.remarkable-city td.current-day::before {
    content: "🏢";
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 1;
    font-size: 1.1rem;
    color: var(--city-accent1);
    font-weight: bold;
}

/* ==================== EVENT MARKERS ==================== */
.remarkable-city .event-marker {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--city-accent1);
    margin: 0 1px;
    transition: all var(--city-transition);
}

.remarkable-city .event-marker:hover {
    transform: scale(1.4);
    background-color: var(--city-accent2);
    box-shadow: 0 0 6px rgba(255, 94, 91, 0.4);
}

/* ==================== MODAL STYLES ==================== */
.remarkable-city .modal-content {
    position: relative;
    background-color: var(--city-primary);
    border: 1px solid var(--city-accent4);
    padding: 25px;
    color: var(--city-text);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-radius: var(--city-radius);
    animation: city-rise 0.3s ease-out;
}

.remarkable-city .modal-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            var(--city-accent1) 0%,
            var(--city-accent2) 50%,
            var(--city-accent1) 100%);
}

.remarkable-city .modal-content h2 {
    color: var(--city-text);
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Modal date display */
.remarkable-city .modal-date {
    font-family: 'Montserrat', sans-serif;
    color: var(--city-text);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--city-accent4);
}

/* Event list */
.remarkable-city .event-list {
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
}

.remarkable-city .event-item {
    background-color: var(--city-secondary);
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--city-accent1);
    border-radius: var(--city-radius);
    transition: all var(--city-transition);
}

.remarkable-city .event-item:hover {
    background-color: var(--city-layer3);
    transform: translateX(3px);
}

.remarkable-city .event-time {
    font-family: 'Montserrat', sans-serif;
    color: var(--city-text);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.3rem;
    display: block;
}

.remarkable-city .event-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--city-text);
}

.remarkable-city .event-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--city-text);
    opacity: 0.9;
}

.remarkable-city .modal-content button {
    background-color: var(--city-accent1);
    color: var(--city-text);
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--city-transition);
    letter-spacing: 0.5px;
    font-family: 'Roboto', sans-serif;
    border-radius: var(--city-radius);
}

.remarkable-city .modal-content button:hover {
    background-color: var(--city-hover);
    box-shadow: 0 3px 10px rgba(74, 144, 226, 0.2);
}

/* Close Button */
.remarkable-city .modal .close-button {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--city-primary);
    color: var(--city-text);
    border: 1px solid var(--city-text);
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: all var(--city-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

.remarkable-city .modal .close-button:hover {
    background-color: var(--city-text);
    color: var(--city-accent1);
    border-color: var(--city-text);
}

/* ==================== BUTTONS & CONTROLS ==================== */
.remarkable-city .button,
.remarkable-city .transparent-button {
    border: 1px solid var(--city-accent1);
    color: var(--city-text);
    background-color: transparent;
    padding: 0.8rem 1.5rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--city-transition);
    position: relative;
    overflow: hidden;
    margin: 0.4rem;
    border-radius: var(--city-radius);
    letter-spacing: 0.02em;
    font-size: 0.95rem;
}

.remarkable-city .button:hover,
.remarkable-city .transparent-button:hover {
    background-color: var(--city-accent1);
    color: var(--city-text);
    box-shadow: 0 3px 10px rgba(74, 144, 226, 0.15);
}

.remarkable-city .controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 1.2rem 0;
}

/* ==================== THEME SWITCHER ==================== */
.remarkable-city #theme-switcher-container {
    position: relative;
    margin: 0 0.8rem;
    min-width: 200px;
    z-index: 1000;
}

.remarkable-city #theme-switcher {
    background-color: var(--city-primary);
    color: var(--city-text) !important;
    border: 1px solid var(--city-accent1);
    padding: 0.8rem 2.2rem 0.8rem 1rem;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F0F4FF'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1rem;
    cursor: pointer;
    transition: all var(--city-transition);
    border-radius: var(--city-radius);
}

.remarkable-city #theme-switcher option {
    background-color: var(--city-primary) !important;
    color: var(--city-text) !important;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 12px !important;
}

.remarkable-city #theme-switcher:focus {
    outline: none;
    border-color: var(--city-accent1);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

/* ==================== BACK TO TOP BUTTON ==================== */
.remarkable-city #backToTopBtn {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 9999;
    border: none;
    padding: 1rem 1.7rem;
    font-size: 0.95rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    color: var(--city-text);
    background-color: var(--city-accent1);
    cursor: pointer;
    transition: all var(--city-transition);
    opacity: 0.9;
    display: none;
    border-radius: var(--city-radius);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.remarkable-city #backToTopBtn:hover {
    background-color: var(--city-hover);
    opacity: 1;
}

/* ==================== FOOTER ==================== */
.remarkable-city footer {
    text-align: center;
    margin-top: 1.8rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--city-accent4);
    color: var(--city-text);
    font-size: 0.9rem;
    font-weight: 600;
}

/* ==================== MEDIA QUERIES ==================== */
@media (max-width: 992px) {
    .remarkable-city .container {
        padding: 1.5rem;
    }

    .remarkable-city #calendar-title {
        font-size: 2rem;
    }

    .remarkable-city #current-date {
        font-size: 1.5rem;
    }

    .remarkable-city #today-weather {
        font-size: 1.1rem;
    }

    .remarkable-city .modal-date {
        font-size: 1.3rem;
    }

    .remarkable-city .event-title {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .remarkable-city {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .remarkable-city .clock-face {
        width: 150px;
        height: 150px;
        border-width: 5px;
    }

    .remarkable-city th {
        font-size: 0.85rem;
        padding: 0.7rem 0.3rem;
    }

    .remarkable-city th span.full-day-name {
        display: none;
    }

    .remarkable-city th abbr {
        display: inline;
    }

    .remarkable-city td {
        padding: 0.7rem;
        height: 80px;
        font-size: 0.85rem;
    }

    .remarkable-city td .date-number {
        font-size: 1.1rem;
        top: 6px;
        left: 6px;
    }

    .remarkable-city td.current-day::before {
        font-size: 1rem;
        top: 4px;
        right: 4px;
    }

    .remarkable-city #backToTopBtn {
        right: 15px;
        bottom: 15px;
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
    }

    .remarkable-city #theme-switcher {
        padding: 0.7rem 1.8rem 0.7rem 0.8rem;
        font-size: 0.9rem;
        min-width: 170px;
    }

    .remarkable-city .modal-content {
        padding: 20px;
    }

    .remarkable-city .event-item {
        padding: 0.8rem;
    }
}

@media (max-width: 576px) {
    .remarkable-city .container {
        padding: 1rem;
    }

    .remarkable-city #calendar-title {
        font-size: 1.7rem;
    }

    .remarkable-city #current-date {
        font-size: 1.3rem;
    }

    .remarkable-city #today-weather {
        font-size: 1rem;
    }

    .remarkable-city .clock-face {
        width: 130px;
        height: 130px;
        border-width: 4px;
    }

    .remarkable-city th {
        font-size: 0.8rem;
        padding: 0.6rem 0.2rem;
    }

    .remarkable-city td {
        padding: 0.6rem;
        height: 70px;
        font-size: 0.8rem;
    }

    .remarkable-city td .date-number {
        font-size: 1rem;
        top: 5px;
        left: 5px;
    }

    .remarkable-city #theme-switcher {
        min-width: 150px;
        font-size: 0.85rem;
    }

    .remarkable-city .modal-content {
        padding: 15px;
    }

    .remarkable-city .modal-date {
        font-size: 1.2rem;
    }

    .remarkable-city .event-time {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .remarkable-city th {
        font-size: 0.75rem;
        padding: 0.5rem 0.1rem;
    }

    .remarkable-city td {
        height: 60px;
    }

    .remarkable-city td .date-number {
        font-size: 0.9rem;
    }

    .remarkable-city #theme-switcher {
        min-width: 130px;
        font-size: 0.8rem;
    }
}