/* ==========================================================================
   The Deepest Point Theme - Abyssal Ocean Inspired Calendar
   Version: 1.0
   Updated: 2024-06-10
   Changes:
   - Deep ocean color palette with bioluminescent accents
   - Pressure-depth visual hierarchy and submarine elements
   - Eerie glow effects and deep sea creature motifs
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Abyssal:wght@400;700&family=Deep+Ocean:wght@300;400;600&display=swap');

:root {
    /* Abyssal Color Palette */
    --depth-bg: #010A18;
    --depth-text: #C7F2FF;
    --depth-primary: #021A3A;
    --depth-secondary: #032A5C;
    --depth-date-number: #00D4FF;

    /* Pressure Layer Colors */
    --depth-layer1: #021A3A;
    --depth-layer2: #032A5C;
    --depth-layer3: #053A7E;
    --depth-layer4: #074AA0;
    --depth-layer5: #095AC2;

    /* Bioluminescent Accents */
    --depth-accent1: #00D4FF;
    /* Submarine Light */
    --depth-accent2: #00FFB3;
    /* Glowing Coral */
    --depth-accent3: #7D5AFF;
    /* Anglerfish Lure */
    --depth-accent4: rgba(0, 212, 255, 0.5);
    --depth-accent5: rgba(0, 255, 179, 0.3);

    /* Theme Variables */
    --depth-shadow: rgba(0, 212, 255, 0.15);
    --depth-radius: 8px;
    --depth-transition: 0.4s ease-out;
    --depth-hover: #032A5C;
    --depth-glow: 0 0 15px rgba(0, 212, 255, 0.4);
    --depth-texture: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%2300D4FF" opacity="0.1"/><circle cx="60" cy="40" r="3" fill="%2300D4FF" opacity="0.1"/><circle cx="40" cy="70" r="1" fill="%2300D4FF" opacity="0.1"/><circle cx="80" cy="80" r="2" fill="%2300D4FF" opacity="0.1"/></svg>');
}

/* ==================== ANIMATIONS ==================== */
@keyframes depth-pulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 10px var(--depth-accent1);
    }
}

@keyframes bubble-rise {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    20% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-100px);
        opacity: 0;
    }
}

@keyframes current-flow {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 100px 0;
    }
}

@keyframes jellyfish-float {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-5px) rotate(2deg);
    }
}

/* ==================== BASE STYLES ==================== */
.the-deepest-point {
    font-family: 'Deep Ocean', sans-serif;
    color: var(--depth-text);
    line-height: 1.6;
    font-size: 1rem;
    background-color: var(--depth-bg);
    min-height: 100vh;
    background-image:
        var(--depth-texture),
        linear-gradient(to bottom, #010A18, #021A3A);
    background-repeat: repeat;
    animation: current-flow 80s linear infinite;
}

.the-deepest-point .container {
    background-color: var(--depth-primary);
    padding: 2rem;
    border: 1px solid var(--depth-accent4);
    box-shadow: var(--depth-glow);
    position: relative;
    overflow: hidden;
    max-width: 1600px;
    margin: 0 auto;
    border-radius: var(--depth-radius);
    background-image:
        linear-gradient(to bottom, rgba(0, 212, 255, 0.05), transparent);
}

.the-deepest-point .container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            transparent,
            var(--depth-accent1),
            var(--depth-accent2),
            transparent);
}

.the-deepest-point .container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            transparent,
            var(--depth-accent3),
            var(--depth-accent1),
            transparent);
}

/* Bubble decorations */
.the-deepest-point .container::after {
    pointer-events: none;
}

/* ==================== HEADER & TITLE ==================== */
.the-deepest-point #calendar-title {
    font-family: 'Abyssal', serif;
    color: var(--depth-text);
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    letter-spacing: 0.1em;
    position: relative;
    font-weight: 700;
    text-shadow: 0 0 8px var(--depth-accent1);
}

.the-deepest-point #calendar-title::after {
    content: "꩜";
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8rem;
    animation: depth-pulse 4s infinite;
    color: var(--depth-accent1);
}

/* ==================== DATE & WEATHER DISPLAY ==================== */
.the-deepest-point #date-weather-container {
    text-align: center;
    margin: 1.8rem 0;
    padding: 1.2rem;
    background-color: var(--depth-primary);
    border: 1px solid var(--depth-accent4);
    border-radius: var(--depth-radius);
    position: relative;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
}

