/* ==========================================================================
   Vibrant Colors Theme - Bold Calendar UI
   Version: 4.1
   Updated: 2025-06-25
   Features:
   - High-contrast color scheme
   - Optimized weekday headers
   - Mobile-responsive design
   - Bold UI elements
   - Animated color effects
   - Enhanced accessibility
   - Gradient textures
   - Fluid typography
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&family=Open+Sans:wght@400;600&display=swap');

:root {
    /* Vibrant Color Palette */
    --vc-bg: #111111;
    --vc-text: #FFFFFF;
    --vc-primary: #FF2D75;
    /* Hot pink */
    --vc-secondary: #00F0FF;
    /* Cyan */

    /* Gradient Colors */
    --vc-gradient-start: #33001B;
    --vc-gradient-end: #003333;

    /* Accent Colors */
    --vc-red: #FF0000;
    --vc-yellow: #FFFF00;
    --vc-green: #00FF00;
    --vc-orange: #FF7F00;
    --vc-purple: #9400D3;
    --vc-blue: #0000FF;

    /* Theme Variables */
    --vc-shadow: rgba(255, 45, 117, 0.4);
    --vc-radius: 6px;
    --vc-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --vc-hover: #2A2A2A;
    --vc-current-day: #3A1A3A;
}

/* ==================== ANIMATIONS ==================== */
@keyframes vc-pulse {

    0%,
    100% {
        text-shadow: 0 0 10px var(--vc-primary),
            0 0 20px rgba(255, 45, 117, 0.7);
    }

    50% {
        text-shadow: 0 0 20px var(--vc-primary),
            0 0 40px rgba(255, 45, 117, 0.9);
    }
}

@keyframes color-shift {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

@keyframes vc-glow {

    0%,
    100% {
        box-shadow: 0 0 10px var(--vc-primary);
    }

    50% {
        box-shadow: 0 0 30px var(--vc-secondary);
    }
}

/* ==================== BASE STYLES ==================== */
.vibrant-colors {
    font-family: 'Open Sans', sans-serif;
    color: var(--vc-text);
    line-height: 1.6;
    background: var(--vc-bg);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background-image:
        linear-gradient(45deg,
            rgba(255, 45, 117, 0.1) 1px,
            transparent 1px),
        linear-gradient(-45deg,
            rgba(0, 240, 255, 0.1) 1px,
            transparent 1px);
    background-size: 40px 40px;
}

.vibrant-colors::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 90% 10%,
            rgba(255, 45, 117, 0.1) 0%,
            transparent 20%),
        radial-gradient(circle at 10% 90%,
            rgba(0, 240, 255, 0.1) 0%,
            transparent 20%);
    pointer-events: none;
    z-index: 0;
}

.vibrant-colors::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="40" height="40" viewBox="0 0 40 40" opacity="0.05"><circle cx="20" cy="20" r="2" fill="%23FF2D75"/></svg>');
    pointer-events: none;
    z-index: 0;
}

.vibrant-colors .container {
    background-color: rgba(20, 20, 20, 0.95);
    padding: 2rem;
    border: 1px solid var(--vc-primary);
    box-shadow: 0 0 40px var(--vc-shadow);
    position: relative;
    overflow: hidden;
    max-width: 1600px;
    margin: 0 auto;
    border-radius: var(--vc-radius);
    z-index: 1;
}

.vibrant-colors .container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            transparent,
            var(--vc-primary),
            var(--vc-secondary),
            var(--vc-yellow),
            var(--vc-green),
            transparent);
    animation: color-shift 10s linear infinite;
}

/* ==================== HEADER & TITLE ==================== */
.vibrant-colors #calendar-title {
    font-family: 'Poppins', sans-serif;
    color: var(--vc-primary);
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    position: relative;
    animation: vc-pulse 2s infinite;
    text-transform: uppercase;
}

.vibrant-colors #calendar-title::before,
.vibrant-colors #calendar-title::after {
    content: "✨";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--vc-secondary);
    font-size: 2rem;
    animation: vc-pulse 3s infinite;
}

.vibrant-colors #calendar-title::before {
    left: 1rem;
}

.vibrant-colors #calendar-title::after {
    right: 1rem;
    animation-delay: 0.5s;
}

/* ==================== DATE & WEATHER DISPLAY ==================== */
.vibrant-colors #date-weather-container {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(90deg,
            rgba(255, 45, 117, 0.2),
            rgba(0, 240, 255, 0.2));
    border: 1px solid var(--vc-primary);
    border-radius: var(--vc-radius);
    position: relative;
    overflow: hidden;
}

