/* ==========================================================================
   Big Pacific Theme - Oceanic Calendar UI
   Version: 4.1
   Updated: 2025-06-25
   Features:
   - Deep ocean color scheme
   - Wave-inspired UI elements
   - Mobile-responsive design
   - Fluid animations
   - Marine textures
   - Enhanced accessibility
   - Nautical typography
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Source+Sans+Pro:wght@300;600&display=swap');

:root {
    /* Big Pacific Color Palette */
    --bp-bg: #0A1A2F;
    --bp-text: #E0F2FE;
    --bp-primary: #1E88E5;
    /* Ocean blue */
    --bp-secondary: #00ACC1;
    /* Teal wave */

    /* Gradient Colors */
    --bp-gradient-start: #051423;
    --bp-gradient-end: #083344;

    /* Accent Colors */
    --bp-coral: #FF7043;
    /* Vibrant coral */
    --bp-sand: #F5D7A1;
    /* Beach sand */
    --bp-foam: #80DEEA;
    /* Sea foam */
    --bp-storm: #5C6BC0;
    /* Stormy sea */

    /* Theme Variables */
    --bp-shadow: rgba(30, 136, 229, 0.3);
    --bp-radius: 6px;
    --bp-transition: 0.3s ease-in-out;
    --bp-hover: #1E3A5F;
    --bp-current-day: #0D3D6B;
}

/* ==================== ANIMATIONS ==================== */
@keyframes bp-wave {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes ocean-current {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 50px 50px;
    }
}

@keyframes bp-glow {

    0%,
    100% {
        box-shadow: 0 0 10px var(--bp-primary);
    }

    50% {
        box-shadow: 0 0 20px var(--bp-secondary);
    }
}

/* ==================== BASE STYLES ==================== */
.big-pacific {
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--bp-text);
    line-height: 1.6;
    background: var(--bp-bg);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background-image:
        linear-gradient(45deg,
            rgba(0, 172, 193, 0.05) 25%,
            transparent 25%),
        linear-gradient(-45deg,
            rgba(0, 172, 193, 0.05) 25%,
            transparent 25%),
        linear-gradient(45deg,
            transparent 75%,
            rgba(0, 172, 193, 0.05) 75%),
        linear-gradient(-45deg,
            transparent 75%,
            rgba(0, 172, 193, 0.05) 75%);
    background-size: 20px 20px;
    animation: ocean-current 60s linear infinite;
}

.big-pacific::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%,
            rgba(30, 136, 229, 0.05) 0%,
            transparent 20%),
        radial-gradient(circle at 80% 70%,
            rgba(0, 172, 193, 0.05) 0%,
            transparent 20%);
    pointer-events: none;
    z-index: 0;
}

/* Wave pattern */
.big-pacific::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100" opacity="0.03"><path d="M0,50 Q25,40 50,50 Q75,60 100,50" stroke="%231E88E5" stroke-width="1" fill="none"/></svg>');
    pointer-events: none;
    z-index: 0;
}

.big-pacific .container {
    background-color: rgba(10, 26, 47, 0.95);
    padding: 2rem;
    border: 1px solid var(--bp-primary);
    box-shadow: 0 0 30px var(--bp-shadow);
    position: relative;
    overflow: hidden;
    max-width: 1600px;
    margin: 0 auto;
    border-radius: var(--bp-radius);
    z-index: 1;
}

.big-pacific .container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            transparent,
            var(--bp-primary),
            var(--bp-secondary),
            transparent);
    animation: bp-glow 3s infinite;
}

/* ==================== HEADER & TITLE ==================== */
.big-pacific #calendar-title {
    font-family: 'Libre Baskerville', serif;
    color: var(--bp-primary);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    position: relative;
    animation: bp-wave 3s infinite;
}

.big-pacific #calendar-title::before,
.big-pacific #calendar-title::after {
    content: "🌊";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bp-secondary);
    font-size: 1.5rem;
}

.big-pacific #calendar-title::before {
    left: 1rem;
    animation: bp-wave 2.5s infinite 0.5s;
}

.big-pacific #calendar-title::after {
    right: 1rem;
    animation: bp-wave 2.5s infinite;
}

