/* ==========================================================================
   The Right Shade of Yellow Theme - Refined Yellow Calendar
   Version: 1.2
   Updated: 2024-06-08
   Changes:
   - Sophisticated yellow design with refined aesthetics
   - Muted gold, champagne, and buttercream palette with subtle patterns
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Lato:wght@300;400;500;600&display=swap');

:root {
    /* The Right Shade of Yellow Palette */
    --trsy-bg: #FEF9E7;
    --trsy-text: #3E2723;
    --trsy-primary: #FFFFFF;
    --trsy-secondary: #FEF5E7;
    --trsy-date-number: #3E2723;

    /* Muted Gold */
    --trsy-gold1: #E6B87F;
    --trsy-gold2: #D4A76A;
    --trsy-gold3: #C29655;
    --trsy-gold4: rgba(230, 184, 127, 0.7);
    --trsy-gold5: rgba(230, 184, 127, 0.3);

    /* Champagne */
    --trsy-champagne1: #F7E7CE;
    --trsy-champagne2: #EDD9B8;
    --trsy-champagne3: #E3CBA2;
    --trsy-champagne4: rgba(247, 231, 206, 0.7);
    --trsy-champagne5: rgba(247, 231, 206, 0.3);

    /* Buttercream */
    --trsy-buttercream1: #FFF8DC;
    --trsy-buttercream2: #F5EBD3;
    --trsy-buttercream3: #EBDFCA;
    --trsy-buttercream4: rgba(255, 248, 220, 0.7);
    --trsy-buttercream5: rgba(255, 248, 220, 0.3);

    /* Honey */
    --trsy-honey1: #D4A76A;
    --trsy-honey2: #C29655;
    --trsy-honey3: #B08540;
    --trsy-honey4: rgba(212, 167, 106, 0.7);
    --trsy-honey5: rgba(212, 167, 106, 0.3);

    /* Wheat */
    --trsy-wheat1: #F5DEB3;
    --trsy-wheat2: #EBD4A3;
    --trsy-wheat3: #E1CA93;
    --trsy-wheat4: rgba(245, 222, 179, 0.7);
    --trsy-wheat5: rgba(245, 222, 179, 0.3);

    /* Parchment */
    --trsy-parchment1: #F5F5DC;
    --trsy-parchment2: #EBEBC9;
    --trsy-parchment3: #E1E1B6;
    --trsy-parchment4: rgba(245, 245, 220, 0.7);
    --trsy-parchment5: rgba(245, 245, 220, 0.3);

    /* Theme Variables */
    --trsy-shadow: rgba(230, 184, 127, 0.15);
    --trsy-radius: 8px;
    --trsy-transition: 0.3s ease;
    --trsy-hover: #D4A76A;
    --trsy-glow: 0 0 15px rgba(230, 184, 127, 0.2);
    --trsy-pattern: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".04" fill="%23E6B87F"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".05" fill="%23E6B87F"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" opacity=".07" fill="%23E6B87F"/></svg>');
}

/* ==================== ANIMATIONS ==================== */
@keyframes trsy-fade {

    0%,
    100% {
        opacity: 0.95;
    }

    50% {
        opacity: 1;
    }
}