.vibrant-colors #date-weather-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            var(--vc-primary),
            var(--vc-secondary),
            transparent);
}

.vibrant-colors #current-date {
    font-family: 'Poppins', sans-serif;
    color: var(--vc-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(255, 45, 117, 0.5);
}

.vibrant-colors #today-weather {
    font-family: 'Open Sans', sans-serif;
    color: var(--vc-secondary);
    font-size: 1.3rem;
    letter-spacing: 0.05em;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* ==================== ANALOG CLOCK ==================== */
.vibrant-colors #analog-watch {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.vibrant-colors .clock-face {
    width: 200px;
    height: 200px;
    border: 3px solid var(--vc-primary);
    border-radius: 50%;
    position: relative;
    background-color: var(--vc-bg);
    box-shadow:
        0 0 20px var(--vc-shadow),
        inset 0 0 15px rgba(255, 45, 117, 0.2);
    background-image:
        radial-gradient(circle at center,
            transparent 65%,
            rgba(255, 45, 117, 0.2) 100%);
}

.vibrant-colors .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.4"><text x="50" y="18" text-anchor="middle" font-family="Poppins" font-size="12" fill="%23FF2D75">12</text><text x="82" y="55" text-anchor="middle" font-family="Poppins" font-size="12" fill="%23FF2D75">3</text><text x="50" y="92" text-anchor="middle" font-family="Poppins" font-size="12" fill="%23FF2D75">6</text><text x="18" y="55" text-anchor="middle" font-family="Poppins" font-size="12" fill="%23FF2D75">9</text></svg>');
}

.vibrant-colors .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);
}

.vibrant-colors .hour-hand {
    width: 40%;
    left: 10%;
    height: 6px;
    background: var(--vc-primary);
    margin-top: -3px;
    border-radius: 3px;
}

.vibrant-colors .minute-hand {
    width: 48%;
    left: 2%;
    height: 4px;
    background: var(--vc-secondary);
    margin-top: -2px;
    border-radius: 2px;
}

.vibrant-colors .second-hand {
    width: 48%;
    left: 2%;
    height: 2px;
    background: var(--vc-yellow);
    margin-top: -1px;
}

.vibrant-colors .clock-face::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-color: var(--vc-text);
    border-radius: 50%;
    border: 2px solid var(--vc-secondary);
    box-shadow: 0 0 10px var(--vc-secondary);
}

/* ==================== CALENDAR TABLE - OPTIMIZED HEADERS ==================== */
.vibrant-colors table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem auto;
    background-color: rgba(30, 30, 30, 0.9);
    border: 1px solid var(--vc-primary);
    border-radius: var(--vc-radius);
    table-layout: fixed;
    box-shadow: 0 0 20px var(--vc-shadow);
}

.vibrant-colors th {
    background: linear-gradient(to bottom,
            rgba(255, 45, 117, 0.3),
            rgba(255, 45, 117, 0.1));
    color: var(--vc-primary) !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    padding: 1rem 0.3rem;
    border: 1px solid var(--vc-primary);
    position: relative;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: uppercase;
}

.vibrant-colors th .full-day {
    display: inline;
}

.vibrant-colors th .short-day {
    display: none;
}

.vibrant-colors td {
    background-color: rgba(25, 25, 25, 0.9);
    color: var(--vc-text);
    padding: 1rem 0.3rem;
    border: 1px solid var(--vc-primary);
    height: 100px;
    vertical-align: top;
    transition: all var(--vc-transition);
    position: relative;
    font-size: 0.9rem;
}

.vibrant-colors td:hover {
    background-color: var(--vc-hover);
    box-shadow: inset 0 0 20px var(--vc-shadow);
}

.vibrant-colors .date-number {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--vc-text);
    font-size: 1.1rem;
}

.vibrant-colors td.current-day {
    background-color: var(--vc-current-day);
    border: 2px solid var(--vc-secondary);
    color: var(--vc-secondary) !important;
    font-weight: 700;
    animation: vc-glow 3s infinite;
}

.vibrant-colors td.current-day .date-number {
    color: var(--vc-secondary) !important;
    font-weight: 800;
}

.vibrant-colors td.current-day::before {
    content: "🌟";
    position: absolute;
    top: 5px;
    left: 5px;
    color: var(--vc-secondary);
    z-index: 1;
    font-size: 1rem;
}