/* ==================== DATE & WEATHER DISPLAY ==================== */
.big-pacific #date-weather-container {
    text-align: center;
    margin: 2rem 0;
    padding: 1rem;
    background-color: rgba(30, 136, 229, 0.1);
    border: 1px solid var(--bp-primary);
    border-radius: var(--bp-radius);
    position: relative;
}

.big-pacific #date-weather-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            var(--bp-primary),
            transparent);
}

.big-pacific #current-date {
    font-family: 'Libre Baskerville', serif;
    color: var(--bp-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.big-pacific #today-weather {
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--bp-secondary);
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* ==================== ANALOG CLOCK ==================== */
.big-pacific #analog-watch {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.big-pacific .clock-face {
    width: 180px;
    height: 180px;
    border: 1px solid var(--bp-primary);
    border-radius: 50%;
    position: relative;
    background-color: var(--bp-bg);
    box-shadow:
        0 0 15px var(--bp-shadow),
        inset 0 0 10px rgba(30, 136, 229, 0.1);
    background-image:
        radial-gradient(circle at center,
            transparent 65%,
            rgba(0, 172, 193, 0.1) 100%);
}

/* Nautical numerals for clock */
.big-pacific .clock-face::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.2"><text x="50" y="18" text-anchor="middle" font-family="Libre Baskerville" font-size="12" fill="%231E88E5">XII</text><text x="82" y="55" text-anchor="middle" font-family="Libre Baskerville" font-size="12" fill="%231E88E5">III</text><text x="50" y="92" text-anchor="middle" font-family="Libre Baskerville" font-size="12" fill="%231E88E5">VI</text><text x="18" y="55" text-anchor="middle" font-family="Libre Baskerville" font-size="12" fill="%231E88E5">IX</text></svg>');
}

.big-pacific .hand {
    position: absolute;
    top: 50%;
    transform-origin: 100%;
    transform: rotate(90deg);
    transition: all 0.05s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.big-pacific .hour-hand {
    width: 40%;
    left: 10%;
    height: 4px;
    background: var(--bp-primary);
    margin-top: -2px;
}

.big-pacific .minute-hand {
    width: 48%;
    left: 2%;
    height: 2px;
    background: var(--bp-secondary);
    margin-top: -1px;
}

.big-pacific .second-hand {
    width: 48%;
    left: 2%;
    height: 1px;
    background: var(--bp-coral);
    margin-top: -0.5px;
}

/* Clock center - Compass */
.big-pacific .clock-face::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: var(--bp-foam);
    border-radius: 50%;
    border: 1px solid var(--bp-primary);
}

/* ==================== CALENDAR TABLE - OPTIMIZED HEADERS ==================== */
.big-pacific table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem auto;
    background-color: rgba(20, 40, 70, 0.9);
    border: 1px solid var(--bp-primary);
    border-radius: var(--bp-radius);
    table-layout: fixed;
}

/* Weekday headers - responsive solution */
.big-pacific th {
    background-color: rgba(30, 136, 229, 0.15);
    color: var(--bp-primary) !important;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    padding: 0.8rem 0.3rem;
    border: 1px solid var(--bp-primary);
    position: relative;
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Full names for desktop */
.big-pacific th .full-day {
    display: inline;
}

/* Short names for mobile */
.big-pacific th .short-day {
    display: none;
}

.big-pacific td {
    background-color: rgba(15, 30, 55, 0.9);
    color: var(--bp-text);
    padding: 0.8rem 0.3rem;
    border: 1px solid var(--bp-primary);
    height: 90px;
    vertical-align: top;
    transition: all var(--bp-transition);
    position: relative;
    font-size: 0.85rem;
}

.big-pacific td:hover {
    background-color: var(--bp-hover);
    box-shadow: inset 0 0 15px var(--bp-shadow);
}

.big-pacific .date-number {
    display: block;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--bp-text);
}

.big-pacific td.current-day {
    background-color: var(--bp-current-day);
    border: 2px solid var(--bp-secondary);
    color: var(--bp-secondary) !important;
    font-weight: 700;
    animation: bp-glow 3s infinite;
}

.big-pacific td.current-day .date-number {
    color: var(--bp-secondary) !important;
    font-weight: 800;
}