@keyframes trsy-slide {
    from {
        transform: translateY(3px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes trsy-pulse {

    0%,
    100% {
        box-shadow: 0 0 3px var(--trsy-shadow);
    }

    50% {
        box-shadow: var(--trsy-glow);
    }
}

@keyframes trsy-glow-wave {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 100% 0;
    }
}

@keyframes trsy-gentle-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

@keyframes trsy-ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

@keyframes trsy-shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes trsy-gold-gleam {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(2deg) scale(1.02);
    }
}

@keyframes trsy-fade-in {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes trsy-soft-pulse {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

/* ==================== BASE STYLES ==================== */
.the-right-shade-of-yellow {
    font-family: 'Lato', sans-serif;
    color: var(--trsy-text);
    line-height: 1.5;
    font-size: 0.95rem;
    background-color: var(--trsy-bg);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.the-right-shade-of-yellow::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, var(--trsy-gold5) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, var(--trsy-champagne5) 0%, transparent 50%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M10,40 Q30,30 50,40 Q70,50 90,40" stroke="%23E6B87F" fill="none" stroke-width="0.3" opacity="0.08"/><path d="M5,60 Q25,50 45,60 Q65,70 85,60" stroke="%23F7E7CE" fill="none" stroke-width="0.3" opacity="0.05"/><path d="M15,80 Q35,70 55,80 Q75,90 95,80" stroke="%23FFF8DC" fill="none" stroke-width="0.3" opacity="0.04"/></svg>');
    background-size: 150px 150px;
    pointer-events: none;
    z-index: 1;
}

.the-right-shade-of-yellow .container {
    background: linear-gradient(135deg, var(--trsy-primary) 0%, var(--trsy-secondary) 100%);
    padding: 1.5rem;
    border: 1px solid var(--trsy-gold4);
    box-shadow:
        var(--trsy-glow),
        inset 0 0 0 1px rgba(255, 255, 255, 0.95);
    position: relative;
    overflow: hidden;
    max-width: 1600px;
    margin: 0 auto;
    border-radius: 14px;
    z-index: 2;
    background-image:
        radial-gradient(circle at 10% 20%, var(--trsy-gold5) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, var(--trsy-champagne5) 0%, transparent 50%);
}

.the-right-shade-of-yellow .container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            var(--trsy-gold1) 0%,
            var(--trsy-champagne1) 50%,
            var(--trsy-buttercream1) 100%);
    animation: trsy-glow-wave 6s linear infinite;
    background-size: 200% 100%;
}

.the-right-shade-of-yellow .container::after {
    content: "✨";
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 1rem;
    opacity: 0.1;
    animation: trsy-soft-pulse 3s ease-in-out infinite;
}

/* ==================== HEADER & TITLE ==================== */
.the-right-shade-of-yellow #calendar-title {
    font-family: 'Cinzel', serif;
    color: var(--trsy-text);
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
    position: relative;
    font-weight: 600;
    text-shadow:
        0 1px 2px rgba(255, 255, 255, 0.8),
        0 1px 0 rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--trsy-gold1) 0%, var(--trsy-honey1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: trsy-shimmer 6s linear infinite;
}

.the-right-shade-of-yellow #calendar-title::after {
    content: "⏳";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    opacity: 0.3;
    animation: trsy-gold-gleam 4s ease-in-out infinite;
}

/* ==================== DATE & WEATHER DISPLAY ==================== */
.the-right-shade-of-yellow #date-weather-container {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--trsy-primary) 0%, var(--trsy-secondary) 100%);
    border: 1px solid var(--trsy-gold4);
    border-radius: var(--trsy-radius);
    position: relative;
    box-shadow:
        0 2px 10px var(--trsy-shadow),
        inset 0 0 0 1px rgba(255, 255, 255, 0.95);
    overflow: hidden;
    animation: trsy-fade-in 0.5s ease-out;
}

.the-right-shade-of-yellow #date-weather-container::before {
    content: "RIGHT SHADE";
    position: absolute;
    top: -8px;
    right: 15px;
    background: linear-gradient(135deg, var(--trsy-primary) 0%, var(--trsy-secondary) 100%);
    padding: 0 8px;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--trsy-gold2);
    font-weight: 600;
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    border: 1px solid var(--trsy-gold4);
    border-radius: 3px;
}

.the-right-shade-of-yellow #date-weather-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--trsy-gold2), transparent);
}

.the-right-shade-of-yellow #current-date {
    font-family: 'Cinzel', serif;
    color: var(--trsy-text);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.the-right-shade-of-yellow #today-weather {
    font-family: 'Lato', sans-serif;
    color: var(--trsy-gold2);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