/* ==================== EVENT MARKERS ==================== */
.vibrant-colors .event-marker {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--vc-primary);
    margin: 0 2px;
    box-shadow: 0 0 8px var(--vc-shadow);
    transition: all var(--vc-transition);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.vibrant-colors .event-marker:hover {
    transform: scale(2);
    background-color: var(--vc-secondary);
    box-shadow: 0 0 20px var(--vc-primary);
}

.vibrant-colors .event-marker.holiday {
    background-color: var(--vc-yellow);
}

.vibrant-colors .event-marker.historic {
    background-color: var(--vc-purple);
}

.vibrant-colors .event-marker.patriotic {
    background-color: var(--vc-red);
}

/* ==================== MODAL STYLES ==================== */
.vibrant-colors .modal-content {
    position: relative;
    background-color: rgba(30, 30, 30, 0.98);
    border: 2px solid var(--vc-primary);
    padding: 30px;
    color: var(--vc-text);
    box-shadow: 0 0 40px var(--vc-shadow);
    border-radius: var(--vc-radius);
    animation: vc-glow 1s ease;
}

.vibrant-colors .modal-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg,
            var(--vc-primary),
            var(--vc-secondary),
            var(--vc-yellow),
            var(--vc-green),
            var(--vc-blue),
            var(--vc-purple));
    animation: color-shift 10s linear infinite;
}

.vibrant-colors .modal-content h2 {
    color: var(--vc-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 2em;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 45, 117, 0.5);
}

.vibrant-colors .modal-content p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

.vibrant-colors .modal-content .event-time {
    display: block;
    font-weight: 700;
    color: var(--vc-secondary);
    margin-bottom: 15px;
    font-size: 1.3em;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.vibrant-colors .modal-content .event-description {
    background: linear-gradient(to right,
            rgba(255, 45, 117, 0.2),
            rgba(0, 240, 255, 0.2));
    padding: 20px;
    border-left: 4px solid var(--vc-primary);
    margin: 20px 0;
    border-radius: 0 var(--vc-radius) var(--vc-radius) 0;
}

.vibrant-colors .modal-content button {
    background: linear-gradient(to right,
            var(--vc-primary),
            var(--vc-purple));
    color: var(--vc-text);
    border: none;
    padding: 12px 25px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--vc-transition);
    border-radius: var(--vc-radius);
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 0 15px var(--vc-shadow);
}

.vibrant-colors .modal-content button:hover {
    background: linear-gradient(to right,
            var(--vc-secondary),
            var(--vc-blue));
    box-shadow: 0 0 25px var(--vc-shadow);
    transform: translateY(-2px);
}

.vibrant-colors .modal .close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--vc-primary);
    color: var(--vc-text);
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: all var(--vc-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    box-shadow: 0 0 10px var(--vc-shadow);
}

.vibrant-colors .modal .close-button:hover {
    background-color: var(--vc-secondary);
    transform: rotate(90deg) scale(1.1);
}

/* ==================== BUTTONS & CONTROLS ==================== */
.vibrant-colors .button,
.vibrant-colors .transparent-button {
    border: 2px solid var(--vc-primary);
    color: var(--vc-primary);
    background-color: transparent;
    padding: 0.8rem 1.6rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--vc-transition);
    position: relative;
    overflow: hidden;
    margin: 0.5rem;
    border-radius: var(--vc-radius);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vibrant-colors .button::before,
.vibrant-colors .transparent-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 45, 117, 0.2), transparent);
    transition: 0.6s;
}

.vibrant-colors .button:hover,
.vibrant-colors .transparent-button:hover {
    background-color: var(--vc-primary);
    color: var(--vc-text);
    box-shadow: 0 0 20px var(--vc-shadow);
    transform: translateY(-2px);
}

.vibrant-colors .button:hover::before,
.vibrant-colors .transparent-button:hover::before {
    left: 100%;
}

.vibrant-colors .controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

/* ==================== THEME SWITCHER ==================== */
.vibrant-colors #theme-switcher-container {
    position: relative;
    margin: 0 1rem;
    min-width: 220px;
    z-index: 1000;
}

.vibrant-colors #theme-switcher {
    background-color: var(--vc-bg);
    color: var(--vc-primary) !important;
    border: 2px solid var(--vc-primary);
    padding: 0.8rem 2.4rem 0.8rem 1rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    width: 100%;
    border-radius: var(--vc-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='%23FF2D75'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1rem;
    cursor: pointer;
    transition: all var(--vc-transition);
    box-shadow: 0 0 10px var(--vc-shadow);
}

