/* assets/css/style.css */
/* Core Variables & Reset */
:root {
    --primary: #FF4D4D; /* Dynamic Red for fitness */
    --primary-hover: #ff1a1a;
    --bg-color: #0d0d12;
    --surface: #1a1a24;
    --surface-light: #242432;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --success: #00d26a;
    --warning: #fbc02d;
    --border: rgba(255,255,255,0.1);
    --glass-bg: rgba(26, 26, 36, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 77, 77, 0.4);
}

.btn-success {
    background: var(--success);
    color: #111;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.1);
}

/* Utility Layouts */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.gap-4 { gap: 1rem; }
.gap-2 { gap: 0.5rem; }

/* Grid System */
.grid {
    display: grid;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Mobile Responsiveness for 9:16 Standard Mobile Screens */
@media(max-width: 900px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr; /* Stack everything into a single column */
    }
}

/* Navigation & Hamburger */
.nav-bar {
    background: rgba(13, 13, 18, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    font-weight: 800;
    font-size: 1.5rem;
    text-decoration: none;
    letter-spacing: -1px;
}

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

/* Desktop Menu */
.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Hamburger Checkbox Hack */
.menu-btn {
    display: none;
}
.menu-icon {
    display: none;
    cursor: pointer;
    float: right;
    padding: 5px;
}
.menu-icon span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* Mobile Menu Overrides */
@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }
    .nav-links {
        position: absolute;
        top: 65px; /* below nav exactly */
        left: 0;
        width: 100%;
        background: var(--surface);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-links a {
        padding: 15px 24px;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid var(--border);
        text-align: left;
        background: transparent;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }

    /* When checkbox is checked via hamburger click, open menu */
    .menu-btn:checked ~ .nav-links {
        max-height: 400px; /* Big enough to fit links */
    }
    
    /* Hamburger to X Animation */
    .menu-btn:checked ~ .menu-icon span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .menu-btn:checked ~ .menu-icon span:nth-child(2) {
        opacity: 0;
    }
    .menu-btn:checked ~ .menu-icon span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Crawling Loop */
.crawler-container {
    overflow: hidden;
    white-space: nowrap;
    background: var(--primary);
    padding: 12px 0;
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.crawler-track {
    display: inline-block;
    animation: crawl 25s linear infinite;
}

@keyframes crawl {
    0% { transform: translateX(10%); }
    100% { transform: translateX(-100%); }
}

/* Status overlays */
.status-red {
    border: 2px solid var(--primary) !important;
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.2);
}
