/* ==========================================================================
   Strong Foundation - Structured Calendar Theme
   Version: 2.0
   Updated: 2024-06-10
   Changes:
   - Professional color palette
   - Structured design elements
   - Foundation-focused visualization
   - Updated all class names to .strong-foundation
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;700&family=Oswald:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

:root {
    /* Foundation Color Palette */
    --sf-bg: #F5F5F5;
    --sf-text: #212121;
    --sf-primary: #FFFFFF;
    --sf-secondary: #EEEEEE;
    --sf-date-number: #455A64;

    /* Structure Colors */
    --sf-accent1: #607D8B;
    /* Steel blue */
    --sf-accent2: #78909C;
    /* Cement gray */
    --sf-accent3: #8D6E63;
    /* Clay brown */
    --sf-accent4: rgba(96, 125, 139, 0.6);
    --sf-accent5: rgba(120, 144, 156, 0.4);

    /* Theme Variables */
    --sf-shadow: rgba(96, 125, 139, 0.15);
    --sf-radius: 8px;
    --sf-transition: 0.2s ease-out;
    --sf-hover: #546E7A;
    --sf-glow: 0 0 15px rgba(96, 125, 139, 0.1);
    --sf-pattern: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".15" fill="%23607D8B"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".25" fill="%23607D8B"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" opacity=".35" fill="%23607D8B"/></svg>');
}

/* ==================== ANIMATIONS ==================== */
@keyframes structure-build {
    0% {
        transform: translateY(10px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes blueprint-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes foundation-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes structure-glow {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(96, 125, 139, 0.1);
    }

    50% {
        box-shadow: var(--sf-glow);
    }
}

/* ==================== BASE STYLES ==================== */
.strong-foundation {
    font-family: 'Roboto Condensed', sans-serif;
    color: var(--sf-text) !important;
    line-height: 1.5;
    font-size: 1rem;
    background-color: var(--sf-bg);
    min-height: 100vh;
    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"><rect x="20" y="30" width="20" height="2" fill="%23607D8B" opacity="0.1"/><rect x="50" y="20" width="20" height="2" fill="%23607D8B" opacity="0.1"/><rect x="80" y="30" width="20" height="2" fill="%23607D8B" opacity="0.1"/></svg>');
    background-size: 150px 150px;
}

.strong-foundation .container {
    background-color: var(--sf-primary);
    padding: 2rem;
    border: 1px solid var(--sf-accent4);
    box-shadow: var(--sf-glow);
    position: relative;
    overflow: hidden;
    max-width: 1600px;
    margin: 2rem auto;
    border-radius: var(--sf-radius);
    animation: structure-build 0.4s ease-out;
}

.strong-foundation .container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            var(--sf-accent1) 0%,
            var(--sf-accent2) 50%,
            var(--sf-accent3) 100%);
}

.strong-foundation .container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background-image: var(--sf-pattern);
    background-size: 1200px 100%;
    opacity: 0.15;
}

/* ==================== HEADER & TITLE ==================== */
.strong-foundation #calendar-title {
    font-family: 'Oswald', sans-serif;
    color: var(--sf-accent1) !important;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    letter-spacing: 0.02em;
    position: relative;
    text-transform: uppercase;
}

.strong-foundation #calendar-title::after {
    content: "🏗️";
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    animation: blueprint-spin 10s linear infinite;
}

/* ==================== FOUNDATION TRACKER ==================== */
.strong-foundation #date-weather-container {
    text-align: center;
    margin: 1.8rem 0;
    padding: 1.2rem;
    background-color: var(--sf-primary);
    border: 1px solid var(--sf-accent4);
    border-radius: var(--sf-radius);
    position: relative;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.strong-foundation #date-weather-container::before {
    content: "TODAY'S PROGRESS";
    position: absolute;
    top: -10px;
    right: 20px;
    background-color: var(--sf-primary);
    padding: 0 10px;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--sf-text) !important;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    border: 1px solid var(--sf-accent4);
    border-radius: 12px;
    text-transform: uppercase;
}

