/*
Theme Name: BJJ Puurs-Sint-Amands Secure
Theme URI: https://bjj-puurs.be
Author: BJJ Club Puurs-Sint-Amands
Author URI: https://bjj-puurs.be
Description: Secure Brazilian Jiu-Jitsu club management theme with 2FA, student portal, check-in system, bookings and payments.
Version: 3.3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bjj-theme-secure
Tags: sports, fitness, bjj, brazilian-jiu-jitsu, club-management, secure, 2fa
*/

:root {
    --primary: #111111;
    --secondary: #E8B923;
    --accent: #D32F2F;
    --light: #F5F5F5;
    --dark: #222222;
    --gray: #666666;
    --light-gray: #EEEEEE;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

html, body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
}

/* ============================================
   NAVIGATION - MOBILE FIRST
   ============================================ */
.navbar {
    background: var(--primary);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

.navbar.hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.club-logo {
    height: 50px;
    width: auto;
    display: block;
    max-width: 150px;
}

.logo h1 {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.logo span {
    color: var(--secondary);
}

/* Hamburger Menu Button */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 2px solid var(--secondary);
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    z-index: 1002;
    -webkit-appearance: none;
    touch-action: manipulation;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(232, 185, 35, 0.1);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile/Tablet Menu - Right Side Slide */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 340px;
    height: 100vh;
    height: 100dvh;
    background: var(--primary);
    z-index: 1001;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 25px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    padding: 80px 1.25rem 2rem;
    overflow-y: auto;
}

.nav-menu.active {
    right: 0;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 0.875rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(232, 185, 35, 0.3);
    color: white;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 52px;
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    transition: all 0.2s ease;
}

.nav-btn:hover, .nav-btn:active, .nav-btn:focus {
    background: var(--secondary);
    color: var(--primary);
    border-color: var(--secondary);
    outline: none;
}

.nav-btn i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

/* Desktop Navigation */
@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }

    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        right: auto;
        background: transparent;
        box-shadow: none;
        flex-direction: row;
        padding: 0;
        transition: none;
        overflow: visible;
    }

    .nav-buttons {
        flex-direction: row;
        gap: 0.5rem;
    }

    .nav-btn {
        width: auto;
        padding: 0.6rem 1rem;
        background: transparent;
        border: 2px solid var(--secondary);
        font-size: 0.85rem;
        justify-content: center;
        min-height: 44px;
    }
    
    .club-logo {
        height: 60px;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.video-hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 500px;
    overflow: hidden;
    margin-top: 0;
    width: 100%;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 5rem 1rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-content h1 {
    font-size: clamp(1.8rem, 6vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.7);
    line-height: 1.2;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 span {
    color: var(--secondary);
    display: block;
    margin-top: 0.5rem;
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 2rem;
    max-width: 600px;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.7);
    animation: fadeInUp 1s ease-out 0.2s both;
    line-height: 1.6;
    padding: 0 1rem;
}

.hero-location {
    background: rgba(0,0,0,0.7);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 1rem;
    font-size: 0.95rem;
    max-width: 90%;
    flex-wrap: wrap;
    justify-content: center;
    border: 2px solid rgba(232, 185, 35, 0.3);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-location i {
    color: var(--secondary);
    font-size: 1.1rem;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery-section {
    background: white;
    padding: 2.5rem 0;
    width: 100%;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.gallery-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}

.gallery-scroll-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.5rem 0;
    flex: 1;
    cursor: grab;
}

.gallery-scroll-track:active {
    cursor: grabbing;
}

.gallery-scroll-track::-webkit-scrollbar {
    display: none;
}

.gallery-scroll-item {
    flex: 0 0 280px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-scroll-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.22);
}

.gallery-scroll-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    pointer-events: none;
}

.gallery-scroll-item:hover img {
    transform: scale(1.06);
}

.gallery-arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--secondary);
    background: var(--primary);
    color: var(--secondary);
    font-size: 1.5rem;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s, color 0.2s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    touch-action: manipulation;
}

