/* ========================================
   Youth Consolidated CSS - Main styles
   Combines core youth section stylesheets
   ======================================== */

/* Import base youth styles */
@import url('youth.css');

/* Import dark mode styles */
@import url('youth-dark.css');

/* Import design tokens */
@import url('youth-design-tokens.css');

/* Import mobile bottom navigation */
@import url('youth-mobile-bottom-nav.css');

/* Import PWA install prompt styles */
@import url('youth-pwa-install-prompt.css');

/* Import modal styles */
@import url('youth-modal.css');

/* Neo-brutalism theme removed per design: light/dark only */

/* Prevent flash of unstyled Alpine content before init */
[x-cloak] {
    display: none !important;
}

/* ========================================
   Youth section header: hamburger-only on ALL screen sizes
   (like kids section – no inline nav to avoid overflow)
   ======================================== */
body.youth-section .site-header {
    z-index: 10000;
    max-width: 100%;
    overflow-x: hidden; /* only horizontal so fixed nav-menu below isn't clipped */
}

body.youth-section .header-nav-row,
body.youth-section .main-nav {
    max-width: 100%;
}

body.youth-section .nav-toggle {
    display: flex;
    position: relative;
    z-index: 10001;
    pointer-events: auto;
}

body.youth-section .nav-backdrop {
    display: block;
    z-index: 9998;
}

body.youth-section .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: min(320px, 85vw);
    max-width: 320px;
    height: 100vh;
    height: -webkit-fill-available;
    min-height: 100vh;
    background: var(--primary-blue, #1e3a5f);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: var(--space-8, 1.5rem) var(--space-4, 1rem);
    padding-top: calc(var(--space-8, 1.5rem) + 2.5rem);
    transition: transform 0.3s ease;
    z-index: 9999;
    transform: translateX(-100%);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: none;
}

body.youth-section .nav-menu.active {
    transform: translateX(0);
    pointer-events: auto;
}

body.youth-section .nav-list {
    flex-direction: column;
    text-align: left;
    gap: 0;
    align-items: stretch;
}

body.youth-section .nav-item {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body.youth-section .nav-item:last-child {
    border-bottom: none;
}

body.youth-section .nav-item--main-site {
    margin-top: 0.5rem;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    padding-top: 0.5rem;
}

body.youth-section .nav-link {
    display: block;
    color: var(--accent-white, #fff);
    font-size: 1.05rem;
    padding: 0.875rem 1rem;
}

body.youth-section .nav-link:hover,
body.youth-section .nav-link.active {
    color: var(--secondary-gold, #f59e0b);
}

body.youth-section .nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

body.youth-section .nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

body.youth-section .nav-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Viewport containment - no horizontal or vertical overflow on youth pages */
body.youth-section {
    overflow-x: hidden;
    max-width: 100vw;
    min-height: 100vh;
    box-sizing: border-box;
}

/* Core layout and components */
.youth-main {
    min-height: 100vh;
    padding-bottom: 80px; /* Space for mobile nav */
    max-width: 100%;
}

/* Testimonies Section */
.youth-testimonies {
    padding: 4rem 0;
    background: var(--youth-bg-secondary);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.view-all-link {
    color: var(--youth-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--youth-transition);
}

.view-all-link:hover {
    color: var(--youth-primary-dark);
}

.testimonies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.testimony-card {
    background: var(--youth-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--youth-shadow-sm);
    border: 1px solid var(--youth-border);
    transition: var(--youth-transition);
}

.testimony-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--youth-shadow-md);
}

.testimony-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.testimony-badge {
    background: var(--youth-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.testimony-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--youth-text);
}

.testimony-excerpt {
    color: var(--youth-text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.testimony-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.testimony-author {
    font-weight: 500;
    color: var(--youth-text-secondary);
}

.testimony-encourage-btn {
    background: transparent;
    border: 1px solid var(--youth-border);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: var(--youth-transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.testimony-encourage-btn:hover {
    background: var(--youth-primary);
    color: white;
    border-color: var(--youth-primary);
}

.testimony-encourage-btn.encouraged {
    background: var(--youth-primary);
    color: white;
    border-color: var(--youth-primary);
}

.testimony-link {
    color: var(--youth-primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: var(--youth-transition);
}

.testimony-link:hover {
    color: var(--youth-primary-dark);
}

/* Hero Banners */
.youth-hero-banners {
    margin-top: 2rem;
    position: relative;
}

.banner-container {
    position: relative;
    min-height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.banner-slide {
    text-align: center;
}

.banner-slide h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.banner-slide p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.banner-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.banner-controls button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--youth-transition);
    color: white;
}

.banner-controls button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Online Status Indicator */
.online-status-indicator {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.online-status-indicator.offline {
    background: rgba(239, 68, 68, 0.9);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--youth-transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--youth-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--youth-primary-dark);
    transform: translateY(-1px);
}

/* Dark mode adjustments */
.dark-mode .testimony-card {
    background: #1f2937;
    border-color: var(--youth-border);
}

.dark-mode .banner-container {
    background: rgba(31, 41, 55, 0.8);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .testimonies-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .banner-container {
        min-height: 150px;
        padding: 1rem;
    }
    
    .banner-slide h2 {
        font-size: 1.25rem;
    }
}