.strong-foundation #current-date {
    font-family: 'Oswald', sans-serif;
    color: var(--sf-text) !important;
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.strong-foundation #today-weather {
    font-family: 'Roboto Condensed', sans-serif;
    color: var(--sf-accent3) !important;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Foundation Visualization */
.strong-foundation #analog-watch {
    display: flex;
    justify-content: center;
    margin: 1.8rem 0;
}

.strong-foundation .foundation-tracker {
    width: 100%;
    max-width: 400px;
    height: 24px;
    background-color: var(--sf-secondary);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.strong-foundation .foundation-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 65%;
    background: linear-gradient(90deg, var(--sf-accent1), var(--sf-accent3));
    border-radius: 12px;
}

.strong-foundation .foundation-marker {
    position: absolute;
    left: 65%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background-color: var(--sf-primary);
    border: 2px solid var(--sf-accent1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.strong-foundation .foundation-marker::after {
    content: "🔨";
    font-size: 1.2rem;
}

/* ==================== CALENDAR TABLE ==================== */
.strong-foundation table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin: 1.8rem auto;
    background-color: transparent;
    table-layout: fixed;
}

/* DAY HEADERS */
.strong-foundation th {
    background: linear-gradient(135deg, var(--sf-accent1), var(--sf-hover));
    color: white !important;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    padding: 0.8rem;
    border-radius: var(--sf-radius);
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.strong-foundation th span.full-day-name {
    display: inline;
}

.strong-foundation th abbr {
    display: none;
    text-decoration: none;
    border-bottom: none;
}

/* DATE CELLS */
.strong-foundation td {
    background-color: var(--sf-primary);
    color: var(--sf-text) !important;
    padding: 1rem;
    border: 1px solid var(--sf-accent4);
    height: 100px;
    vertical-align: top;
    transition: all var(--sf-transition);
    position: relative;
    border-radius: var(--sf-radius);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.03);
}

.strong-foundation td .date-number {
    color: var(--sf-date-number) !important;
    font-weight: 700;
    font-size: 1.2rem;
    position: absolute;
    top: 8px;
    left: 8px;
    font-family: 'Oswald', sans-serif;
}

.strong-foundation td:hover {
    background-color: var(--sf-secondary);
    box-shadow: 0 6px 15px rgba(96, 125, 139, 0.08);
    transform: translateY(-2px);
}

/* Current day highlight */
.strong-foundation td.current-day {
    background-color: rgba(96, 125, 139, 0.05);
    border: 2px solid var(--sf-accent1);
    animation: structure-glow 4s infinite;
}

.strong-foundation td.current-day .date-number {
    color: var(--sf-date-number) !important;
    font-weight: 700;
}

.strong-foundation td.current-day::before {
    content: "🏢";
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 1;
    font-size: 1.2rem;
}

/* ==================== MILESTONE MARKERS ==================== */
.strong-foundation .milestone-marker {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--sf-accent3);
    margin: 0 2px;
    transition: all var(--sf-transition);
}

.strong-foundation .milestone-marker:hover {
    transform: scale(1.6);
    background-color: var(--sf-accent1);
    box-shadow: 0 0 8px rgba(141, 110, 99, 0.4);
}

/* ==================== MODAL STYLES ==================== */
.strong-foundation .modal-content {
    position: relative;
    background-color: var(--sf-primary);
    border: 1px solid var(--sf-accent4);
    padding: 24px;
    color: var(--sf-text) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-radius: var(--sf-radius);
    animation: structure-build 0.4s ease-out;
}

.strong-foundation .modal-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            var(--sf-accent1) 0%,
            var(--sf-accent2) 50%,
            var(--sf-accent3) 100%);
}

.strong-foundation .modal-content h2 {
    color: var(--sf-accent1) !important;
    font-family: 'Oswald', sans-serif;
    font-size: 2em;
    margin-bottom: 18px;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

/* Modal date display */
.strong-foundation .modal-date {
    font-family: 'Oswald', sans-serif;
    color: var(--sf-text) !important;
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--sf-accent4);
}