.gallery-arrow:hover {
    background: var(--secondary);
    color: var(--primary);
}

.gallery-arrow-left  { margin-right: 0.75rem; }
.gallery-arrow-right { margin-left:  0.75rem; }

@media (max-width: 640px) {
    .gallery-scroll-item { 
        flex: 0 0 240px; 
        height: 170px; 
    }
    .gallery-arrow { 
        width: 36px; 
        height: 36px; 
        font-size: 1.2rem; 
    }
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section-title {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--gray);
    font-size: 0.95rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.section {
    margin: 2.5rem 0;
    width: 100%;
}

/* ============================================
   SCHEDULE GRID
   ============================================ */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    width: 100%;
}

.schedule-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-left: 4px solid var(--secondary);
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.schedule-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.schedule-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.schedule-card .time {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gi-badge {
    background: var(--primary);
    color: white;
}

.nogi-badge {
    background: var(--gray);
    color: white;
}

/* ============================================
   PRICING CARDS
   ============================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    width: 100%;
}

.pricing-card {
    background: white;
    border-radius: 12px;
    padding: 1.75rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-top: 4px solid var(--secondary);
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.pricing-card.featured {
    border-top-color: var(--accent);
}

.pricing-card.featured:before {
    content: 'POPULAIR';
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--accent);
    color: white;
    padding: 0.3rem 3rem;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.pricing-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray);
    margin: 1rem 0;
}

.price span {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 400;
    opacity: 0.8;
}

.combatpack-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.combatpack-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.combatpack-link i {
    margin-right: 0.5rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.25rem;
    color: var(--secondary);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    color: var(--primary);
}

.contact-item p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 640px) {
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    -webkit-appearance: none;
    touch-action: manipulation;
    font-family: 'Open Sans', sans-serif;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(232, 185, 35, 0.2);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 0.3rem;
    min-width: 18px;
    min-height: 18px;
    accent-color: var(--secondary);
}

.form-checkbox label {
    font-weight: 400;
    text-transform: none;
    font-size: 0.85rem;
    margin-bottom: 0;
}

.form-checkbox a {
    color: var(--secondary);
    text-decoration: underline;
}

.contact-success {
    text-align: center;
    padding: 2rem;
}

.contact-success i {
    font-size: 3.5rem;
    color: var(--success);
    margin-bottom: 1rem;
}

.contact-success h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.contact-success p {
    color: var(--gray);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--primary);
    color: white;
    padding: 2.5rem 0 1rem;
    margin-top: 2.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.footer-section h3 {
    color: var(--secondary);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.4rem;
}

.footer-section p i {
    color: var(--secondary);
    margin-right: 0.5rem;
    width: 20px;
}

.footer-section .quote {
    font-style: italic;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer-section .quote em {
    color: var(--secondary);
    display: block;
    margin-top: 0.5rem;
    font-style: normal;
}

.copyright {
    text-align: center;
    padding: 1.5rem 1rem 1rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    position: relative;
    margin: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--light-gray);
}

.modal-header h2 {
    font-size: 1.2rem;
    color: var(--primary);
}

.close-btn {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    touch-action: manipulation;
    -webkit-appearance: none;
    padding: 0;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.close-btn:hover, .close-btn:active {
    background: var(--light-gray);
    color: var(--primary);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    -webkit-appearance: none;
    touch-action: manipulation;
    font-family: 'Open Sans', sans-serif;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(232, 185, 35, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 0.875rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    min-height: 48px;
    touch-action: manipulation;
    -webkit-appearance: none;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.submit-btn:hover, .submit-btn:active {
    background: var(--secondary);
    color: var(--primary);
}

.submit-btn.secondary {
    background: var(--gray);
}

.submit-btn.secondary:hover {
    background: var(--dark);
    color: white;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   2FA MODAL STYLES
   ============================================ */
.two-fa-container {
    text-align: center;
    padding: 1rem 0;
}

.two-fa-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.two-fa-code {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.two-fa-code input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.two-fa-code input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(232, 185, 35, 0.2);
    outline: none;
}

.two-fa-timer {
    color: var(--gray);
    font-size: 0.85rem;
    margin-top: 1rem;
}

.two-fa-resend {
    color: var(--secondary);
    cursor: pointer;
    text-decoration: underline;
    font-weight: 600;
}

/* ============================================
   PORTALS (Student & Coach)
   ============================================ */
.portal {
    display: none;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
    min-height: calc(100dvh - 60px);
    background: var(--light);
    width: 100%;
}

.portal.active {
    display: block;
}

.portal-header {
    background: var(--primary);
    color: white;
    padding: 1.25rem 1rem;
    margin-bottom: 1rem;
    width: 100%;
}

.portal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
    width: 100%;
}

