/* ==========================================================================
   The Art of Visible Theme - High Contrast Clarity
   Version: 1.0
   Updated: 2024-06-15
   Features:
   - Ultra high contrast color scheme
   - Bold typography for maximum readability
   - Clear visual hierarchy
   - Accessibility-focused design
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@700&family=Open+Sans:wght@400;700&display=swap');

:root {
    /* High Contrast Color Palette */
    --visible-bg: #FFFFFF;
    --visible-text: #000000;
    --visible-primary: #FFFFFF;
    --visible-secondary: #F2F2F2;
    --visible-date-number: #E3170A;

    /* Contrast Texture Colors */
    --visible-texture1: #E6E6E6;
    --visible-texture2: #D9D9D9;
    --visible-texture3: #CCCCCC;
    --visible-texture4: #BFBFBF;
    --visible-texture5: #B3B3B3;

    /* Bold Accent Colors */
    --visible-red: #E3170A;
    --visible-blue: #006BA6;
    --visible-yellow: #FFB400;
    --visible-accent1: #E3170A;
    --visible-accent2: #A11207;
    --visible-accent3: #C91409;
    --visible-accent4: rgba(227, 23, 10, 0.3);
    --visible-accent5: rgba(227, 23, 10, 0.1);

    /* Theme Variables */
    --visible-shadow: rgba(0, 0, 0, 0.2);
    --visible-radius: 0px;
    --visible-transition: 0.2s ease-out;
    --visible-hover: #A11207;
    --visible-glow: 0 0 0 3px rgba(227, 23, 10, 0.3);
    --visible-pattern: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="5" fill="%23E3170A"/><rect y="95" width="100" height="5" fill="%23E3170A"/></svg>');
}

/* ==================== ANIMATIONS ==================== */
@keyframes visible-pulse {
    0% {
        opacity: 0.9;
    }

    50% {
        opacity: 1;
        transform: scale(1.02);
    }

    100% {
        opacity: 0.9;
    }
}

@keyframes visible-highlight {

    0%,
    100% {
        border-left: 5px solid var(--visible-red);
    }

    50% {
        border-left: 5px solid var(--visible-blue);
    }
}

/* ==================== BASE STYLES ==================== */
.the-art-of-visible {
    font-family: 'Open Sans', sans-serif;
    color: var(--visible-text);
    line-height: 1.8;
    font-size: 1.1rem;
    background-color: var(--visible-bg);
    min-height: 100vh;
    background-image: var(--visible-pattern);
    background-repeat: repeat-x;
    background-position: 0 0, 0 100%;
    background-size: 100% 5px;
}

.the-art-of-visible .container {
    background-color: var(--visible-primary);
    padding: 3rem;
    border: 3px solid var(--visible-text);
    box-shadow: 0 4px 15px var(--visible-shadow);
    position: relative;
    overflow: hidden;
    max-width: 1600px;
    margin: 0 auto;
    border-radius: var(--visible-radius);
}

.the-art-of-visible .container::before,
.the-art-of-visible .container::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 5px;
    background-color: var(--visible-red);
}

.the-art-of-visible .container::before {
    top: 0;
}

.the-art-of-visible .container::after {
    bottom: 0;
}

/* ==================== HEADER & TITLE ==================== */
.the-art-of-visible #calendar-title {
    font-family: 'Roboto Condensed', sans-serif;
    color: var(--visible-red);
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    position: relative;
    font-weight: 700;
    text-transform: uppercase;
}

.the-art-of-visible #calendar-title::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 5px;
    background-color: var(--visible-red);
}

/* ==================== DATE & WEATHER DISPLAY ==================== */
.the-art-of-visible #date-weather-container {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background-color: var(--visible-primary);
    border: 3px solid var(--visible-text);
    position: relative;
    box-shadow: 0 2px 10px var(--visible-shadow);
}

.the-art-of-visible #date-weather-container::before {
    content: "CURRENT VIEW";
    position: absolute;
    top: -15px;
    left: 30px;
    background-color: var(--visible-primary);
    padding: 0 15px;
    font-size: 1rem;
    letter-spacing: 0.1em;
    color: var(--visible-red);
    font-weight: 700;
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
}

.the-art-of-visible #current-date {
    font-family: 'Roboto Condensed', sans-serif;
    color: var(--visible-text);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.the-art-of-visible #today-weather {
    font-family: 'Open Sans', sans-serif;
    color: var(--visible-text);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

/* ==================== ANALOG CLOCK ==================== */
.the-art-of-visible #analog-watch {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
    position: relative;
}

.the-art-of-visible .clock-face {
    width: 200px;
    height: 200px;
    border: 5px solid var(--visible-text);
    border-radius: 50%;
    position: relative;
    background-color: var(--visible-primary);
    box-shadow: 0 4px 15px var(--visible-shadow);
}

.the-art-of-visible .clock-face::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 3px solid var(--visible-red);
    border-radius: 50%;
}