.the-deepest-point #date-weather-container::before {
    content: "DEEP SEA CHRONICLE";
    position: absolute;
    top: -10px;
    right: 20px;
    background-color: var(--depth-primary);
    padding: 0 8px;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--depth-accent1);
    font-weight: 600;
    font-family: 'Deep Ocean', sans-serif;
    text-transform: uppercase;
}

.the-deepest-point #date-weather-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--depth-accent1), transparent);
}

.the-deepest-point #current-date {
    font-family: 'Abyssal', serif;
    color: var(--depth-accent1);
    font-size: 2.1rem;
    font-weight: 400;
    margin-bottom: 0.4rem;
    letter-spacing: 0.05em;
}

.the-deepest-point #today-weather {
    font-family: 'Deep Ocean', sans-serif;
    color: var(--depth-text);
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.03em;
}

/* ==================== ANALOG CLOCK ==================== */
.the-deepest-point #analog-watch {
    display: flex;
    justify-content: center;
    margin: 1.8rem 0;
    position: relative;
}

.the-deepest-point .clock-face {
    width: 180px;
    height: 180px;
    border: 3px solid var(--depth-accent1);
    border-radius: 50%;
    position: relative;
    background-color: var(--depth-primary);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.3);
    background-image:
        radial-gradient(circle at center, transparent 65%, var(--depth-accent4) 100%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="45" fill="none" stroke="%2300D4FF" stroke-width="0.3" opacity="0.3"/></svg>');
}

.the-deepest-point .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);
}

.the-deepest-point .hour-hand {
    width: 40%;
    left: 10%;
    height: 4px;
    background: var(--depth-accent1);
    margin-top: -2px;
    border-radius: 2px;
}

.the-deepest-point .minute-hand {
    width: 48%;
    left: 2%;
    height: 3px;
    background: var(--depth-accent2);
    margin-top: -1.5px;
    border-radius: 1.5px;
}

.the-deepest-point .second-hand {
    width: 48%;
    left: 2%;
    height: 2px;
    background: var(--depth-accent3);
    margin-top: -1px;
}

/* Clock center ornament */
.the-deepest-point .clock-face::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background-color: var(--depth-accent1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    box-shadow: 0 0 0 3px var(--depth-primary);
}

/* Digital display in clock */
.the-deepest-point .clock-face::before {
    content: "⚓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    opacity: 0.1;
    z-index: 1;
}

/* Bubble animation elements */
.the-deepest-point .clock-face .bubble {
    position: absolute;
    background-color: var(--depth-accent1);
    border-radius: 50%;
    animation: bubble-rise 4s infinite;
    opacity: 0;
}

/* ==================== CALENDAR TABLE ==================== */
.the-deepest-point table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin: 1.8rem auto;
    background-color: transparent;
    table-layout: fixed;
}

/* DAY OF WEEK HEADERS */
.the-deepest-point th {
    background-color: var(--depth-accent1);
    color: var(--depth-primary) !important;
    font-family: 'Deep Ocean', sans-serif;
    font-weight: 600;
    padding: 0.8rem 0.4rem;
    border-radius: var(--depth-radius);
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.the-deepest-point th span.full-day-name {
    display: inline;
}

.the-deepest-point th abbr {
    display: none;
    text-decoration: none;
    border-bottom: none;
}

/* DATE NUMBER STYLES */
.the-deepest-point td {
    background-color: var(--depth-primary);
    color: var(--depth-text);
    padding: 1rem;
    border: 1px solid var(--depth-accent4);
    height: 90px;
    vertical-align: top;
    transition: all var(--depth-transition);
    position: relative;
    border-radius: var(--depth-radius);
    box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.1);
}

.the-deepest-point td .date-number {
    color: var(--depth-date-number) !important;
    font-weight: 600;
    font-size: 1.2rem;
    position: absolute;
    top: 8px;
    left: 8px;
    font-family: 'Abyssal', serif;
}

.the-deepest-point td:hover {
    background-color: var(--depth-secondary);
    box-shadow: 0 2px 15px rgba(0, 212, 255, 0.2);
}

/* Current date highlight */
.the-deepest-point td.current-day {
    background-color: rgba(0, 212, 255, 0.1);
    border: 2px solid var(--depth-accent1);
    animation: depth-pulse 3s infinite;
}

.the-deepest-point td.current-day .date-number {
    color: var(--depth-text) !important;
    font-weight: 600;
}

.the-deepest-point td.current-day::before {
    content: "🜨";
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 1;
    font-size: 1.1rem;
    color: var(--depth-accent1);
    font-weight: bold;
}