.vibrant-colors #theme-switcher option {
    background-color: var(--vc-bg) !important;
    color: var(--vc-primary) !important;
    font-size: 1rem;
    font-weight: 700;
    padding: 12px 15px !important;
}

.vibrant-colors #theme-switcher option:hover {
    background-color: var(--vc-primary) !important;
    color: var(--vc-text) !important;
}

.vibrant-colors #theme-switcher:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 45, 117, 0.4);
}

/* ==================== BACK TO TOP BUTTON ==================== */
.vibrant-colors #backToTopBtn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 9999;
    border: 2px solid var(--vc-primary);
    padding: 1rem 1.8rem;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--vc-primary);
    background-color: var(--vc-bg);
    cursor: pointer;
    transition: all var(--vc-transition);
    display: none;
    border-radius: var(--vc-radius);
    box-shadow: 0 0 20px var(--vc-shadow);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vibrant-colors #backToTopBtn:hover {
    background-color: var(--vc-primary);
    color: var(--vc-text);
    transform: translateY(-5px);
}

/* ==================== FOOTER ==================== */
.vibrant-colors footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--vc-primary);
    color: var(--vc-text);
    font-size: 0.9rem;
    position: relative;
}

.vibrant-colors footer::before {
    content: "🌈";
    color: var(--vc-primary);
    position: absolute;
    left: 50%;
    top: -15px;
    transform: translateX(-50%);
    font-size: 1.5rem;
}

/* ==================== MEDIA QUERIES ==================== */
@media (max-width: 992px) {
    .vibrant-colors .container {
        padding: 1.5rem;
    }

    .vibrant-colors #calendar-title {
        font-size: 2.5rem;
    }

    .vibrant-colors #current-date {
        font-size: 1.8rem;
    }

    .vibrant-colors #today-weather {
        font-size: 1.2rem;
    }

    .vibrant-colors th {
        font-size: 0.85rem;
        padding: 0.9rem 0.3rem;
    }
}

@media (max-width: 768px) {
    .vibrant-colors .container {
        padding: 1.2rem;
    }

    .vibrant-colors #calendar-title {
        font-size: 2.2rem;
    }

    .vibrant-colors .clock-face {
        width: 180px;
        height: 180px;
    }

    /* Switch to short day names */
    .vibrant-colors th .full-day {
        display: none;
    }

    .vibrant-colors th .short-day {
        display: inline;
    }

    .vibrant-colors th {
        font-size: 0.8rem;
        padding: 0.8rem 0.2rem;
    }

    .vibrant-colors td {
        padding: 0.8rem 0.2rem;
        height: 90px;
        font-size: 0.85rem;
    }

    .vibrant-colors #backToTopBtn {
        right: 20px;
        bottom: 20px;
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
    }

    .vibrant-colors #theme-switcher {
        padding: 0.7rem 2rem 0.7rem 0.9rem;
        font-size: 0.9rem;
        min-width: 200px;
    }

    .vibrant-colors .modal-content {
        padding: 20px;
    }

    .vibrant-colors .modal-content h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 576px) {
    .vibrant-colors .container {
        padding: 1rem;
    }

    .vibrant-colors #calendar-title {
        font-size: 1.8rem;
    }

    .vibrant-colors #current-date {
        font-size: 1.4rem;
    }

    .vibrant-colors #today-weather {
        font-size: 1rem;
    }

    .vibrant-colors .clock-face {
        width: 160px;
        height: 160px;
    }

    .vibrant-colors th {
        font-size: 0.75rem;
        padding: 0.7rem 0.15rem;
    }

    .vibrant-colors td {
        padding: 0.6rem 0.15rem;
        height: 80px;
        font-size: 0.8rem;
    }

    .vibrant-colors td.current-day::before {
        font-size: 0.8rem;
    }

    .vibrant-colors #theme-switcher {
        min-width: 180px;
        font-size: 0.85rem;
    }
}

@media (max-width: 400px) {
    .vibrant-colors th {
        font-size: 0.7rem;
        padding: 0.6rem 0.1rem;
    }

    .vibrant-colors td {
        height: 70px;
        font-size: 0.75rem;
    }

    .vibrant-colors #theme-switcher {
        min-width: 160px;
        font-size: 0.8rem;
    }

    .vibrant-colors #calendar-title {
        font-size: 1.5rem;
    }
}