.the-art-of-visible .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-art-of-visible .hour-hand {
    width: 35%;
    left: 15%;
    height: 6px;
    background: var(--visible-text);
    margin-top: -3px;
}

.the-art-of-visible .minute-hand {
    width: 45%;
    left: 5%;
    height: 4px;
    background: var(--visible-text);
    margin-top: -2px;
}

.the-art-of-visible .second-hand {
    width: 45%;
    left: 5%;
    height: 2px;
    background: var(--visible-red);
    margin-top: -1px;
}

.the-art-of-visible .clock-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background-color: var(--visible-red);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* ==================== CALENDAR TABLE ==================== */
.the-art-of-visible table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin: 3rem auto;
    background-color: transparent;
    table-layout: fixed;
}

/* DAY OF WEEK HEADERS */
.the-art-of-visible th {
    background-color: var(--visible-primary);
    color: var(--visible-red) !important;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    padding: 1.5rem 0.5rem;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    border-bottom: 5px solid var(--visible-red);
    text-transform: uppercase;
}

.the-art-of-visible th span.full-day-name {
    display: inline;
}

.the-art-of-visible th abbr {
    display: none;
    text-decoration: none;
    border-bottom: none;
}

/* DATE NUMBER STYLES */
.the-art-of-visible td {
    background-color: var(--visible-primary);
    color: var(--visible-text);
    padding: 1.5rem;
    border: 3px solid var(--visible-text);
    height: 150px;
    vertical-align: top;
    transition: all var(--visible-transition);
    position: relative;
    box-shadow: 0 2px 10px var(--visible-shadow);
}

.the-art-of-visible td .date-number {
    color: var(--visible-red) !important;
    font-weight: 700;
    font-size: 1.5rem;
    position: absolute;
    top: 15px;
    left: 15px;
    font-family: 'Roboto Condensed', sans-serif;
}

.the-art-of-visible td:hover {
    background-color: var(--visible-secondary);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px var(--visible-shadow);
}

/* Current date highlight */
.the-art-of-visible td.current-day {
    background-color: var(--visible-secondary);
    border-left: 5px solid var(--visible-red);
    animation: visible-highlight 3s infinite;
}

.the-art-of-visible td.current-day .date-number {
    color: var(--visible-text) !important;
    font-weight: 700;
    font-size: 1.8rem;
}

.the-art-of-visible td.current-day::before {
    content: "⬤";
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1;
    font-size: 1.5rem;
    color: var(--visible-red);
}

/* ==================== EVENT MARKERS ==================== */
.the-art-of-visible .event-marker {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--visible-red);
    margin: 0 3px;
    transition: all var(--visible-transition);
}

.the-art-of-visible .event-marker:hover {
    transform: scale(1.8);
    background-color: var(--visible-blue);
}

/* ==================== MODAL STYLES ==================== */
.the-art-of-visible .modal-content {
    position: relative;
    background-color: var(--visible-primary);
    border: 3px solid var(--visible-text);
    padding: 3rem;
    color: var(--visible-text);
    box-shadow: 0 5px 25px var(--visible-shadow);
    animation: visible-pulse 2s infinite;
}

.the-art-of-visible .modal-content::before,
.the-art-of-visible .modal-content::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 5px;
    background-color: var(--visible-red);
}

.the-art-of-visible .modal-content::before {
    top: 0;
}

.the-art-of-visible .modal-content::after {
    bottom: 0;
}

.the-art-of-visible .modal-content h2 {
    color: var(--visible-red);
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Modal date display */
.the-art-of-visible .modal-date {
    font-family: 'Roboto Condensed', sans-serif;
    color: var(--visible-text);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--visible-text);
}

/* Event list */
.the-art-of-visible .event-list {
    margin: 2rem 0;
    padding: 0;
    list-style: none;
}

.the-art-of-visible .event-item {
    background-color: var(--visible-primary);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 5px solid var(--visible-red);
    transition: all var(--visible-transition);
    position: relative;
    border: 3px solid var(--visible-text);
}

.the-art-of-visible .event-item:hover {
    background-color: var(--visible-secondary);
    transform: translateX(10px);
}

.the-art-of-visible .event-time {
    font-family: 'Roboto Condensed', sans-serif;
    color: var(--visible-red);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: block;
    letter-spacing: 0.1em;
}

.the-art-of-visible .event-title {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--visible-text);
    font-family: 'Roboto Condensed', sans-serif;
}

.the-art-of-visible .event-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--visible-text);
    font-weight: 400;
}

.the-art-of-visible .modal-content button {
    background-color: var(--visible-red);
    color: var(--visible-primary);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--visible-transition);
    letter-spacing: 0.1em;
    font-family: 'Roboto Condensed', sans-serif;
    margin-top: 1.5rem;
    text-transform: uppercase;
}

.the-art-of-visible .modal-content button:hover {
    background-color: var(--visible-blue);
}