/* ==================== EVENT MARKERS ==================== */
.the-deepest-point .event-marker {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--depth-accent2);
    margin: 0 1px;
    transition: all var(--depth-transition);
}

.the-deepest-point .event-marker:hover {
    transform: scale(1.4);
    background-color: var(--depth-accent2);
    box-shadow: 0 0 6px rgba(0, 255, 179, 0.4);
}

/* ==================== MODAL STYLES ==================== */
.the-deepest-point .modal-content {
    position: relative;
    background-color: var(--depth-primary);
    border: 1px solid var(--depth-accent4);
    padding: 25px;
    color: var(--depth-text);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-radius: var(--depth-radius);
    animation: jellyfish-float 0.4s ease-out;
}

.the-deepest-point .modal-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            var(--depth-accent1) 0%,
            var(--depth-accent2) 50%,
            var(--depth-accent1) 100%);
}

.the-deepest-point .modal-content h2 {
    color: var(--depth-accent1);
    font-family: 'Abyssal', serif;
    font-size: 2em;
    margin-bottom: 15px;
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* Modal date display */
.the-deepest-point .modal-date {
    font-family: 'Abyssal', serif;
    color: var(--depth-accent1);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--depth-accent4);
    letter-spacing: 0.05em;
}

/* Event list */
.the-deepest-point .event-list {
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
}

.the-deepest-point .event-item {
    background-color: var(--depth-secondary);
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--depth-accent1);
    border-radius: var(--depth-radius);
    transition: all var(--depth-transition);
}

.the-deepest-point .event-item:hover {
    background-color: var(--depth-layer3);
    transform: translateX(3px);
}

.the-deepest-point .event-time {
    font-family: 'Deep Ocean', sans-serif;
    color: var(--depth-accent1);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.3rem;
    display: block;
    letter-spacing: 0.03em;
}

.the-deepest-point .event-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--depth-text);
    font-family: 'Deep Ocean', sans-serif;
}

.the-deepest-point .event-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--depth-text);
    opacity: 0.9;
    font-family: 'Deep Ocean', sans-serif;
}

.the-deepest-point .modal-content button {
    background-color: var(--depth-accent1);
    color: var(--depth-primary);
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--depth-transition);
    letter-spacing: 0.5px;
    font-family: 'Deep Ocean', sans-serif;
    border-radius: var(--depth-radius);
}

.the-deepest-point .modal-content button:hover {
    background-color: var(--depth-hover);
    box-shadow: 0 3px 15px rgba(0, 212, 255, 0.2);
}

/* Close Button */
.the-deepest-point .modal .close-button {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--depth-primary);
    color: var(--depth-text);
    border: 1px solid var(--depth-text);
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: all var(--depth-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

.the-deepest-point .modal .close-button:hover {
    background-color: var(--depth-text);
    color: var(--depth-accent1);
    border-color: var(--depth-text);
}

/* ==================== BUTTONS & CONTROLS ==================== */
.the-deepest-point .button,
.the-deepest-point .transparent-button {
    border: 1px solid var(--depth-accent1);
    color: var(--depth-text);
    background-color: transparent;
    padding: 0.8rem 1.5rem;
    font-family: 'Deep Ocean', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--depth-transition);
    position: relative;
    overflow: hidden;
    margin: 0.4rem;
    border-radius: var(--depth-radius);
    letter-spacing: 0.02em;
    font-size: 0.95rem;
}

.the-deepest-point .button:hover,
.the-deepest-point .transparent-button:hover {
    background-color: var(--depth-accent1);
    color: var(--depth-primary);
    box-shadow: 0 3px 15px rgba(0, 212, 255, 0.15);
}

.the-deepest-point .controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 1.2rem 0;
}

/* ==================== THEME SWITCHER ==================== */
.the-deepest-point #theme-switcher-container {
    position: relative;
    margin: 0 0.8rem;
    min-width: 200px;
    z-index: 1000;
}

.the-deepest-point #theme-switcher {
    background-color: var(--depth-primary);
    color: var(--depth-text) !important;
    border: 1px solid var(--depth-accent1);
    padding: 0.8rem 2.2rem 0.8rem 1rem;
    font-family: 'Deep Ocean', 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='%23C7F2FF'%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(--depth-transition);
    border-radius: var(--depth-radius);
}

.the-deepest-point #theme-switcher option {
    background-color: var(--depth-primary) !important;
    color: var(--depth-text) !important;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 12px !important;
}