/* ==================== ANALOG CLOCK ==================== */
.the-right-shade-of-yellow #analog-watch {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.the-right-shade-of-yellow .clock-face {
    width: 150px;
    height: 150px;
    border: 2px solid var(--trsy-gold2);
    border-radius: 50%;
    position: relative;
    background: linear-gradient(135deg, var(--trsy-primary) 0%, var(--trsy-secondary) 100%);
    box-shadow:
        0 4px 12px var(--trsy-shadow),
        inset 0 0 0 1px rgba(255, 255, 255, 0.95);
    overflow: hidden;
}

.the-right-shade-of-yellow .clock-face::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--trsy-gold2) 0%, var(--trsy-honey2) 100%);
    border-radius: 50%;
    z-index: 10;
    box-shadow:
        0 0 3px var(--trsy-shadow),
        inset 0 0 2px rgba(255, 255, 255, 0.5);
}

.the-right-shade-of-yellow .clock-face::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at center, transparent 70%, var(--trsy-gold5) 100%),
        repeating-conic-gradient(from 0deg,
            transparent 0deg 29deg,
            var(--trsy-champagne5) 30deg 30deg);
}

.the-right-shade-of-yellow .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);
    z-index: 5;
}

.the-right-shade-of-yellow .hour-hand {
    width: 35%;
    left: 15%;
    height: 2.5px;
    background: linear-gradient(90deg, var(--trsy-honey2) 0%, var(--trsy-gold2) 100%);
    margin-top: -1.25px;
    border-radius: 1.5px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.the-right-shade-of-yellow .minute-hand {
    width: 45%;
    left: 5%;
    height: 2px;
    background: linear-gradient(90deg, var(--trsy-gold2) 0%, var(--trsy-champagne2) 100%);
    margin-top: -1px;
    border-radius: 1px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.the-right-shade-of-yellow .second-hand {
    width: 45%;
    left: 5%;
    height: 1px;
    background: linear-gradient(90deg, var(--trsy-primary) 0%, var(--trsy-wheat1) 100%);
    margin-top: -0.5px;
}

/* ==================== CALENDAR TABLE ==================== */
.the-right-shade-of-yellow table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 3px;
    margin: 1.5rem auto;
    background-color: transparent;
    table-layout: fixed;
}

/* DAY OF WEEK HEADERS */
.the-right-shade-of-yellow th {
    background: linear-gradient(135deg, var(--trsy-gold2) 0%, var(--trsy-honey2) 100%);
    color: var(--trsy-text) !important;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    padding: 0.7rem 0.3rem;
    border-radius: var(--trsy-radius);
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.the-right-shade-of-yellow th::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 100%);
    pointer-events: none;
}

.the-right-shade-of-yellow th span.full-day-name {
    display: inline;
    position: relative;
    z-index: 1;
}

.the-right-shade-of-yellow th abbr {
    display: none;
    text-decoration: none;
    border-bottom: none;
}

/* DATE NUMBER STYLES */
.the-right-shade-of-yellow td {
    background: linear-gradient(135deg, var(--trsy-primary) 0%, var(--trsy-secondary) 100%);
    color: var(--trsy-text);
    padding: 0.7rem;
    border: 1px solid var(--trsy-gold4);
    height: 80px;
    vertical-align: top;
    transition: all var(--trsy-transition);
    position: relative;
    border-radius: var(--trsy-radius);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.8),
        0 1px 4px var(--trsy-shadow);
    animation: trsy-fade-in 0.5s ease-out;
}