.portal-header h2 {
    color: white;
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    margin-bottom: 0.25rem;
}

.portal-header p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    width: 100%;
}

.stat-card {
    background: white;
    padding: 1.25rem 0.75rem;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    text-align: center;
    border-top: 3px solid var(--secondary);
    width: 100%;
}

.stat-card h3 {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.stat-number {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--primary);
}

/* Progress Section */
.progress-section {
    background: white;
    padding: 1.25rem;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    margin-bottom: 1rem;
    width: 100%;
}

.progress-section h3 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.progress-container {
    margin: 0.75rem 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    color: var(--gray);
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--light-gray);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--secondary);
    border-radius: 5px;
    transition: width 0.5s ease;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 1px;
    background: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
    flex-wrap: wrap;
    width: 100%;
}

.tab-btn {
    flex: 1;
    min-width: 90px;
    padding: 0.7rem 0.4rem;
    background: white;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    touch-action: manipulation;
    -webkit-appearance: none;
    min-height: 44px;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: var(--light-gray);
}

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

.tab-content {
    display: none;
    width: 100%;
}

.tab-content.active {
    display: block;
}

/* Booking Calendar */
.booking-calendar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
    width: 100%;
}

.booking-day {
    background: white;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    padding: 0.75rem;
    text-align: center;
    width: 100%;
    transition: all 0.3s ease;
}

.booking-day:hover {
    border-color: var(--secondary);
}

.booking-day.booked {
    border-color: var(--secondary);
    background: rgba(232, 185, 35, 0.05);
}

.booking-day.cancelled {
    border-color: var(--accent);
    opacity: 0.7;
    background: rgba(211, 47, 47, 0.05);
}

.booking-day .date {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.booking-day .time {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.booking-actions {
    margin-top: 0.4rem;
}

.action-btn {
    width: 100%;
    padding: 0.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    touch-action: manipulation;
    -webkit-appearance: none;
    min-height: 36px;
    transition: all 0.3s ease;
}

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

.action-btn.book:hover {
    background: var(--secondary);
    color: var(--primary);
}

.action-btn.cancel {
    background: var(--light-gray);
    color: var(--gray);
}

.action-btn.cancel:hover {
    background: var(--accent);
    color: white;
}

.action-btn.cancelled {
    background: var(--accent);
    color: white;
    cursor: not-allowed;
}

/* Payment Status */
.payment-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.35rem 0.7rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: #DCF7E3;
    color: #065F46;
}

.status-warning {
    background: #FEF3C7;
    color: #92400E;
}

.status-expired {
    background: #FEE2E2;
    color: #991B1B;
}

/* Student Table */
.student-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    font-size: 0.9rem;
}

.student-table th,
.student-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.student-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.student-table tr:last-child td {
    border-bottom: none;
}

.student-table tr:hover {
    background: var(--light-gray);
}

/* Checkin List */
.checkin-list {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.checkin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem;
    border-bottom: 1px solid var(--light-gray);
}

.checkin-item:last-child {
    border-bottom: none;
}

.checkin-info {
    flex: 1;
}