.the-deepest-point #theme-switcher:focus {
    outline: none;
    border-color: var(--depth-accent1);
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
}

/* ==================== BACK TO TOP BUTTON ==================== */
.the-deepest-point #backToTopBtn {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 9999;
    border: none;
    padding: 1rem 1.7rem;
    font-size: 0.95rem;
    font-family: 'Deep Ocean', sans-serif;
    font-weight: 600;
    color: var(--depth-primary);
    background-color: var(--depth-accent1);
    cursor: pointer;
    transition: all var(--depth-transition);
    opacity: 0.9;
    display: none;
    border-radius: var(--depth-radius);
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.3);
}

.the-deepest-point #backToTopBtn:hover {
    background-color: var(--depth-hover);
    opacity: 1;
}

/* ==================== FOOTER ==================== */
.the-deepest-point footer {
    text-align: center;
    margin-top: 1.8rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--depth-accent4);
    color: var(--depth-text);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Abyssal', serif;
    letter-spacing: 0.05em;
}

/* Bubble animation elements */
.the-deepest-point .bubble {
    position: absolute;
    background-color: var(--depth-accent1);
    border-radius: 50%;
    animation: bubble-rise 6s infinite;
    opacity: 0;
}

/* ==================== MEDIA QUERIES ==================== */
@media (max-width: 992px) {
    .the-deepest-point .container {
        padding: 1.5rem;
    }

    .the-deepest-point #calendar-title {
        font-size: 2.2rem;
    }

    .the-deepest-point #current-date {
        font-size: 1.7rem;
    }

    .the-deepest-point #today-weather {
        font-size: 1.1rem;
    }

    .the-deepest-point .modal-date {
        font-size: 1.3rem;
    }

    .the-deepest-point .event-title {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .the-deepest-point {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .the-deepest-point .clock-face {
        width: 150px;
        height: 150px;
        border-width: 3px;
    }

    .the-deepest-point th {
        font-size: 0.85rem;
        padding: 0.7rem 0.3rem;
    }

    .the-deepest-point th span.full-day-name {
        display: none;
    }

    .the-deepest-point th abbr {
        display: inline;
    }

    .the-deepest-point td {
        padding: 0.7rem;
        height: 80px;
        font-size: 0.85rem;
    }

    .the-deepest-point td .date-number {
        font-size: 1.1rem;
        top: 6px;
        left: 6px;
    }

    .the-deepest-point td.current-day::before {
        font-size: 1rem;
        top: 4px;
        right: 4px;
    }

    .the-deepest-point #backToTopBtn {
        right: 15px;
        bottom: 15px;
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
    }

    .the-deepest-point #theme-switcher {
        padding: 0.7rem 1.8rem 0.7rem 0.8rem;
        font-size: 0.9rem;
        min-width: 170px;
    }

    .the-deepest-point .modal-content {
        padding: 20px;
    }

    .the-deepest-point .event-item {
        padding: 0.8rem;
    }
}

@media (max-width: 576px) {
    .the-deepest-point .container {
        padding: 1rem;
    }

    .the-deepest-point #calendar-title {
        font-size: 1.9rem;
    }

    .the-deepest-point #current-date {
        font-size: 1.5rem;
    }

    .the-deepest-point #today-weather {
        font-size: 1rem;
    }

    .the-deepest-point .clock-face {
        width: 130px;
        height: 130px;
        border-width: 2px;
    }

    .the-deepest-point th {
        font-size: 0.8rem;
        padding: 0.6rem 0.2rem;
    }

    .the-deepest-point td {
        padding: 0.6rem;
        height: 70px;
        font-size: 0.8rem;
    }

    .the-deepest-point td .date-number {
        font-size: 1rem;
        top: 5px;
        left: 5px;
    }

    .the-deepest-point #theme-switcher {
        min-width: 150px;
        font-size: 0.85rem;
    }

    .the-deepest-point .modal-content {
        padding: 15px;
    }

    .the-deepest-point .modal-date {
        font-size: 1.2rem;
    }

    .the-deepest-point .event-time {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .the-deepest-point th {
        font-size: 0.75rem;
        padding: 0.5rem 0.1rem;
    }

    .the-deepest-point td {
        height: 60px;
    }

    .the-deepest-point td .date-number {
        font-size: 0.9rem;
    }

    .the-deepest-point #theme-switcher {
        min-width: 130px;
        font-size: 0.8rem;
    }
}