.the-right-shade-of-yellow td .date-number {
    color: var(--trsy-text) !important;
    font-weight: 600;
    font-size: 1.1rem;
    position: absolute;
    top: 6px;
    left: 6px;
    font-family: 'Cinzel', serif;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.the-right-shade-of-yellow td:hover {
    background: linear-gradient(135deg, var(--trsy-secondary) 0%, #FEF3E7 100%);
    box-shadow:
        0 3px 10px var(--trsy-shadow),
        inset 0 0 0 1px rgba(255, 255, 255, 0.95);
    border-color: var(--trsy-gold2);
    transform: translateY(-2px);
}

/* Current date highlight */
.the-right-shade-of-yellow td.current-day {
    background: linear-gradient(135deg, rgba(230, 184, 127, 0.1) 0%, rgba(212, 167, 106, 0.1) 100%);
    border: 1px solid var(--trsy-gold2);
    animation: trsy-pulse 5s infinite;
    background-image:
        radial-gradient(circle at 70% 30%, var(--trsy-champagne5) 0%, transparent 50%);
}

.the-right-shade-of-yellow td.current-day .date-number {
    color: var(--trsy-gold2) !important;
    font-weight: 700;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.9);
}

.the-right-shade-of-yellow td.current-day::before {
    content: "⏳";
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 1;
    font-size: 0.9rem;
    animation: trsy-gold-gleam 3s ease-in-out infinite;
    opacity: 0.5;
}

/* ==================== EVENT MARKERS ==================== */
.the-right-shade-of-yellow .event-marker {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--trsy-gold2) 0%, var(--trsy-honey2) 100%);
    margin: 0 1px;
    transition: all var(--trsy-transition);
    animation: trsy-soft-pulse 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 1px var(--trsy-shadow),
        0 0 0 1px rgba(255, 255, 255, 0.5);
}

.the-right-shade-of-yellow .event-marker::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1.5px;
    height: 1.5px;
    background-color: var(--trsy-primary);
    border-radius: 50%;
    opacity: 0.9;
}

.the-right-shade-of-yellow .event-marker:hover {
    transform: scale(1.4);
    background: linear-gradient(135deg, var(--trsy-honey2) 0%, var(--trsy-gold2) 100%);
    box-shadow:
        0 0 3px var(--trsy-shadow),
        0 0 0 1px rgba(255, 255, 255, 0.7);
}

/* ==================== MODAL STYLES ==================== */
.the-right-shade-of-yellow .modal-content {
    position: relative;
    background: linear-gradient(135deg, var(--trsy-primary) 0%, var(--trsy-secondary) 100%);
    border: 1px solid var(--trsy-gold4);
    padding: 20px;
    color: var(--trsy-text);
    box-shadow:
        0 8px 25px var(--trsy-shadow),
        inset 0 0 0 1px rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    animation: trsy-slide 0.3s ease-out;
    overflow: hidden;
}

.the-right-shade-of-yellow .modal-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            var(--trsy-gold1) 0%,
            var(--trsy-champagne1) 50%,
            var(--trsy-buttercream1) 100%);
    animation: trsy-glow-wave 6s linear infinite;
    background-size: 200% 100%;
}