.checkin-name {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.15rem;
    font-size: 0.9rem;
}

.checkin-date {
    font-size: 0.8rem;
    color: var(--gray);
}

/* Subscription Card */
.subscription-card {
    background: white;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--light-gray);
}

.payment-btn {
    width: 100%;
    padding: 0.875rem;
    background: var(--secondary);
    color: var(--primary);
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    min-height: 48px;
}

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

/* Belt Display */
.belt-display {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.4rem;
    flex-wrap: wrap;
}

.belt-color {
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
}

.belt-white { background: #f0f0f0; color: #333; }
.belt-blue { background: #0066cc; color: white; }
.belt-purple { background: #663399; color: white; }
.belt-brown { background: #8B4513; color: white; }
.belt-black { background: #111; color: white; }

.stripes {
    display: flex;
    gap: 2px;
}

.stripe {
    width: 6px;
    height: 16px;
    background: var(--secondary);
    border-radius: 2px;
}

/* ============================================
   NOTIFICATIONS
   ============================================ */
.notification {
    position: fixed;
    top: 80px;
    right: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    z-index: 3000;
    transform: translateX(150%);
    transition: transform 0.3s ease;
    max-width: 380px;
    width: calc(100% - 2rem);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #DCF7E3;
    color: #065F46;
    border-left: 4px solid var(--success);
}

.notification.error {
    background: #FEE2E2;
    color: #991B1B;
    border-left: 4px solid var(--danger);
}

.notification.info {
    background: #E0F2FE;
    color: #0369A1;
    border-left: 4px solid var(--info);
}

.notification h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.notification p {
    font-size: 0.85rem;
    margin: 0;
}

/* ============================================
   KIOSK MODE
   ============================================ */
.kiosk-mode {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.kiosk-mode.active {
    display: flex;
}

.kiosk-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    touch-action: manipulation;
    z-index: 10;
}

.kiosk-close-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: var(--secondary);
    color: var(--secondary);
}

.kiosk-container {
    width: 100%;
    max-width: 380px;
    padding: 1.5rem;
}

.kiosk-header {
    text-align: center;
    margin-bottom: 1.5rem;
    color: white;
}

.kiosk-header h1 {
    color: white;
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 0.4rem;
}

.kiosk-header h1 i {
    color: var(--secondary);
}

.kiosk-header p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.kiosk-input {
    width: 100%;
    padding: 1rem;
    font-size: clamp(2rem, 6vw, 3rem);
    text-align: center;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    color: white;
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5rem;
}

.kiosk-input::placeholder {
    color: rgba(255,255,255,0.3);
}

.kiosk-numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.kiosk-num-btn {
    aspect-ratio: 1;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

.kiosk-num-btn:hover {
    background: rgba(255,255,255,0.2);
}

.kiosk-num-btn:active {
    transform: scale(0.95);
    background: var(--secondary);
    color: var(--primary);
}

.kiosk-success {
    display: none;
    text-align: center;
    color: white;
    padding: 1rem;
}

.kiosk-success-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

.kiosk-success h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.kiosk-success h2 span {
    color: var(--secondary);
}

.student-info {
    background: rgba(255,255,255,0.1);
    padding: 1.25rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.student-info p {
    margin-bottom: 0.4rem;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.student-info p strong {
    color: white;
}

.kiosk-btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
    min-height: 48px;
}

.kiosk-btn.primary {
    background: var(--secondary);
    color: var(--primary);
}

.kiosk-btn.primary:hover {
    background: white;
}

/* ============================================
   POSTER / ANNOUNCEMENT
   ============================================ */
.bjj-poster-section {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 1.5rem auto;
    padding: 0 1rem;
    box-sizing: border-box;
    text-align: center;
}

.bjj-poster-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.bjj-poster-close {
    position: absolute;
    top: 8px;
    right: 20px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.bjj-poster-close:hover {
    background: rgba(0,0,0,0.9);
}

.bjj-announcement-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.75rem 3rem 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    position: relative;
}

.bjj-announcement-banner a {
    color: inherit;
    text-decoration: underline;
}

.bjj-banner-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    line-height: 1;
    padding: 0.25rem;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.2s;
    touch-action: manipulation;
}

.bjj-banner-close:hover {
    opacity: 1;
}

/* ============================================
   MOBILE RESPONSIVE - COMPREHENSIVE
   ============================================ */
@media (max-width: 768px) {
    .section {
        margin: 1.5rem 0;
    }
    
    .section-title {
        margin-bottom: 1rem;
    }
    
    .portal {
        margin-top: 56px;
        min-height: calc(100vh - 56px);
        min-height: calc(100dvh - 56px);
    }
    
    .portal-header {
        padding: 1rem;
    }
    
    .tabs {
        flex-direction: column;
        border-radius: 8px;
    }
    
    .tab-btn {
        width: 100%;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .tab-btn:last-child {
        border-bottom: none;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .stat-card {
        padding: 1rem 0.5rem;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
    
    .booking-calendar {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .booking-day {
        padding: 0.6rem;
    }
    
    .student-table {
        font-size: 0.8rem;
    }
    
    .student-table th,
    .student-table td {
        padding: 0.5rem;
    }
    
    .kiosk-container {
        padding: 1rem;
    }
    
    .kiosk-input {
        font-size: 2rem;
        padding: 0.75rem;
        letter-spacing: 0.3rem;
    }
    
    .kiosk-numpad {
        gap: 0.5rem;
    }
    
    .kiosk-num-btn {
        font-size: 1.2rem;
    }
    
    .notification {
        left: 0.75rem;
        right: 0.75rem;
        max-width: none;
        top: 70px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.25rem;
    }
    
    .footer-section p i {
        display: block;
        margin: 0 auto 0.4rem;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-item i {
        margin-bottom: 0.5rem;
    }
    
    .modal-content {
        padding: 1.25rem;
        margin: 0.5rem;
        border-radius: 12px;
    }
    
    .contact-form-wrapper {
        padding: 1.25rem;
    }
    
    .two-fa-code input {
        width: 42px;
        height: 52px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }
    
    .nav-container {
        padding: 0.6rem 0.75rem;
        min-height: 56px;
    }
    
    .logo h1 {
        font-size: 0.95rem;
    }
    
    .club-logo {
        height: 42px;
    }
    
    .menu-toggle {
        width: 40px;
        height: 40px;
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-scroll-item {
        flex: 0 0 200px;
        height: 150px;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .booking-calendar {
        grid-template-columns: 1fr;
    }
    
    .student-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .two-fa-code {
        gap: 0.35rem;
    }
    
    .two-fa-code input {
        width: 38px;
        height: 48px;
        font-size: 1.2rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for keyboard navigation */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar,
    .nav-overlay,
    .modal,
    .kiosk-mode,
    .notification,
    .menu-toggle,
    .nav-btn,
    .portal {
        display: none !important;
    }
    
    .video-hero {
        height: auto;
        min-height: auto;
        page-break-inside: avoid;
    }
    
    .video-background {
        display: none;
    }
    
    .hero-content {
        position: static;
        color: black;
        padding: 2rem 1rem;
    }
    
    .hero-content h1 {
        color: black;
        text-shadow: none;
    }
    
    .hero-content p {
        color: black;
        text-shadow: none;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    .footer {
        background: white;
        color: black;
    }
    
    .footer-section h3 {
        color: black;
    }
    
    .footer-section p {
        color: black;
    }
}

/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.9rem;
    color: var(--gray);
    text-align: center;
    padding: 0.5rem;
}

.alignleft {
    float: left;
    margin-right: 1rem;
}

.alignright {
    float: right;
    margin-left: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.screen-reader-text {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Admin bar fix */
body.admin-bar .navbar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .navbar {
        top: 46px;
    }
}
