/* MSV High School Hub - Styles */
/* Version: 2.0.0 */

/* ============================================
   HIDE ASTRA THEME HEADER/NAV/FOOTER
   ============================================ */
body.msv-hs-hub-page .ast-above-header,
body.msv-hs-hub-page .ast-below-header,
body.msv-hs-hub-page .ast-main-header-wrap,
body.msv-hs-hub-page .site-header,
body.msv-hs-hub-page #masthead,
body.msv-hs-hub-page .ast-primary-header,
body.msv-hs-hub-page .ast-mobile-header-wrap,
body.msv-hs-hub-page .main-header-bar,
body.msv-hs-hub-page .ast-header-break-point,
body.msv-hs-hub-page .site-footer,
body.msv-hs-hub-page .ast-footer-overlay,
body.msv-hs-hub-page .ast-small-footer,
body.msv-hs-hub-page #colophon,
body.msv-hs-hub-page footer.site-footer {
    display: none !important;
}

/* Remove ALL padding/margin from Astra containers */
body.msv-hs-hub-page,
body.msv-hs-hub-page #page,
body.msv-hs-hub-page #content,
body.msv-hs-hub-page .site-content,
body.msv-hs-hub-page .ast-container,
body.msv-hs-hub-page .site-main,
body.msv-hs-hub-page .entry-content,
body.msv-hs-hub-page article,
body.msv-hs-hub-page .ast-article-single,
body.msv-hs-hub-page .ast-separate-container .ast-article-single,
body.msv-hs-hub-page .ast-separate-container .ast-article-post,
body.msv-hs-hub-page .ast-plain-container,
body.msv-hs-hub-page .post-content,
body.msv-hs-hub-page .page-content {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

body.msv-hs-hub-page .ast-separate-container .ast-article-single,
body.msv-hs-hub-page .ast-separate-container #primary {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ============================================
   CSS Variables & Theme (MSV Brand Colors)
   ============================================ */
:root {
    --msv-mint-green: #6fcf8a;
    --msv-ocean-blue: #7ec8e8;
    --msv-light-blue: #a8e4f9;
    --msv-dark: #1a1a1a;
    --msv-dark-alt: #2a2a2a;
    --msv-primary: #002855;
    --msv-secondary: #C8102E;
    --msv-gold: #FFB81C;
    --msv-light: #F4F6F8;
    --msv-text: #2D3748;
    --msv-text-light: #718096;
    --msv-border: #E2E8F0;
    --msv-white: #FFFFFF;
    --msv-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --msv-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --msv-radius: 8px;
    --msv-radius-lg: 12px;
    --msv-transition: all 0.2s ease;
}

/* ============================================
   Base Container - Full Bleed
   ============================================ */
.msv-hub {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--msv-text);
    line-height: 1.6;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 0;
    background: var(--msv-light);
}

.msv-hub__content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px;
}

/* ============================================
   Header Section - Dark with Mint Accent
   ============================================ */
.msv-hub__header {
    background: linear-gradient(135deg, var(--msv-dark) 0%, var(--msv-dark-alt) 100%);
    color: #FFFFFF !important;
    padding: 32px 24px;
    text-align: center;
    border-bottom: 4px solid var(--msv-mint-green);
}

.msv-hub__header-inner {
    max-width: 800px;
    margin: 0 auto;
}

.msv-hub__title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
    color: #FFFFFF !important;
}

.msv-hub__subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .msv-hub__header {
        padding: 40px 24px;
    }
    .msv-hub__title {
        font-size: 2rem;
    }
}

/* ============================================
   Card Grid
   ============================================ */
.msv-hub__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

@media (min-width: 540px) {
    .msv-hub__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .msv-hub__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   Individual Cards
   ============================================ */
.msv-hub__card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--msv-white);
    border-radius: var(--msv-radius-lg);
    box-shadow: var(--msv-shadow);
    text-decoration: none;
    color: inherit;
    transition: var(--msv-transition);
    border: 1px solid var(--msv-border);
}

.msv-hub__card:hover {
    transform: translateY(-3px);
    box-shadow: var(--msv-shadow-lg);
}

.msv-hub__card:active {
    transform: translateY(-1px);
}