.big-pacific td.current-day::before {
    content: "🌊";
    position: absolute;
    top: 3px;
    left: 3px;
    color: var(--bp-secondary);
    z-index: 1;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* ==================== EVENT MARKERS ==================== */
.big-pacific .event-marker {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--bp-primary);
    margin: 0 1px;
    box-shadow: 0 0 5px var(--bp-shadow);
    transition: all var(--bp-transition);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.big-pacific .event-marker:hover {
    transform: scale(1.8);
    background-color: var(--bp-secondary);
    box-shadow: 0 0 15px var(--bp-primary);
}

/* Special event types */
.big-pacific .event-marker.holiday {
    background-color: var(--bp-coral);
}

.big-pacific .event-marker.historic {
    background-color: var(--bp-sand);
}

.big-pacific .event-marker.patriotic {
    background-color: var(--bp-storm);
}

/* ==================== MODAL STYLES ==================== */
.big-pacific .modal-content {
    position: relative;
    background-color: rgba(15, 30, 55, 0.98);
    border: 1px solid var(--bp-primary);
    padding: 25px;
    color: var(--bp-text);
    box-shadow: 0 0 30px var(--bp-shadow);
    border-radius: var(--bp-radius);
    animation: bp-glow 0.5s ease;
}

.big-pacific .modal-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            var(--bp-primary),
            var(--bp-secondary),
            var(--bp-foam));
}

.big-pacific .modal-content h2 {
    color: var(--bp-primary);
    font-family: 'Libre Baskerville', serif;
    font-size: 1.8em;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.big-pacific .modal-content p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

.big-pacific .modal-content .event-time {
    display: block;
    font-weight: 600;
    color: var(--bp-secondary);
    margin-bottom: 10px;
    font-size: 1.1em;
}

.big-pacific .modal-content .event-description {
    background-color: rgba(30, 136, 229, 0.15);
    padding: 15px;
    border-left: 3px solid var(--bp-primary);
    margin: 15px 0;
    border-radius: 0 var(--bp-radius) var(--bp-radius) 0;
}

.big-pacific .modal-content button {
    background-color: var(--bp-primary);
    color: var(--bp-text);
    border: none;
    padding: 10px 20px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--bp-transition);
    border-radius: var(--bp-radius);
    font-family: 'Source Sans Pro', sans-serif;
}

.big-pacific .modal-content button:hover {
    background-color: var(--bp-secondary);
    box-shadow: 0 4px 6px -1px var(--bp-shadow);
}

.big-pacific .modal .close-button {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: transparent;
    color: var(--bp-primary);
    border: 1px solid var(--bp-primary);
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: all var(--bp-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.big-pacific .modal .close-button:hover {
    background-color: var(--bp-primary);
    color: var(--bp-text);
}

/* ==================== BUTTONS & CONTROLS ==================== */
.big-pacific .button,
.big-pacific .transparent-button {
    border: 1px solid var(--bp-primary);
    color: var(--bp-primary);
    background-color: transparent;
    padding: 0.7rem 1.4rem;
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    cursor: pointer;
    transition: all var(--bp-transition);
    position: relative;
    overflow: hidden;
    margin: 0.5rem;
    border-radius: var(--bp-radius);
    letter-spacing: 0.05em;
}

.big-pacific .button::before,
.big-pacific .transparent-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 136, 229, 0.1), transparent);
    transition: 0.5s;
}

.big-pacific .button:hover,
.big-pacific .transparent-button:hover {
    background-color: var(--bp-primary);
    color: var(--bp-text);
    box-shadow: 0 4px 6px -1px var(--bp-shadow);
}

.big-pacific .button:hover::before,
.big-pacific .transparent-button:hover::before {
    left: 100%;
}

.big-pacific .controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

/* ==================== THEME SWITCHER ==================== */
.big-pacific #theme-switcher-container {
    position: relative;
    margin: 0 1rem;
    min-width: 200px;
    z-index: 1000;
}

.big-pacific #theme-switcher {
    background-color: var(--bp-bg);
    color: var(--bp-primary) !important;
    border: 1px solid var(--bp-primary);
    padding: 0.7rem 2.2rem 0.7rem 0.9rem;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    width: 100%;
    border-radius: var(--bp-radius);
    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='%231E88E5'%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(--bp-transition);
    box-shadow: 0 1px 3px 0 var(--bp-shadow);
}