/* Close Button */
.the-art-of-visible .modal .close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: transparent;
    color: var(--visible-text);
    border: 3px solid var(--visible-text);
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all var(--visible-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.the-art-of-visible .modal .close-button:hover {
    background-color: var(--visible-secondary);
    color: var(--visible-red);
    border-color: var(--visible-red);
}

/* ==================== BUTTONS & CONTROLS ==================== */
.the-art-of-visible .button,
.the-art-of-visible .transparent-button {
    border: 3px solid var(--visible-text);
    color: var(--visible-primary);
    background-color: var(--visible-red);
    padding: 1rem 2rem;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--visible-transition);
    margin: 0.5rem;
    letter-spacing: 0.1em;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.the-art-of-visible .transparent-button {
    background-color: transparent;
    color: var(--visible-text);
    border-color: var(--visible-text);
}

.the-art-of-visible .button:hover,
.the-art-of-visible .transparent-button:hover {
    background-color: var(--visible-blue);
    color: var(--visible-primary);
    border-color: var(--visible-blue);
}

.the-art-of-visible .transparent-button:hover {
    color: var(--visible-red);
    background-color: var(--visible-secondary);
    border-color: var(--visible-red);
}

.the-art-of-visible .controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

/* ==================== THEME SWITCHER ==================== */
.the-art-of-visible #theme-switcher-container {
    position: relative;
    margin: 0 1rem;
    min-width: 250px;
    z-index: 1000;
}

.the-art-of-visible #theme-switcher {
    background-color: var(--visible-primary);
    color: var(--visible-text) !important;
    border: 3px solid var(--visible-text);
    padding: 1rem 2.5rem 1rem 1.5rem;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    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='%23E3170A'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    cursor: pointer;
    transition: all var(--visible-transition);
}

.the-art-of-visible #theme-switcher option {
    background-color: var(--visible-primary) !important;
    color: var(--visible-text) !important;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 15px 20px !important;
}

.the-art-of-visible #theme-switcher:focus {
    outline: none;
    border-color: var(--visible-red);
    box-shadow: var(--visible-glow);
}

/* ==================== BACK TO TOP BUTTON ==================== */
.the-art-of-visible #backToTopBtn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 9999;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    color: var(--visible-primary);
    background-color: var(--visible-red);
    cursor: pointer;
    transition: all var(--visible-transition);
    opacity: 0.9;
    display: none;
    text-transform: uppercase;
    border: 3px solid var(--visible-text);
}

.the-art-of-visible #backToTopBtn:hover {
    background-color: var(--visible-blue);
    opacity: 1;
}

/* ==================== FOOTER ==================== */
.the-art-of-visible footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 3px solid var(--visible-text);
    color: var(--visible-text);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* ==================== MEDIA QUERIES ==================== */
@media (max-width: 1200px) {
    .the-art-of-visible .container {
        padding: 2.5rem;
    }
}

@media (max-width: 992px) {
    .the-art-of-visible #calendar-title {
        font-size: 3rem;
    }

    .the-art-of-visible #current-date {
        font-size: 2.2rem;
    }

    .the-art-of-visible .clock-face {
        width: 180px;
        height: 180px;
    }

    .the-art-of-visible td {
        height: 130px;
    }
}

@media (max-width: 768px) {
    .the-art-of-visible {
        font-size: 1rem;
    }

    .the-art-of-visible .container {
        padding: 2rem;
    }

    .the-art-of-visible #calendar-title {
        font-size: 2.5rem;
    }

    .the-art-of-visible #current-date {
        font-size: 2rem;
    }

    .the-art-of-visible #today-weather {
        font-size: 1.2rem;
    }

    .the-art-of-visible .clock-face {
        width: 160px;
        height: 160px;
    }

    .the-art-of-visible th {
        font-size: 1.1rem;
        padding: 1.2rem 0.5rem;
    }

    .the-art-of-visible td {
        padding: 1.2rem;
        height: 120px;
    }

    .the-art-of-visible td .date-number {
        font-size: 1.3rem;
    }

    .the-art-of-visible #backToTopBtn {
        right: 25px;
        bottom: 25px;
    }

    .the-art-of-visible #theme-switcher {
        min-width: 220px;
    }
}

@media (max-width: 576px) {
    .the-art-of-visible .container {
        padding: 1.5rem;
    }

    .the-art-of-visible #calendar-title {
        font-size: 2rem;
    }

    .the-art-of-visible #current-date {
        font-size: 1.8rem;
    }

    .the-art-of-visible .clock-face {
        width: 140px;
        height: 140px;
    }

    .the-art-of-visible td {
        height: 110px;
        padding: 1rem;
    }

    .the-art-of-visible #theme-switcher {
        min-width: 200px;
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .the-art-of-visible #calendar-title {
        font-size: 1.8rem;
    }

    .the-art-of-visible .clock-face {
        width: 120px;
        height: 120px;
    }

    .the-art-of-visible td {
        height: 100px;
    }

    .the-art-of-visible #theme-switcher {
        min-width: 180px;
    }
}