/* Card Icon */
.msv-hub__card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
}

.msv-hub__card-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

/* Icon Color Variants */
.msv-hub__card--blue .msv-hub__card-icon {
    background: linear-gradient(135deg, #3182CE 0%, #2B6CB0 100%);
    color: white;
}

.msv-hub__card--gold .msv-hub__card-icon {
    background: linear-gradient(135deg, #F6AD55 0%, #DD6B20 100%);
    color: white;
}

.msv-hub__card--green .msv-hub__card-icon {
    background: linear-gradient(135deg, #48BB78 0%, #2F855A 100%);
    color: white;
}

.msv-hub__card--purple .msv-hub__card-icon {
    background: linear-gradient(135deg, #9F7AEA 0%, #6B46C1 100%);
    color: white;
}

.msv-hub__card--red .msv-hub__card-icon {
    background: linear-gradient(135deg, #FC8181 0%, #C53030 100%);
    color: white;
}

.msv-hub__card--navy .msv-hub__card-icon {
    background: linear-gradient(135deg, var(--msv-primary) 0%, var(--msv-dark) 100%);
    color: white;
}

.msv-hub__card--teal .msv-hub__card-icon {
    background: linear-gradient(135deg, #38B2AC 0%, #285E61 100%);
    color: white;
}

.msv-hub__card--orange .msv-hub__card-icon {
    background: linear-gradient(135deg, #ED8936 0%, #C05621 100%);
    color: white;
}

.msv-hub__card--pink .msv-hub__card-icon {
    background: linear-gradient(135deg, #ED64A6 0%, #B83280 100%);
    color: white;
}

.msv-hub__card--cyan .msv-hub__card-icon {
    background: linear-gradient(135deg, #22D3EE 0%, #0891B2 100%);
    color: white;
}

.msv-hub__card--indigo .msv-hub__card-icon {
    background: linear-gradient(135deg, #818CF8 0%, #4F46E5 100%);
    color: white;
}

.msv-hub__card--slate .msv-hub__card-icon {
    background: linear-gradient(135deg, #64748B 0%, #334155 100%);
    color: white;
}

/* Card Content */
.msv-hub__card-content {
    flex: 1;
    min-width: 0;
}

.msv-hub__card-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--msv-dark);
    line-height: 1.3;
    margin-bottom: 2px;
}

.msv-hub__card-desc {
    font-size: 0.85rem;
    color: var(--msv-text-light);
    line-height: 1.3;
}

/* Card Arrow */
.msv-hub__card-arrow {
    flex-shrink: 0;
    color: var(--msv-text-light);
    opacity: 0.5;
    transition: var(--msv-transition);
}

.msv-hub__card:hover .msv-hub__card-arrow {
    opacity: 1;
    transform: translateX(3px);
    color: var(--msv-primary);
}

/* ============================================
   Recaps Section
   ============================================ */
.msv-hub__recaps {
    background: var(--msv-white);
    border-radius: var(--msv-radius-lg);
    box-shadow: var(--msv-shadow);
    overflow: hidden;
    border: 1px solid var(--msv-border);
}

.msv-hub__recaps-header {
    background: var(--msv-primary);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.msv-hub__recaps-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.msv-hub__recaps-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8) !important;
}

.msv-hub__recaps-list {
    padding: 8px;
}

.msv-hub__recap-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    text-decoration: none;
    color: inherit;
    border-radius: var(--msv-radius);
    transition: var(--msv-transition);
}

.msv-hub__recap-item:hover {
    background: var(--msv-light);
}

.msv-hub__recap-title {
    font-weight: 600;
    color: var(--msv-dark);
    flex: 1;
    min-width: 0;
}

.msv-hub__recap-date {
    font-size: 0.85rem;
    color: var(--msv-text-light);
    white-space: nowrap;
}

/* ============================================
   Animations
   ============================================ */
@keyframes msv-hub-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.msv-hub__card {
    animation: msv-hub-fade-in 0.3s ease forwards;
}

.msv-hub__card:nth-child(1) { animation-delay: 0.05s; }
.msv-hub__card:nth-child(2) { animation-delay: 0.1s; }
.msv-hub__card:nth-child(3) { animation-delay: 0.15s; }
.msv-hub__card:nth-child(4) { animation-delay: 0.2s; }
.msv-hub__card:nth-child(5) { animation-delay: 0.25s; }
.msv-hub__card:nth-child(6) { animation-delay: 0.3s; }
.msv-hub__card:nth-child(7) { animation-delay: 0.35s; }
.msv-hub__card:nth-child(8) { animation-delay: 0.4s; }
.msv-hub__card:nth-child(9) { animation-delay: 0.45s; }
.msv-hub__card:nth-child(10) { animation-delay: 0.5s; }
.msv-hub__card:nth-child(11) { animation-delay: 0.55s; }
.msv-hub__card:nth-child(12) { animation-delay: 0.6s; }

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .msv-hub {
        padding: 0;
    }
    
    .msv-hub__card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .msv-hub__card:hover {
        transform: none;
    }
}

/* ============================================
   Notices Slider
   ============================================ */
.msv-hub__notices {
    margin-bottom: 20px;
    position: relative;
}

.msv-hub__notices-track {
    position: relative;
}

/* Each notice slide — shown/hidden via inline style by JS */
.msv-hub__notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--msv-radius-lg);
    border: 1px solid transparent;
    border-left: 4px solid var(--msv-mint-green);
    box-shadow: var(--msv-shadow);
    background: var(--msv-white);
}

/* Color variants */
.msv-hub__notice--gold   { background: #FFFBEB; border-top-color: #FDE68A; border-right-color: #FDE68A; border-bottom-color: #FDE68A; }
.msv-hub__notice--gold   .msv-hub__notice-icon { background: linear-gradient(135deg,#F6AD55,#D97706); }

.msv-hub__notice--info   { background: #EBF4FF; border-top-color: #BEE3F8; border-right-color: #BEE3F8; border-bottom-color: #BEE3F8; }
.msv-hub__notice--info   .msv-hub__notice-icon { background: linear-gradient(135deg,#3182CE,#2B6CB0); }

.msv-hub__notice--urgent { background: #FFF5F5; border-top-color: #FEB2B2; border-right-color: #FEB2B2; border-bottom-color: #FEB2B2; }
.msv-hub__notice--urgent .msv-hub__notice-icon { background: linear-gradient(135deg,#FC8181,#C53030); }

/* Icon */
.msv-hub__notice-icon {
    flex-shrink: 0;
    width: 36px; height: 36px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}
.msv-hub__notice-icon svg {
    width: 18px; height: 18px;
    stroke: currentColor; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Body */
.msv-hub__notice-body {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 8px;
    line-height: 1.5;
}
.msv-hub__notice-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--msv-text-light);
    white-space: nowrap;
}
.msv-hub__notice-text {
    font-size: 0.9rem;
    color: var(--msv-text);
}
.msv-hub__notice-text a {
    color: var(--msv-primary);
    font-weight: 600;
    text-decoration: underline;
}
.msv-hub__notice-expires {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.75rem;
    color: var(--msv-text-light);
    white-space: nowrap;
}
.msv-hub__notice-expires svg {
    flex-shrink: 0;
    stroke: currentColor; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Nav row */
.msv-hub__notices-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

/* Prev / Next buttons */
.msv-hub__notices-prev,
.msv-hub__notices-next {
    background: var(--msv-white);
    border: 1px solid var(--msv-border);
    border-radius: 50%;
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--msv-text-light);
    transition: var(--msv-transition);
    padding: 0;
}
.msv-hub__notices-prev:hover,
.msv-hub__notices-next:hover {
    border-color: var(--msv-primary);
    color: var(--msv-primary);
    background: #EBF4FF;
}

/* Dots */
.msv-hub__notices-dots {
    display: flex;
    gap: 5px;
    align-items: center;
}
.msv-hub__notices-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--msv-border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: var(--msv-transition);
}
.msv-hub__notices-dot.is-active {
    background: var(--msv-primary);
    transform: scale(1.3);
}

/* Notice title (bold line) */
.msv-hub__notice-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--msv-dark);
    display: block;
    line-height: 1.35;
}