.the-right-shade-of-yellow .modal-content h2 {
    color: var(--trsy-text);
    font-family: 'Cinzel', serif;
    font-size: 1.8em;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--trsy-gold1) 0%, var(--trsy-honey1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

/* Modal date display */
.the-right-shade-of-yellow .modal-date {
    font-family: 'Cinzel', serif;
    color: var(--trsy-text);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--trsy-gold4);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

/* Event list */
.the-right-shade-of-yellow .event-list {
    margin: 1.2rem 0;
    padding: 0;
    list-style: none;
}

.the-right-shade-of-yellow .event-item {
    background: linear-gradient(135deg, var(--trsy-secondary) 0%, #FEF3E7 100%);
    padding: 0.7rem;
    margin-bottom: 0.7rem;
    border-left: 2px solid var(--trsy-gold2);
    border-radius: var(--trsy-radius);
    transition: all var(--trsy-transition);
    box-shadow:
        0 1px 4px var(--trsy-shadow),
        inset 0 0 0 1px rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.the-right-shade-of-yellow .event-item:hover {
    background: linear-gradient(135deg, rgba(230, 184, 127, 0.1) 0%, rgba(212, 167, 106, 0.1) 100%);
    transform: translateX(2px);
    border-left-color: var(--trsy-honey2);
    box-shadow:
        0 2px 8px var(--trsy-shadow),
        inset 0 0 0 1px rgba(255, 255, 255, 0.95);
}

.the-right-shade-of-yellow .event-time {
    font-family: 'Lato', sans-serif;
    color: var(--trsy-gold2);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    display: block;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.the-right-shade-of-yellow .event-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: var(--trsy-text);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.the-right-shade-of-yellow .event-description {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--trsy-text);
    opacity: 0.9;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.the-right-shade-of-yellow .modal-content button {
    background: linear-gradient(135deg, var(--trsy-gold2) 0%, var(--trsy-honey2) 100%);
    color: var(--trsy-text);
    border: none;
    padding: 8px 16px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--trsy-transition);
    letter-spacing: 0.3px;
    font-family: 'Cinzel', serif;
    border-radius: var(--trsy-radius);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.the-right-shade-of-yellow .modal-content button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.the-right-shade-of-yellow .modal-content button:hover::before {
    left: 100%;
}

.the-right-shade-of-yellow .modal-content button:hover {
    background: linear-gradient(135deg, var(--trsy-hover) 0%, var(--trsy-honey3) 100%);
    box-shadow:
        0 3px 10px var(--trsy-shadow),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Close Button */
.the-right-shade-of-yellow .modal .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--trsy-primary) 0%, var(--trsy-secondary) 100%);
    color: var(--trsy-gold2);
    border: 1px solid var(--trsy-gold2);
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: all var(--trsy-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: normal;
    box-shadow:
        0 1px 4px var(--trsy-shadow),
        inset 0 0 0 1px rgba(255, 255, 255, 0.95);
}

.the-right-shade-of-yellow .modal .close-button:hover {
    background: linear-gradient(135deg, var(--trsy-gold2) 0%, var(--trsy-honey2) 100%);
    color: var(--trsy-text);
    border-color: var(--trsy-gold2);
    transform: rotate(90deg);
}

/* ==================== BUTTONS & CONTROLS ==================== */
.the-right-shade-of-yellow .button,
.the-right-shade-of-yellow .transparent-button {
    border: 1px solid var(--trsy-gold2);
    color: var(--trsy-gold2);
    background: linear-gradient(135deg, var(--trsy-primary) 0%, var(--trsy-secondary) 100%);
    padding: 0.6rem 1.2rem;
    font-family: 'Cinzel', serif;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--trsy-transition);
    position: relative;
    overflow: hidden;
    margin: 0.3rem;
    border-radius: var(--trsy-radius);
    letter-spacing: 0.02em;
    font-size: 0.9rem;
    box-shadow:
        0 1px 4px var(--trsy-shadow),
        inset 0 0 0 1px rgba(255, 255, 255, 0.95);
}

.the-right-shade-of-yellow .button::before,
.the-right-shade-of-yellow .transparent-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--trsy-gold5), transparent);
    transition: left 0.6s;
}

.the-right-shade-of-yellow .button:hover::before,
.the-right-shade-of-yellow .transparent-button:hover::before {
    left: 100%;
}

.the-right-shade-of-yellow .button:hover,
.the-right-shade-of-yellow .transparent-button:hover {
    background: linear-gradient(135deg, var(--trsy-gold2) 0%, var(--trsy-honey2) 100%);
    color: var(--trsy-text);
    box-shadow:
        0 2px 8px var(--trsy-shadow),
        inset 0 0 0 1px rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.the-right-shade-of-yellow .controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 1rem 0;
    gap: 0.4rem;
}

/* ==================== THEME SWITCHER ==================== */
.the-right-shade-of-yellow #theme-switcher-container {
    position: relative;
    margin: 0 0.6rem;
    min-width: 180px;
    z-index: 1000;
}

.the-right-shade-of-yellow #theme-switcher {
    background: linear-gradient(135deg, var(--trsy-primary) 0%, var(--trsy-secondary) 100%);
    color: var(--trsy-gold2) !important;
    border: 1px solid var(--trsy-gold2);
    padding: 0.6rem 1.8rem 0.6rem 0.8rem;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 500;
    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='%23E6B87F'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    background-size: 0.9rem;
    cursor: pointer;
    transition: all var(--trsy-transition);
    border-radius: var(--trsy-radius);
    box-shadow:
        0 1px 4px var(--trsy-shadow),
        inset 0 0 0 1px rgba(255, 255, 255, 0.95);
}