.big-pacific #theme-switcher option {
    background-color: var(--bp-bg) !important;
    color: var(--bp-primary) !important;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 12px !important;
}

.big-pacific #theme-switcher option:hover {
    background-color: var(--bp-primary) !important;
    color: var(--bp-text) !important;
}

.big-pacific #theme-switcher:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.3);
}

/* ==================== BACK TO TOP BUTTON ==================== */
.big-pacific #backToTopBtn {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 9999;
    border: 1px solid var(--bp-primary);
    padding: 0.9rem 1.6rem;
    font-size: 0.9rem;
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    color: var(--bp-primary);
    background-color: var(--bp-bg);
    cursor: pointer;
    transition: all var(--bp-transition);
    opacity: 0.9;
    display: none;
    border-radius: var(--bp-radius);
    box-shadow: 0 4px 6px -1px var(--bp-shadow);
}

.big-pacific #backToTopBtn:hover {
    background-color: var(--bp-primary);
    color: var(--bp-text);
    opacity: 1;
}

/* ==================== FOOTER ==================== */
.big-pacific footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--bp-primary);
    color: var(--bp-text);
    font-size: 0.8rem;
}

.big-pacific footer::before {
    content: "🌊 ";
    color: var(--bp-primary);
}

/* ==================== MEDIA QUERIES ==================== */
@media (max-width: 992px) {
    .big-pacific .container {
        padding: 1.2rem;
    }

    .big-pacific #calendar-title {
        font-size: 2rem;
    }

    .big-pacific #current-date {
        font-size: 1.5rem;
    }

    .big-pacific #today-weather {
        font-size: 1.1rem;
    }

    .big-pacific th {
        font-size: 0.75rem;
        padding: 0.7rem 0.2rem;
    }
}

@media (max-width: 768px) {
    .big-pacific .container {
        padding: 1rem;
    }

    .big-pacific #calendar-title {
        font-size: 1.7rem;
    }

    .big-pacific .clock-face {
        width: 140px;
        height: 140px;
    }

    /* Switch to short day names */
    .big-pacific th .full-day {
        display: none;
    }

    .big-pacific th .short-day {
        display: inline;
    }

    .big-pacific th {
        font-size: 0.7rem;
        padding: 0.6rem 0.15rem;
    }

    .big-pacific td {
        padding: 0.6rem 0.15rem;
        height: 70px;
        font-size: 0.8rem;
    }

    .big-pacific #backToTopBtn {
        right: 15px;
        bottom: 15px;
        padding: 0.7rem 1.3rem;
        font-size: 0.8rem;
    }

    .big-pacific #theme-switcher {
        padding: 0.6rem 1.8rem 0.6rem 0.7rem;
        font-size: 0.8rem;
        min-width: 170px;
    }

    .big-pacific .modal-content {
        padding: 15px;
    }

    .big-pacific .modal-content h2 {
        font-size: 1.5em;
    }
}

@media (max-width: 576px) {
    .big-pacific .container {
        padding: 0.8rem;
    }

    .big-pacific #calendar-title {
        font-size: 1.4rem;
    }

    .big-pacific #current-date {
        font-size: 1.1rem;
    }

    .big-pacific #today-weather {
        font-size: 0.9rem;
    }

    .big-pacific .clock-face {
        width: 110px;
        height: 110px;
    }

    .big-pacific th {
        font-size: 0.65rem;
        padding: 0.5rem 0.1rem;
    }

    .big-pacific td {
        padding: 0.4rem 0.1rem;
        height: 60px;
        font-size: 0.75rem;
    }

    .big-pacific td.current-day::before {
        font-size: 0.7rem;
    }

    .big-pacific #theme-switcher {
        min-width: 150px;
        font-size: 0.75rem;
    }
}

@media (max-width: 400px) {
    .big-pacific th {
        font-size: 0.6rem;
        padding: 0.4rem 0.1rem;
    }

    .big-pacific td {
        height: 50px;
        font-size: 0.7rem;
    }

    .big-pacific #theme-switcher {
        min-width: 130px;
        font-size: 0.7rem;
    }

    .big-pacific #calendar-title {
        font-size: 1.2rem;
    }
}