/* ==========================================================================
   Cakobau Theme - Traditional Fijian Calendar
   Version: 1.2
   Updated: 2024-06-08
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;500;600&family=Open+Sans:wght@300;400;500&display=swap');

:root {
    --fiji-bg: #0A2E1F;
    --fiji-text: #F5F5DC;
    --fiji-primary: #1A3F2F;
    --fiji-secondary: #2A503F;
    --fiji-date-number: #F5F5DC;
    --fiji-red1: #D22B2B;
    --fiji-red2: #B22222;
    --fiji-red3: #8B0000;
    --fiji-red4: rgba(210, 43, 43, 0.7);
    --fiji-red5: rgba(210, 43, 43, 0.5);
    --fiji-gold1: #D4AF37;
    --fiji-gold2: #C5A028;
    --fiji-gold3: #B69121;
    --fiji-gold4: rgba(212, 175, 55, 0.7);
    --fiji-gold5: rgba(212, 175, 55, 0.5);
    --fiji-green1: #228B22;
    --fiji-green2: #1C7A1C;
    --fiji-green3: #156815;
    --fiji-green4: rgba(34, 139, 34, 0.7);
    --fiji-green5: rgba(34, 139, 34, 0.5);
    --fiji-blue1: #1E90FF;
    --fiji-blue2: #1874CD;
    --fiji-blue3: #104E8B;
    --fiji-blue4: rgba(30, 144, 255, 0.7);
    --fiji-blue5: rgba(30, 144, 255, 0.5);
    --fiji-shadow: rgba(210, 43, 43, 0.3);
    --fiji-radius: 10px;
    --fiji-transition: 0.3s ease;
    --fiji-hover: #E63946;
    --fiji-glow: 0 0 20px rgba(210, 43, 43, 0.4);
}

@keyframes fiji-wave {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 100px 0;
    }
}

@keyframes fiji-pulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(210, 43, 43, 0.3);
    }

    50% {
        box-shadow: 0 0 25px rgba(210, 43, 43, 0.7);
    }
}

.cakobau-the-first-king-of-fiji {
    font-family: 'Open Sans', sans-serif;
    color: var(--fiji-text);
    line-height: 1.6;
    font-size: 1rem;
    background-color: var(--fiji-bg);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.cakobau-the-first-king-of-fiji::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, var(--fiji-red5) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, var(--fiji-gold5) 0%, transparent 50%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.05"><path d="M20,30 Q30,20 40,30 Q50,40 60,30 Q70,20 80,30" stroke="%23D4AF37" fill="none"/></svg>');
    pointer-events: none;
    z-index: 1;
}

.cakobau-the-first-king-of-fiji .container {
    background-color: var(--fiji-primary);
    padding: 2.5rem;
    border: 1px solid var(--fiji-red4);
    box-shadow:
        var(--fiji-glow),
        inset 0 0 20px rgba(210, 43, 43, 0.1);
    position: relative;
    overflow: hidden;
    max-width: 1600px;
    margin: 0 auto;
    border-radius: 16px;
    z-index: 2;
    background-image:
        radial-gradient(circle at 10% 20%, var(--fiji-gold5) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, var(--fiji-green5) 0%, transparent 50%);
}

.cakobau-the-first-king-of-fiji .container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            var(--fiji-red1) 0%,
            var(--fiji-gold1) 50%,
            var(--fiji-green1) 100%);
    animation: fiji-wave 4s linear infinite;
    background-size: 100px 100%;
}

.cakobau-the-first-king-of-fiji .container::after {
    content: "🌴";
    position: absolute;
    bottom: 15px;
    right: 20px;
    font-size: 2rem;
    opacity: 0.3;
}

.cakobau-the-first-king-of-fiji #calendar-title {
    font-family: 'Merriweather', serif;
    color: var(--fiji-text);
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
    position: relative;
    font-weight: 600;
    text-shadow:
        0 2px 4px rgba(210, 43, 43, 0.2),
        0 1px 0 rgba(0, 0, 0, 0.3);
}

.cakobau-the-first-king-of-fiji #calendar-title::after {
    content: "👑";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8rem;
    opacity: 0.8;
}

.cakobau-the-first-king-of-fiji #calendar-title::before {
    content: "CAKOBAU - THE FIRST KING OF FIJI";
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--fiji-gold1);
    font-weight: 400;
    font-family: 'Merriweather', serif;
    text-transform: uppercase;
    opacity: 0.8;
}

.cakobau-the-first-king-of-fiji #date-weather-container {
    text-align: center;
    margin: 2rem 0;
    padding: 1.8rem;
    background-color: var(--fiji-primary);
    border: 1px solid var(--fiji-red4);
    border-radius: var(--fiji-radius);
    position: relative;
    box-shadow:
        0 4px 20px rgba(210, 43, 43, 0.2),
        inset 0 0 10px rgba(210, 43, 43, 0.1);
    overflow: hidden;
}

.cakobau-the-first-king-of-fiji #date-weather-container::before {
    content: "VANUA VAKATURAGA";
    position: absolute;
    top: -10px;
    right: 20px;
    background-color: var(--fiji-primary);
    padding: 0 12px;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--fiji-red1);
    font-weight: 600;
    font-family: 'Merriweather', serif;
    text-transform: uppercase;
}

.cakobau-the-first-king-of-fiji #date-weather-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--fiji-red1), transparent);
}

.cakobau-the-first-king-of-fiji #current-date {
    font-family: 'Merriweather', serif;
    color: var(--fiji-text);
    font-size: 1.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.cakobau-the-first-king-of-fiji #today-weather {
    font-family: 'Open Sans', sans-serif;
    color: var(--fiji-gold1);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.cakobau-the-first-king-of-fiji #analog-watch {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.cakobau-the-first-king-of-fiji .clock-face {
    width: 180px;
    height: 180px;
    border: 3px solid var(--fiji-red1);
    border-radius: 50%;
    position: relative;
    background-color: var(--fiji-primary);
    box-shadow:
        0 8px 25px rgba(210, 43, 43, 0.3),
        inset 0 0 30px rgba(210, 43, 43, 0.1);
    overflow: hidden;
}

.cakobau-the-first-king-of-fiji .clock-face::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: radial-gradient(circle at center, var(--fiji-red1) 0%, var(--fiji-gold1) 100%);
    border-radius: 50%;
    z-index: 10;
    box-shadow:
        0 0 10px rgba(210, 43, 43, 0.3),
        inset 0 0 5px rgba(255, 255, 255, 0.5);
}

.cakobau-the-first-king-of-fiji .clock-face::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background:
        conic-gradient(from 0deg at 50% 50%,
            var(--fiji-red4) 0deg 30deg,
            var(--fiji-gold4) 30deg 60deg,
            var(--fiji-green4) 60deg 90deg,
            var(--fiji-blue4) 90deg 120deg,
            var(--fiji-red4) 120deg 150deg,
            var(--fiji-gold4) 150deg 180deg,
            var(--fiji-green4) 180deg 210deg,
            var(--fiji-blue4) 210deg 240deg,
            var(--fiji-red4) 240deg 270deg,
            var(--fiji-gold4) 270deg 300deg,
            var(--fiji-green4) 300deg 330deg,
            var(--fiji-blue4) 330deg 360deg);
    opacity: 0.3;
}

.cakobau-the-first-king-of-fiji .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;
}

.cakobau-the-first-king-of-fiji .hour-hand {
    width: 35%;
    left: 15%;
    height: 4px;
    background: linear-gradient(90deg, var(--fiji-red1) 0%, var(--fiji-gold1) 100%);
    margin-top: -2px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(210, 43, 43, 0.3);
}

.cakobau-the-first-king-of-fiji .minute-hand {
    width: 45%;
    left: 5%;
    height: 3px;
    background: linear-gradient(90deg, var(--fiji-gold1) 0%, var(--fiji-green1) 100%);
    margin-top: -1.5px;
    border-radius: 1.5px;
    box-shadow: 0 1px 3px rgba(212, 175, 55, 0.3);
}

.cakobau-the-first-king-of-fiji .second-hand {
    width: 45%;
    left: 5%;
    height: 1px;
    background: linear-gradient(90deg, var(--fiji-green1) 0%, var(--fiji-blue1) 100%);
    margin-top: -0.5px;
}

.cakobau-the-first-king-of-fiji table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin: 2rem auto;
    background-color: transparent;
    table-layout: fixed;
}

.cakobau-the-first-king-of-fiji th {
    background: linear-gradient(135deg, var(--fiji-red1) 0%, var(--fiji-gold1) 100%);
    color: var(--fiji-primary) !important;
    font-family: 'Merriweather', serif;
    font-weight: 600;
    padding: 1.2rem 0.5rem;
    border-radius: var(--fiji-radius);
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(210, 43, 43, 0.2);
}

.cakobau-the-first-king-of-fiji th::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 100%);
    pointer-events: none;
}

.cakobau-the-first-king-of-fiji th span.full-day-name {
    display: inline;
    position: relative;
    z-index: 1;
}

.cakobau-the-first-king-of-fiji th abbr {
    display: none;
    text-decoration: none;
    border-bottom: none;
}

.cakobau-the-first-king-of-fiji td {
    background-color: var(--fiji-primary);
    color: var(--fiji-text);
    padding: 1.2rem;
    border: 1px solid var(--fiji-red4);
    height: 95px;
    vertical-align: top;
    transition: all var(--fiji-transition);
    position: relative;
    border-radius: var(--fiji-radius);
    box-shadow:
        inset 0 0 0 1px rgba(210, 43, 43, 0.1),
        0 2px 10px rgba(210, 43, 43, 0.08);
}

.cakobau-the-first-king-of-fiji td .date-number {
    color: var(--fiji-text) !important;
    font-weight: 600;
    font-size: 1.2rem;
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: 'Merriweather', serif;
}

.cakobau-the-first-king-of-fiji td:hover {
    background-color: var(--fiji-secondary);
    box-shadow:
        0 8px 25px rgba(210, 43, 43, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.9);
    border-color: var(--fiji-red1);
    transform: translateY(-3px);
}

.cakobau-the-first-king-of-fiji td.current-day {
    background-color: rgba(210, 43, 43, 0.08);
    border: 2px solid var(--fiji-red1);
    animation: fiji-pulse 3s infinite;
    background-image:
        radial-gradient(circle at 70% 30%, var(--fiji-gold5) 0%, transparent 50%);
}

.cakobau-the-first-king-of-fiji td.current-day .date-number {
    color: var(--fiji-red1) !important;
    font-weight: 700;
}

.cakobau-the-first-king-of-fiji td.current-day::before {
    content: "🌺";
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    font-size: 1.2rem;
}

.cakobau-the-first-king-of-fiji .event-marker {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--fiji-red1) 0%, var(--fiji-gold1) 100%);
    margin: 0 1px;
    transition: all var(--fiji-transition);
    animation: fiji-pulse 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 3px rgba(210, 43, 43, 0.3);
}

.cakobau-the-first-king-of-fiji .event-marker::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background-color: var(--fiji-text);
    border-radius: 50%;
    opacity: 0.5;
}

.cakobau-the-first-king-of-fiji .event-marker:hover {
    transform: scale(1.4);
    background: linear-gradient(135deg, var(--fiji-gold1) 0%, var(--fiji-green1) 100%);
    box-shadow: 0 0 8px rgba(34, 139, 34, 0.4);
}

.cakobau-the-first-king-of-fiji .modal-content {
    position: relative;
    background-color: var(--fiji-primary);
    border: 1px solid var(--fiji-red4);
    padding: 2.5rem;
    color: var(--fiji-text);
    box-shadow:
        0 15px 50px rgba(210, 43, 43, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    animation: fiji-slide 0.3s ease-out;
    background-image:
        radial-gradient(circle at 20% 80%, var(--fiji-red5) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--fiji-gold5) 0%, transparent 50%);
    overflow: hidden;
}

.cakobau-the-first-king-of-fiji .modal-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            var(--fiji-red1) 0%,
            var(--fiji-gold1) 50%,
            var(--fiji-green1) 100%);
    animation: fiji-wave 4s linear infinite;
    background-size: 100px 100%;
}

.cakobau-the-first-king-of-fiji .modal-content h2 {
    color: var(--fiji-text);
    font-family: 'Merriweather', serif;
    font-size: 2.2em;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.cakobau-the-first-king-of-fiji .modal-date {
    font-family: 'Merriweather', serif;
    color: var(--fiji-text);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--fiji-red4);
}

.cakobau-the-first-king-of-fiji .event-list {
    margin: 1.8rem 0;
    padding: 0;
    list-style: none;
}

.cakobau-the-first-king-of-fiji .event-item {
    background-color: var(--fiji-secondary);
    padding: 1.2rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--fiji-red1);
    border-radius: var(--fiji-radius);
    transition: all var(--fiji-transition);
    box-shadow:
        0 2px 10px rgba(210, 43, 43, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.cakobau-the-first-king-of-fiji .event-item:hover {
    background-color: rgba(210, 43, 43, 0.05);
    transform: translateX(5px);
    border-left-color: var(--fiji-gold1);
    box-shadow:
        0 4px 20px rgba(210, 43, 43, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.cakobau-the-first-king-of-fiji .event-time {
    font-family: 'Open Sans', sans-serif;
    color: var(--fiji-red1);
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0.3rem;
    display: block;
}

.cakobau-the-first-king-of-fiji .event-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--fiji-text);
}

.cakobau-the-first-king-of-fiji .event-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--fiji-text);
    opacity: 0.9;
}

.cakobau-the-first-king-of-fiji .modal-content button {
    background: linear-gradient(135deg, var(--fiji-red1) 0%, var(--fiji-gold1) 100%);
    color: var(--fiji-text);
    border: none;
    padding: 12px 24px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--fiji-transition);
    letter-spacing: 0.5px;
    font-family: 'Open Sans', sans-serif;
    border-radius: var(--fiji-radius);
    text-shadow: 0 1px 2px rgba(210, 43, 43, 0.3);
    position: relative;
    overflow: hidden;
}

.cakobau-the-first-king-of-fiji .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.3), transparent);
    transition: left 0.6s;
}

.cakobau-the-first-king-of-fiji .modal-content button:hover::before {
    left: 100%;
}

.cakobau-the-first-king-of-fiji .modal-content button:hover {
    background: linear-gradient(135deg, var(--fiji-hover) 0%, var(--fiji-gold2) 100%);
    box-shadow:
        0 6px 25px rgba(210, 43, 43, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.cakobau-the-first-king-of-fiji .modal .close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--fiji-primary);
    color: var(--fiji-red1);
    border: 1px solid var(--fiji-red1);
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: all var(--fiji-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    box-shadow:
        0 2px 8px rgba(210, 43, 43, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.cakobau-the-first-king-of-fiji .modal .close-button:hover {
    background-color: var(--fiji-red1);
    color: var(--fiji-primary);
    border-color: var(--fiji-red1);
    transform: rotate(90deg);
}

.cakobau-the-first-king-of-fiji .button,
.cakobau-the-first-king-of-fiji .transparent-button {
    border: 1px solid var(--fiji-red1);
    color: var(--fiji-red1);
    background-color: transparent;
    padding: 0.9rem 1.8rem;
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--fiji-transition);
    position: relative;
    overflow: hidden;
    margin: 0.4rem;
    border-radius: var(--fiji-radius);
    letter-spacing: 0.02em;
    font-size: 0.95rem;
    box-shadow:
        0 2px 8px rgba(210, 43, 43, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.cakobau-the-first-king-of-fiji .button::before,
.cakobau-the-first-king-of-fiji .transparent-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(210, 43, 43, 0.1), transparent);
    transition: left 0.6s;
}

.cakobau-the-first-king-of-fiji .button:hover::before,
.cakobau-the-first-king-of-fiji .transparent-button:hover::before {
    left: 100%;
}

.cakobau-the-first-king-of-fiji .button:hover,
.cakobau-the-first-king-of-fiji .transparent-button:hover {
    background-color: var(--fiji-red1);
    color: var(--fiji-primary);
    box-shadow:
        0 6px 20px rgba(210, 43, 43, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.cakobau-the-first-king-of-fiji .controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 1.5rem 0;
    gap: 0.8rem;
}

.cakobau-the-first-king-of-fiji #theme-switcher-container {
    position: relative;
    margin: 0 0.8rem;
    min-width: 220px;
    z-index: 1000;
}

.cakobau-the-first-king-of-fiji #theme-switcher {
    background-color: var(--fiji-primary);
    color: var(--fiji-red1) !important;
    border: 1px solid var(--fiji-red1);
    padding: 0.9rem 2.4rem 0.9rem 1.2rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    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='%23D22B2B'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1.2rem;
    cursor: pointer;
    transition: all var(--fiji-transition);
    border-radius: var(--fiji-radius);
    box-shadow:
        0 2px 8px rgba(210, 43, 43, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.cakobau-the-first-king-of-fiji #theme-switcher option {
    background-color: var(--fiji-primary) !important;
    color: var(--fiji-red1) !important;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 12px 15px !important;
}

.cakobau-the-first-king-of-fiji #theme-switcher:focus {
    outline: none;
    border-color: var(--fiji-red1);
    box-shadow:
        0 0 0 3px rgba(210, 43, 43, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.cakobau-the-first-king-of-fiji #backToTopBtn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 9999;
    border: none;
    padding: 1.2rem 2rem;
    font-size: 0.95rem;
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    color: var(--fiji-text);
    background: linear-gradient(135deg, var(--fiji-red1) 0%, var(--fiji-gold1) 100%);
    cursor: pointer;
    transition: all var(--fiji-transition);
    opacity: 0.9;
    display: none;
    border-radius: var(--fiji-radius);
    box-shadow:
        0 4px 20px rgba(210, 43, 43, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(210, 43, 43, 0.3);
}

.cakobau-the-first-king-of-fiji #backToTopBtn:hover {
    background: linear-gradient(135deg, var(--fiji-hover) 0%, var(--fiji-gold2) 100%);
    opacity: 1;
    transform: translateY(-3px);
    box-shadow:
        0 8px 30px rgba(210, 43, 43, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.cakobau-the-first-king-of-fiji footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--fiji-red4);
    color: var(--fiji-red1);
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 992px) {
    .cakobau-the-first-king-of-fiji .container {
        padding: 2rem;
    }

    .cakobau-the-first-king-of-fiji #calendar-title {
        font-size: 2.5rem;
    }

    .cakobau-the-first-king-of-fiji #current-date {
        font-size: 1.7rem;
    }

    .cakobau-the-first-king-of-fiji #today-weather {
        font-size: 1.1rem;
    }

    .cakobau-the-first-king-of-fiji .modal-date {
        font-size: 1.4rem;
    }

    .cakobau-the-first-king-of-fiji .event-title {
        font-size: 1.05rem;
    }
}

@media (max-width: 768px) {
    .cakobau-the-first-king-of-fiji {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .cakobau-the-first-king-of-fiji .clock-face {
        width: 160px;
        height: 160px;
        border-width: 2px;
    }

    .cakobau-the-first-king-of-fiji th {
        font-size: 0.85rem;
        padding: 1rem 0.4rem;
    }

    .cakobau-the-first-king-of-fiji th span.full-day-name {
        display: none;
    }

    .cakobau-the-first-king-of-fiji th abbr {
        display: inline;
    }

    .cakobau-the-first-king-of-fiji td {
        padding: 1rem;
        height: 85px;
        font-size: 0.9rem;
    }

    .cakobau-the-first-king-of-fiji td .date-number {
        font-size: 1.1rem;
        top: 8px;
        left: 8px;
    }

    .cakobau-the-first-king-of-fiji td.current-day::before {
        font-size: 1.1rem;
        top: 6px;
        right: 6px;
    }

    .cakobau-the-first-king-of-fiji #backToTopBtn {
        right: 20px;
        bottom: 20px;
        padding: 1rem 1.8rem;
        font-size: 0.9rem;
    }

    .cakobau-the-first-king-of-fiji #theme-switcher {
        padding: 0.8rem 2rem 0.8rem 1rem;
        font-size: 0.9rem;
        min-width: 200px;
    }

    .cakobau-the-first-king-of-fiji .modal-content {
        padding: 2rem;
    }

    .cakobau-the-first-king-of-fiji .event-item {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .cakobau-the-first-king-of-fiji .container {
        padding: 1.5rem;
    }

    .cakobau-the-first-king-of-fiji #calendar-title {
        font-size: 2rem;
    }

    .cakobau-the-first-king-of-fiji #current-date {
        font-size: 1.5rem;
    }

    .cakobau-the-first-king-of-fiji #today-weather {
        font-size: 1rem;
    }

    .cakobau-the-first-king-of-fiji .clock-face {
        width: 140px;
        height: 140px;
    }

    .cakobau-the-first-king-of-fiji th {
        padding: 0.8rem 0.3rem;
        font-size: 0.8rem;
    }

    .cakobau-the-first-king-of-fiji td {
        padding: 0.8rem;
        height: 75px;
        font-size: 0.85rem;
    }

    .cakobau-the-first-king-of-fiji td .date-number {
        font-size: 1rem;
        top: 6px;
        left: 6px;
    }

    .cakobau-the-first-king-of-fiji .modal-content {
        padding: 1.5rem;
    }

    .cakobau-the-first-king-of-fiji .modal-date {
        font-size: 1.3rem;
    }

    .cakobau-the-first-king-of-fiji .event-item {
        padding: 0.8rem;
    }

    .cakobau-the-first-king-of-fiji #backToTopBtn {
        right: 15px;
        bottom: 15px;
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }

    .cakobau-the-first-king-of-fiji #theme-switcher {
        min-width: 180px;
        padding: 0.7rem 1.8rem 0.7rem 0.9rem;
        font-size: 0.85rem;
    }

    .cakobau-the-first-king-of-fiji .button,
    .cakobau-the-first-king-of-fiji .transparent-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Animation for modal */
@keyframes fiji-slide {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}