.the-right-shade-of-yellow #theme-switcher option {
    background: linear-gradient(135deg, var(--trsy-primary) 0%, var(--trsy-secondary) 100%) !important;
    color: var(--trsy-gold2) !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 10px !important;
}

.the-right-shade-of-yellow #theme-switcher:focus {
    outline: none;
    border-color: var(--trsy-gold2);
    box-shadow:
        0 0 0 2px var(--trsy-shadow),
        inset 0 0 0 1px rgba(255, 255, 255, 0.95);
}

/* ==================== BACK TO TOP BUTTON ==================== */
.the-right-shade-of-yellow #backToTopBtn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    border: none;
    padding: 0.7rem 1.4rem;
    font-size: 0.9rem;
    font-family: 'Cinzel', serif;
    font-weight: 500;
    color: var(--trsy-text);
    background: linear-gradient(135deg, var(--trsy-gold2) 0%, var(--trsy-honey2) 100%);
    cursor: pointer;
    transition: all var(--trsy-transition);
    opacity: 0.9;
    display: none;
    border-radius: var(--trsy-radius);
    box-shadow:
        0 2px 8px var(--trsy-shadow),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.the-right-shade-of-yellow #backToTopBtn:hover {
    background: linear-gradient(135deg, var(--trsy-hover) 0%, var(--trsy-honey3) 100%);
    opacity: 1;
    transform: translateY(-2px);
    box-shadow:
        0 3px 12px var(--trsy-shadow),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

/* ==================== FOOTER ==================== */
.the-right-shade-of-yellow footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--trsy-gold4);
    color: var(--trsy-gold2);
    font-size: 0.85rem;
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

/* ==================== MEDIA QUERIES ==================== */
@media (max-width: 992px) {
    .the-right-shade-of-yellow .container {
        padding: 1.2rem;
    }

    .the-right-shade-of-yellow #calendar-title {
        font-size: 1.8rem;
    }

    .the-right-shade-of-yellow #current-date {
        font-size: 1.3rem;
    }

    .the-right-shade-of-yellow #today-weather {
        font-size: 0.95rem;
    }

    .the-right-shade-of-yellow .modal-date {
        font-size: 1.2rem;
    }

    .the-right-shade-of-yellow .event-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .the-right-shade-of-yellow {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .the-right-shade-of-yellow .clock-face {
        width: 130px;
        height: 130px;
        border-width: 1.5px;
    }

    .the-right-shade-of-yellow th {
        font-size: 0.8rem;
        padding: 0.6rem 0.2rem;
    }

    .the-right-shade-of-yellow th span.full-day-name {
        display: none;
    }

    .the-right-shade-of-yellow th abbr {
        display: inline;
    }

    .the-right-shade-of-yellow td {
        padding: 0.6rem;
        height: 70px;
        font-size: 0.8rem;
    }

    .the-right-shade-of-yellow td .date-number {
        font-size: 1rem;
        top: 5px;
        left: 5px;
    }

    .the-right-shade-of-yellow td.current-day::before {
        font-size: 0.9rem;
        top: 3px;
        right: 3px;
    }

    .the-right-shade-of-yellow #backToTopBtn {
        right: 12px;
        bottom: 12px;
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .the-right-shade-of-yellow #theme-switcher {
        padding: 0.5rem 1.5rem 0.5rem 0.6rem;
        font-size: 0.85rem;
        min-width: 160px;
    }

    .the-right-shade-of-yellow .modal-content {
        padding: 16px;
    }

    .the-right-shade-of-yellow .event-item {
        padding: 0.6rem;
    }
}