/* Structure list */
.strong-foundation .structure-list {
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
}

.strong-foundation .structure-item {
    background-color: var(--sf-secondary);
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--sf-accent1);
    border-radius: var(--sf-radius);
    transition: all var(--sf-transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.strong-foundation .structure-item::before {
    content: "📐";
    font-size: 1.1rem;
}

.strong-foundation .structure-item.completed::before {
    content: "✅";
}

.strong-foundation .structure-item:hover {
    background-color: var(--sf-primary);
    transform: translateX(6px);
    box-shadow: 0 6px 15px rgba(96, 125, 139, 0.08);
}

.strong-foundation .structure-time {
    font-family: 'Oswald', sans-serif;
    color: var(--sf-accent1) !important;
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0.3rem;
    display: block;
}

.strong-foundation .structure-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--sf-text) !important;
}

.strong-foundation .structure-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--sf-text) !important;
    opacity: 0.9;
}

.strong-foundation .modal-content button {
    background: linear-gradient(135deg, var(--sf-accent1), var(--sf-hover));
    color: white !important;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--sf-transition);
    letter-spacing: 0.05em;
    font-family: 'Roboto Condensed', sans-serif;
    border-radius: var(--sf-radius);
    text-transform: uppercase;
}

.strong-foundation .modal-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(96, 125, 139, 0.2);
}

/* Close Button */
.strong-foundation .modal .close-button {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--sf-primary);
    color: var(--sf-text) !important;
    border: 1px solid var(--sf-text);
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: all var(--sf-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

.strong-foundation .modal .close-button:hover {
    background-color: var(--sf-accent1);
    color: white !important;
    border-color: var(--sf-accent1);
}

/* ==================== BUTTONS & CONTROLS ==================== */
.strong-foundation .button,
.strong-foundation .transparent-button {
    border: 2px solid var(--sf-accent1);
    color: var(--sf-text) !important;
    background-color: transparent;
    padding: 0.8rem 1.6rem;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--sf-transition);
    position: relative;
    overflow: hidden;
    margin: 0.4rem;
    border-radius: var(--sf-radius);
    letter-spacing: 0.03em;
    font-size: 0.95rem;
}

.strong-foundation .button:hover,
.strong-foundation .transparent-button:hover {
    background-color: var(--sf-accent1);
    color: white !important;
    box-shadow: 0 4px 12px rgba(96, 125, 139, 0.15);
    transform: translateY(-2px);
}

.strong-foundation .controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 1.2rem 0;
}

/* ==================== THEME SWITCHER ==================== */
.strong-foundation #theme-switcher-container {
    position: relative;
    margin: 0 1rem;
    min-width: 200px;
    z-index: 1000;
}

.strong-foundation #theme-switcher {
    background-color: var(--sf-primary);
    color: var(--sf-text) !important;
    border: 2px solid var(--sf-accent1);
    padding: 0.8rem 2.2rem 0.8rem 1rem;
    font-family: 'Roboto Condensed', 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='%23212121'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    cursor: pointer;
    transition: all var(--sf-transition);
    border-radius: var(--sf-radius);
}

.strong-foundation #theme-switcher option {
    background-color: var(--sf-primary) !important;
    color: var(--sf-text) !important;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 12px !important;
}

.strong-foundation #theme-switcher:focus {
    outline: none;
    border-color: var(--sf-accent1);
    box-shadow: 0 0 0 3px rgba(96, 125, 139, 0.15);
}

/* ==================== BACK TO TOP BUTTON ==================== */
.strong-foundation #backToTopBtn {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 9999;
    border: none;
    padding: 1rem 1.8rem;
    font-size: 0.95rem;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 600;
    color: white !important;
    background: linear-gradient(135deg, var(--sf-accent1), var(--sf-hover));
    cursor: pointer;
    transition: all var(--sf-transition);
    opacity: 0.95;
    display: none;
    border-radius: var(--sf-radius);
    box-shadow: 0 3px 10px rgba(96, 125, 139, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.strong-foundation #backToTopBtn:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(96, 125, 139, 0.3);
}