@media (max-width: 576px) {
    .the-right-shade-of-yellow .container {
        padding: 1rem;
    }

    .the-right-shade-of-yellow #calendar-title {
        font-size: 1.5rem;
    }

    .the-right-shade-of-yellow #current-date {
        font-size: 1.2rem;
    }

    .the-right-shade-of-yellow #today-weather {
        font-size: 0.9rem;
    }

    .the-right-shade-of-yellow .clock-face {
        width: 110px;
        height: 110px;
        border-width: 1.5px;
    }

    .the-right-shade-of-yellow th {
        font-size: 0.75rem;
        padding: 0.5rem 0.15rem;
    }

    .the-right-shade-of-yellow td {
        padding: 0.5rem;
        height: 60px;
        font-size: 0.75rem;
    }

    .the-right-shade-of-yellow td .date-number {
        font-size: 0.9rem;
        top: 4px;
        left: 4px;
    }

    .the-right-shade-of-yellow #theme-switcher {
        min-width: 140px;
        font-size: 0.8rem;
    }

    .the-right-shade-of-yellow .modal-content {
        padding: 12px;
    }

    .the-right-shade-of-yellow .modal-date {
        font-size: 1.1rem;
    }

    .the-right-shade-of-yellow .event-time {
        font-size: 0.85rem;
    }
}

@media (max-width: 400px) {
    .the-right-shade-of-yellow th {
        font-size: 0.7rem;
        padding: 0.4rem 0.1rem;
    }

    .the-right-shade-of-yellow td {
        height: 55px;
    }

    .the-right-shade-of-yellow td .date-number {
        font-size: 0.85rem;
    }

    .the-right-shade-of-yellow #theme-switcher {
        min-width: 120px;
        font-size: 0.75rem;
    }

    .the-right-shade-of-yellow .controls {
        flex-direction: column;
        gap: 0.2rem;
    }

    .the-right-shade-of-yellow .button,
    .the-right-shade-of-yellow .transparent-button {
        width: 100%;
        margin: 0.15rem 0;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .the-right-shade-of-yellow {
        --trsy-gold2: #B8860B;
        --trsy-honey2: #8B7355;
    }

    .the-right-shade-of-yellow td.current-day {
        border: 2px solid var(--trsy-gold2);
        background: linear-gradient(135deg, rgba(184, 134, 11, 0.2) 0%, rgba(139, 115, 85, 0.2) 100%);
    }

    .the-right-shade-of-yellow th {
        background: var(--trsy-gold2);
    }

    .the-right-shade-of-yellow #calendar-title,
    .the-right-shade-of-yellow #current-date,
    .the-right-shade-of-yellow .event-title,
    .the-right-shade-of-yellow .event-description,
    .the-right-shade-of-yellow .modal-date {
        text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .the-right-shade-of-yellow *,
    .the-right-shade-of-yellow *::before,
    .the-right-shade-of-yellow *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .the-right-shade-of-yellow .hand {
        transition: none;
    }

    .the-right-shade-of-yellow .clock-face::before {
        animation: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .the-right-shade-of-yellow {
        --trsy-bg: #1A120B;
        --trsy-text: #F5EBD3;
        --trsy-primary: #2A200F;
        --trsy-secondary: #3A301F;
        --trsy-date-number: #F5EBD3;
        --trsy-shadow: rgba(230, 184, 127, 0.2);
    }

    .the-right-shade-of-yellow .container,
    .the-right-shade-of-yellow td {
        box-shadow:
            0 4px 20px rgba(0, 0, 0, 0.3),
            inset 0 0 0 1px var(--trsy-shadow);
    }

    .the-right-shade-of-yellow .modal-content {
        box-shadow:
            0 8px 30px rgba(0, 0, 0, 0.4),
            inset 0 0 0 1px var(--trsy-shadow);
    }

    .the-right-shade-of-yellow .button,
    .the-right-shade-of-yellow .transparent-button {
        box-shadow:
            0 1px 5px rgba(0, 0, 0, 0.2),
            inset 0 0 0 1px var(--trsy-shadow);
    }

    .the-right-shade-of-yellow #calendar-title,
    .the-right-shade-of-yellow #current-date,
    .the-right-shade-of-yellow .event-title,
    .the-right-shade-of-yellow .event-description,
    .the-right-shade-of-yellow .modal-date {
        text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
    }
}