/* ==================== FOOTER ==================== */
.strong-foundation footer {
    text-align: center;
    margin-top: 1.8rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--sf-accent4);
    color: var(--sf-text) !important;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Oswald', sans-serif;
}

/* ==================== MEDIA QUERIES ==================== */
@media (max-width: 1200px) {
    .strong-foundation #calendar-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .strong-foundation .container {
        padding: 1.8rem;
    }

    .strong-foundation #calendar-title {
        font-size: 2rem;
    }

    .strong-foundation #current-date {
        font-size: 1.6rem;
    }

    .strong-foundation #today-weather {
        font-size: 1rem;
    }

    .strong-foundation .modal-date {
        font-size: 1.3rem;
    }

    .strong-foundation .structure-title {
        font-size: 1rem;
    }

    .strong-foundation .foundation-tracker {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .strong-foundation {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .strong-foundation .container {
        padding: 1.2rem;
    }

    .strong-foundation #calendar-title {
        font-size: 1.8rem;
    }

    .strong-foundation .foundation-tracker {
        max-width: 300px;
        height: 20px;
    }

    .strong-foundation .foundation-marker {
        width: 32px;
        height: 32px;
    }

    .strong-foundation th {
        font-size: 0.9rem;
        padding: 0.7rem 0.3rem;
    }

    .strong-foundation th span.full-day-name {
        display: none;
    }

    .strong-foundation th abbr {
        display: inline;
    }

    .strong-foundation td {
        padding: 0.8rem;
        height: 90px;
        font-size: 0.9rem;
    }

    .strong-foundation td .date-number {
        font-size: 1.1rem;
        top: 6px;
        left: 6px;
    }

    .strong-foundation td.current-day::before {
        font-size: 1.1rem;
        top: 5px;
        right: 5px;
    }

    .strong-foundation #backToTopBtn {
        right: 15px;
        bottom: 15px;
        padding: 0.9rem 1.6rem;
        font-size: 0.9rem;
    }

    .strong-foundation #theme-switcher {
        padding: 0.7rem 1.8rem 0.7rem 0.9rem;
        font-size: 0.9rem;
        min-width: 180px;
    }

    .strong-foundation .modal-content {
        padding: 20px;
    }

    .strong-foundation .structure-item {
        padding: 0.9rem;
    }
}

@media (max-width: 576px) {
    .strong-foundation .container {
        padding: 1rem;
    }

    .strong-foundation #calendar-title {
        font-size: 1.6rem;
    }

    .strong-foundation #current-date {
        font-size: 1.4rem;
    }

    .strong-foundation #today-weather {
        font-size: 0.9rem;
    }

    .strong-foundation .foundation-tracker {
        max-width: 250px;
        height: 18px;
    }

    .strong-foundation .foundation-marker {
        width: 28px;
        height: 28px;
    }

    .strong-foundation th {
        font-size: 0.85rem;
        padding: 0.6rem 0.2rem;
    }

    .strong-foundation td {
        padding: 0.7rem;
        height: 80px;
        font-size: 0.85rem;
    }

    .strong-foundation td .date-number {
        font-size: 1rem;
        top: 5px;
        left: 5px;
    }

    .strong-foundation #theme-switcher {
        min-width: 160px;
        font-size: 0.85rem;
    }

    .strong-foundation .modal-content {
        padding: 16px;
    }

    .strong-foundation .modal-date {
        font-size: 1.2rem;
    }

    .strong-foundation .structure-time {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .strong-foundation th {
        font-size: 0.8rem;
        padding: 0.5rem 0.1rem;
    }

    .strong-foundation td {
        height: 75px;
    }

    .strong-foundation td .date-number {
        font-size: 0.9rem;
    }

    .strong-foundation #theme-switcher {
        min-width: 140px;
        font-size: 0.8rem;
    }

    .strong-foundation .foundation-tracker {
        max-width: 200px;
    }
}