/*
 Theme Name:   KhelBridge Child Theme
 Theme URI:    https://khelbridge.in/
 Description:  Custom WordPress theme for KhelBridge - Elite Athlete Network
 Author:       KhelBridge
 Author URI:   https://khelbridge.in/
 Template:     bricks
 Version:      1.0
 Text Domain:  punjab-sports
*/

/* ========================================
   CSS VARIABLES - KhelBridge Design System
   ======================================== */
:root {
    /* Colors */
    --primary-fixed-dim: #b1c6f9;
    --on-primary: #ffffff;
    --surface-container-high: #e8e8ea;
    --on-surface: #1a1c1e;
    --outline-variant: #c5c6d0;
    --surface-bright: #f9f9fc;
    --on-error-container: #93000a;
    --surface-variant: #e2e2e5;
    --secondary-container: #fe9832;
    --surface-tint: #495e8a;
    --primary: #00020a;
    --on-secondary: #ffffff;
    --primary-fixed: #d8e2ff;
    --on-primary-fixed: #001a42;
    --surface-container-highest: #e2e2e5;
    --tertiary-fixed-dim: #c3c7ca;
    --tertiary-container: #191d1f;
    --on-tertiary-fixed-variant: #43474a;
    --on-tertiary-container: #818588;
    --surface: #f9f9fc;
    --surface-container-low: #f3f3f6;
    --on-primary-fixed-variant: #314671;
    --inverse-on-surface: #f0f0f3;
    --surface-container-lowest: #ffffff;
    --inverse-surface: #2f3133;
    --on-tertiary-fixed: #181c1e;
    --error-container: #ffdad6;
    --surface-container: #eeeef0;
    --on-secondary-fixed: #2e1500;
    --primary-container: #001b44;
    --background: #f9f9fc;
    --on-tertiary: #ffffff;
    --on-secondary-fixed-variant: #6d3a00;
    --inverse-primary: #b1c6f9;
    --on-primary-container: #7084b3;
    --on-error: #ffffff;
    --secondary-fixed-dim: #ffb77a;
    --on-background: #1a1c1e;
    --on-secondary-container: #683700;
    --tertiary-fixed: #e0e3e6;
    --outline: #75777f;
    --on-surface-variant: #44474f;
    --secondary-fixed: #ffdcc2;
    --tertiary: #010203;
    --surface-dim: #dadadc;
    --error: #ba1a1a;
    --secondary: #8f4e00;

    /* Typography */
    --font-headline: 'Sora', sans-serif;
    --font-body: 'Hanken Grotesk', sans-serif;
    --font-label: 'Lexend', sans-serif;

    /* Spacing */
    --spacing-unit: 8px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --container-max: 1280px;
    --gutter: 24px;
    --margin-mobile: 16px;

    /* Border Radius */
    --radius-sm: 0.125rem;
    --radius-default: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    --radius-full: 9999px;
}

/* ========================================
   BASE STYLES
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body), system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background-color: var(--background);
    color: var(--on-surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img,
video,
canvas,
svg {
    max-width: 100%;
}

input,
select,
textarea,
button {
    max-width: 100%;
}

/* Material Symbols */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    vertical-align: middle;
}

/* Material Symbols - Icon Sizes */
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headline);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin: 0 0 1rem;
    color: var(--on-surface-variant);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--secondary);
}

/* Selection */
::selection {
    background-color: var(--secondary-container);
    color: var(--on-secondary-container);
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.container-full {
    max-width: 100%;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

/* ========================================
   NAVIGATION
   ======================================== */
.site-header {
    background-color: var(--surface-container-lowest);
    border-bottom: 1px solid var(--outline-variant);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    max-width: 1280px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-family: var(--font-headline);
}

.site-logo img {
    width: 90px;
    object-fit: contain;
    border-radius: 10px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--on-surface-variant);
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.header-search {
    display: flex;
    align-items: center;
    background-color: var(--surface-container-low);
    height: 42px;
    padding: 0 18px;
    border-radius: var(--radius-full);
    border: 1px solid var(--outline-variant);
    gap: 8px;
    box-sizing: border-box;
    flex: 0 0 402px;
    width: min(402px, 32vw);
}

.header-search input {
    border: none;
    background: transparent;
    color: var(--on-surface);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    outline: none;
    box-shadow: none;
}

.header-search input:focus {
    border: none;
    outline: none;
    box-shadow: none;
}

.header-search .material-symbols-outlined {
    color: var(--primary);
    font-size: 1.5rem;
    flex: 0 0 auto;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* Mobile Menu Dropdown */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-container-lowest);
    border-bottom: 1px solid var(--outline-variant);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 100;
    padding: 16px 0;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
}

.mobile-menu-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin: 0 24px 12px;
    padding: 10px 12px;
    background: var(--surface-container-low);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-xl);
}

.mobile-menu-search input {
    min-width: 0;
    border: 0;
    background: transparent;
    outline: none;
    color: var(--on-surface);
    font: inherit;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    color: var(--on-surface);
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.mobile-menu-link:hover {
    background: var(--surface-container);
    color: var(--primary);
}

.mobile-menu-link .material-symbols-outlined {
    color: var(--on-surface-variant);
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--outline-variant);
    margin-top: 8px;
}

/* Bottom Navigation (Mobile) */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--surface-container-lowest);
    border-top: 1px solid var(--outline-variant);
    padding: 8px 16px;
    z-index: 50;
    justify-content: space-around;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--on-surface-variant);
    font-size: 0.75rem;
    font-weight: 600;
}

.mobile-bottom-nav a.active {
    color: var(--secondary-container);
}

.mobile-bottom-nav a .material-symbols-outlined {
    font-size: 1.5rem;
}

@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }

    .header-search {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .mobile-bottom-nav {
        display: flex;
    }

    .header-actions .btn-outline,
    .header-actions .btn-secondary {
        display: none;
    }

    .site-header {
        position: relative;
    }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-xl);
    font-family: var(--font-label);
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
    text-decoration: none;
}

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

.btn-primary:hover {
    opacity: 0.9;
    color: var(--on-primary);
    transform: scale(1.02);
}

.btn-secondary {
    background-color: var(--secondary-container);
    color: var(--on-secondary-fixed);
}

.btn-secondary:hover {
    box-shadow: 0 4px 20px rgba(254, 152, 50, 0.3);
    color: var(--on-secondary-fixed);
    transform: scale(1.02);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--outline-variant);
    color: var(--on-surface);
}

.btn-outline:hover {
    border-color: var(--primary);
    background-color: var(--surface);
    color: var(--primary);
}

.btn-sm {
    padding: 8px 16px;
    min-height: 36px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    min-height: 56px;
    font-size: 1rem;
}

.btn:active {
    transform: scale(0.98);
}

.btn-full {
    width: 100%;
}

/* ========================================
   CARDS
   ======================================== */
.card {
    background-color: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-image.rounded {
    border-radius: var(--radius-xl);
}

.card-body {
    padding: 24px;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.card-text {
    color: var(--on-surface-variant);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Card Overlay */
.card-overlay {
    position: relative;
}

.card-overlay .card-image {
    height: 100%;
}

.card-overlay .card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

/* Badge on Card */
.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-badge.verified {
    background-color: var(--secondary-container);
    color: var(--on-secondary-container);
}

.card-badge.featured {
    background-color: var(--primary);
    color: var(--on-primary);
}

.card-badge.rating {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: white;
    color: var(--primary);
}

/* ========================================
   BADGES & TAGS
   ======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-family: var(--font-label);
    font-size: 0.75rem;
    font-weight: 600;
}

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

.badge-secondary {
    background-color: var(--secondary-container);
    color: var(--on-secondary-fixed);
}

.badge-outline {
    background-color: transparent;
    border: 1px solid var(--outline-variant);
    color: var(--on-surface-variant);
}

.badge-gold {
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
    color: #1a1c1e;
}

.badge-silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #808080 100%);
    color: #1a1c1e;
}

.badge-bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #8b4513 100%);
    color: #ffffff;
}

.tag {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    background-color: var(--surface-container);
    color: var(--on-surface);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ========================================
   FORMS
   ======================================== */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--on-surface-variant);
    margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-xl);
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--surface-container-low);
    transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 2, 10, 0.1);
}

.form-input::placeholder {
    color: var(--on-surface-variant);
}

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

/* ========================================
   HERO SECTIONS
   ======================================== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-color: var(--primary);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-overlay .gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,2,10,0.9), rgba(0,2,10,0.4));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 3rem var(--gutter);
    width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(254, 152, 50, 0.2);
    border: 1px solid rgba(254, 152, 50, 0.3);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    color: var(--secondary-container);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero h1 span {
    color: var(--secondary-container);
}

.hero p {
    max-width: 512px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-card {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px);
    padding: 45px;
    border-radius: var(--radius-3xl);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        display: none;
    }
}

/* ========================================
   BENTO GRID
   ======================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.bento-item {
    background-color: var(--surface-container-lowest);
    padding: 32px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--outline-variant);
    transition: all 0.3s ease;
}

.bento-item:hover {
    border-color: var(--secondary-container);
}

.bento-item.col-8 {
    grid-column: span 8;
}

.bento-item.col-4 {
    grid-column: span 4;
}

.bento-item.col-12 {
    grid-column: span 12;
}

.bento-item.dark {
    background-color: var(--primary);
    color: white;
}

.bento-item.accent {
    background-color: var(--secondary-container);
    color: var(--on-secondary-fixed);
}

.bento-item h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.bento-item p {
    color: var(--on-surface-variant);
    max-width: 400px;
}

.bento-item.dark p {
    color: rgba(255,255,255,0.7);
}

.corporate-bento-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 446px;
    gap: 20px;
}

.corporate-bento-content {
    flex: 1 1 auto;
}

.corporate-bento-card .space-y-4 {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.corporate-bento-cta {
    margin-top: auto !important;
    flex: 0 0 auto;
    align-self: stretch;
}

@media (max-width: 1024px) {
    .corporate-bento-card {
        min-height: 0;
    }
}

@media (max-width: 768px) {
    .bento-item.col-8,
    .bento-item.col-4,
    .bento-item.col-12 {
        grid-column: span 12;
    }
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-item {
    text-align: center;
    padding: 0 16px;
}

.stat-item:not(:last-child) {
    border-right: 1px solid var(--outline-variant);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--on-surface-variant);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(2) {
        border-right: none;
    }

    .stat-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid var(--outline-variant);
        padding-bottom: 16px;
        margin-bottom: 16px;
    }
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    position: relative;
    overflow: hidden;
    border-radius: 40px;
    background-color: var(--primary-container);
    padding: 48px;
}

.cta-section .bg-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    mix-blend-mode: overlay;
}

.cta-section .content {
    position: relative;
    z-index: 1;
    max-width: 512px;
}

.cta-section h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 24px;
}

.cta-section p {
    color: var(--on-primary-container);
    font-size: 1.125rem;
    margin-bottom: 40px;
}

.cta-section .btn-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 640px) {
    .cta-section .btn-group {
        flex-direction: row;
    }
}

/* ========================================
   PROFILE CARD
   ======================================== */
.profile-card {
    background-color: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.profile-cover {
    height: 200px;
    background-color: var(--primary-container);
    position: relative;
}

.profile-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.profile-avatar {
    position: absolute;
    bottom: -48px;
    left: 24px;
    width: 96px;
    height: 96px;
    border-radius: var(--radius-xl);
    border: 4px solid var(--surface-container-lowest);
    overflow: hidden;
    background-color: var(--surface);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-body {
    padding: 24px;
    padding-top: 56px;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.profile-title {
    color: var(--on-surface-variant);
    margin-bottom: 16px;
}

/* Stats Grid in Profile */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--outline-variant);
    border-bottom: 1px solid var(--outline-variant);
    margin: 16px 0;
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.profile-stat-label {
    font-size: 0.75rem;
    color: var(--on-surface-variant);
}

/* ========================================
   SIDEBAR
   ======================================== */
.sidebar {
    position: sticky;
    top: 96px;
}

.sidebar-card {
    background-color: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-xl);
    padding: 16px;
    margin-bottom: 16px;
}

.sidebar-card h3 {
    font-size: 1rem;
    margin-bottom: 16px;
}

/* ========================================
   FEED POSTS
   ======================================== */
.feed-post {
    background-color: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-xl);
    margin-bottom: 24px;
    overflow: hidden;
}

.feed-post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px;
}

.feed-post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--outline-variant);
}

.feed-post-author h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.feed-post-author p {
    font-size: 0.875rem;
    color: var(--on-surface-variant);
    margin: 0;
}

.feed-post-content {
    padding: 0 24px 16px;
}

.feed-post-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.feed-post-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--outline-variant);
}

.feed-post-actions {
    display: flex;
    justify-content: space-around;
    gap: 16px;
}

.feed-post-action {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--on-surface-variant);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
}

.feed-post-action:hover {
    background-color: var(--surface-variant);
    color: var(--primary);
}

/* ========================================
   FILTER TABS
   ======================================== */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.filter-tab {
    padding: 8px 24px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    background-color: var(--surface-container-low);
    color: var(--on-surface-variant);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    background-color: var(--surface-variant);
}

.filter-tab.active {
    background-color: var(--primary);
    color: var(--on-primary);
}

/* ========================================
   EVENT CARDS
   ======================================== */
.event-card {
    background-color: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-3xl);
    overflow: hidden;
    transition: all 0.3s ease;
}

.event-card:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.event-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--primary-container));
    position: relative;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card-type {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 12px;
    background-color: white;
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.event-card-body {
    padding: 24px;
}

.event-card-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--on-surface-variant);
    margin-bottom: 8px;
}

.event-card h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.event-card p {
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.event-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ========================================
   ACADEMY CARDS
   ======================================== */
.academy-card {
    background-color: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s ease;
}

.academy-card:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.academy-card-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.academy-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.academy-card:hover .academy-card-image img {
    transform: scale(1.05);
}

.academy-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
}

.academy-card-body {
    padding: 24px;
}

.academy-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.academy-card h3 {
    font-size: 1.125rem;
}

.academy-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.academy-card-location {
    font-size: 0.875rem;
    color: var(--on-surface-variant);
    margin-bottom: 12px;
}

.academy-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.academy-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid var(--outline-variant);
    border-bottom: 1px solid var(--outline-variant);
    margin-bottom: 16px;
}

.academy-stat {
    text-align: center;
}

.academy-stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
}

.academy-stat-label {
    font-size: 0.75rem;
    color: var(--on-surface-variant);
}

/* ========================================
   SPONSORSHIP TIERS
   ======================================== */
.tier-card {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(12px);
    padding: 24px;
    border-radius: var(--radius-xl);
    border-left: 4px solid;
    transition: all 0.3s ease;
}

.tier-card.bronze {
    border-left-color: #cd7f32;
}

.tier-card.silver {
    border-left-color: #c0c0c0;
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.tier-card.gold {
    border-left-color: #ffd700;
}

.tier-card.featured {
    position: relative;
}

.tier-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    right: 16px;
    padding: 4px 12px;
    background-color: var(--primary);
    color: var(--on-primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.tier-name {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.tier-card.bronze .tier-name { color: #cd7f32; }
.tier-card.silver .tier-name { color: #808080; }
.tier-card.gold .tier-name { color: #b8860b; }

.tier-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.tier-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.tier-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--on-surface-variant);
    margin-bottom: 8px;
}

.tier-features li .material-symbols-outlined {
    color: #22c55e;
    font-size: 1rem;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background-color: var(--surface-container-highest);
    padding: 32px 0;
    border-top: 1px solid var(--outline-variant);
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

@media (min-width: 768px) {
    .site-footer .container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .footer-brand {
        margin-bottom: 0;
    }
}

.footer-brand .material-symbols-outlined {
    color: var(--secondary-container);
    font-size: 1.5rem;
}

.footer-brand img {
    width: min(240px, 70vw);
    height: auto;
    max-height: 72px;
    object-fit: contain;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--on-surface-variant);
}

.footer-links a:hover {
    color: var(--secondary);
}

/* ========================================
   UTILITIES
   ======================================== */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary-container); }
.text-muted { color: var(--on-surface-variant); }

.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary-container); }
.bg-surface { background-color: var(--surface); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.mt-8 { margin-top: 32px; }

.py-8 { padding-top: 32px; padding-bottom: 32px; }
.py-16 { padding-top: 64px; padding-bottom: 64px; }
.px-6 { padding-left: 24px; padding-right: 24px; }

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

@media (max-width: 1024px) {
    .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 { grid-template-columns: 1fr; }
    .cta-section h2{
        font-size: 1.5rem;
    }
}

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }

/* ========================================
   RESPONSIVE GRID UTILITIES (Tailwind-style)
   ======================================== */
.max-w-\[1280px\] { max-width: 1280px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }

/* Main content area with mobile nav spacing */
main {
    padding-bottom: 80px; /* Space for mobile bottom nav */
}

/* Grid Layout */
.grid { display: grid; }
.lg\:grid-cols-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
}
.lg\:col-span-3 { grid-column: span 3 / span 3; }
.lg\:col-span-6 { grid-column: span 6 / span 6; }
.col-span-3 { grid-column: span 3; }
.col-span-6 { grid-column: span 6; }
.col-span-12 { grid-column: span 12; }

/* Spacing */
.space-y-6 > * + * { margin-top: 24px; }
.space-y-4 > * + * { margin-top: 16px; }

/* Layout */
.hidden { display: none; }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-t-xl { border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.overflow-hidden { overflow: hidden; }
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.shadow-lg { box-shadow: 0 10px 15px rgba(0,0,0,0.1); }

/* Flexbox */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.flex-grow { flex-grow: 1; }
.flex-col { flex-direction: column; }

/* Gap */
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }

/* Margin */
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.-mt-8 { margin-top: -32px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.ml-2 { margin-left: 8px; }
.mr-2 { margin-right: 8px; }

/* Padding */
.p-6 { padding: 24px; }
.p-4 { padding: 16px; }
.p-3 { padding: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.pt-1 { padding-top: 4px; }
.pt-4 { padding-top: 16px; }
.pb-3 { padding-bottom: 12px; }
.pb-4 { padding-bottom: 16px; }
.px-2 { padding-left: 8px; padding-right: 8px; }
.px-6 { padding-left: 24px; padding-right: 24px; }

/* Width/Height */
.w-full { width: 100%; }
.w-12 { width: 48px; }
.w-16 { width: 64px; }
.w-20 { width: 80px; }
.w-6 { width: 24px; }
.w-10 { width: 40px; }
.h-16 { height: 64px; }
.h-12 { height: 48px; }
.h-20 { height: 80px; }
.h-6 { height: 24px; }
.h-10 { height: 40px; }
.aspect-video { aspect-ratio: 16 / 9; }

/* Border */
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-4 { border-width: 4px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.border-surface-container-lowest { border-color: var(--surface-container-lowest); }
.border-outline-variant { border-color: var(--outline-variant); }
.border-primary { border-color: var(--primary); }
.border-secondary-container { border-color: var(--secondary-container); }
.border-white\/50 { border-color: rgba(255,255,255,0.5); }

/* Border Radius */
.border-2 { border-width: 2px; }
.rounded-full { border-radius: 9999px; }

/* Text */
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-2xl { font-size: 1.5rem; }
.text-5xl { font-size: 3rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.leading-tight { line-height: 1.25; }
.text-on-surface-variant { color: var(--on-surface-variant); }
.text-on-surface { color: var(--on-surface); }
.text-primary { color: var(--primary); }
.text-secondary-container { color: var(--secondary-container); }
.text-white { color: white; }

/* Background */
.bg-surface-container-lowest { gap:0; background-color: var(--surface-container-lowest); }
.bg-surface-container-low { background-color: var(--surface-container-low); }
.bg-surface-container { background-color: var(--surface-container); }
.bg-surface-variant { background-color: var(--surface-variant); }
.bg-secondary-container { background-color: var(--secondary-container); }
.bg-primary-container { background-color: var(--primary-container); }
.bg-primary { background-color: var(--primary); }
.bg-black { background-color: black; }
.bg-white\/20 { background-color: rgba(255,255,255,0.2); }
.bg-white { background-color: white; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.-right-2 { right: -8px; }
.-bottom-2 { bottom: -8px; }

/* Transform */
.-translate-y-1\/2 { transform: translateY(-50%); }
.-translate-x-32px { transform: translateX(-32px); }
.translate-x-32px { transform: translateX(32px); }

/* Opacity */
.opacity-50 { opacity: 0.5; }
.opacity-80 { opacity: 0.8; }
.opacity-0 { opacity: 0; }
.opacity-10 { opacity: 0.1; }
.group-hover\:opacity-0:hover { opacity: 0; }
.group-hover\:bg-black\/0:hover { background-color: transparent; }

/* Z-Index */
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* Object Fit */
.object-cover { object-fit: cover; }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* Transition */
.transition-all { transition: all 0.2s ease; }
.transition-colors { transition: color 0.2s ease, background-color 0.2s ease; }
.transition-transform { transition: transform 0.2s ease; }
.transition\:duration-500 { transition-duration: 500ms; }

/* Backdrop */
.backdrop-blur-md { backdrop-filter: blur(12px); }

/* Absolute Positioning Utilities */
.-space-x-2 > * { margin-left: -8px; }

/* Group Hover */
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }

/* Hover States */
.hover\:bg-surface-variant:hover { background-color: var(--surface-variant); }
.hover\:bg-primary:hover { background-color: var(--primary); }
.hover\:bg-primary:hover { background-color: var(--primary); }
.hover\:text-primary:hover { color: var(--primary); }
.hover\:text-on-primary:hover { color: var(--on-primary); }
.hover\:underline:hover { text-decoration: underline; }

/* Fixed Position */
.fixed { position: fixed; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }

/* Object Fit for Images */
.object-cover { object-fit: cover; }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Line Clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Text Alignment */
.text-left { text-align: left; }

/* Negative Space */
.-space-x-2 > * + * { margin-left: -8px; }

/* Border Radius Helpers */
.rounded-3xl { border-radius: var(--radius-3xl); }

/* Width Utilities */
.w-full { width: 100%; }
.w-16 { width: 4rem; }
.w-64 { width: 16rem; }

/* Height Utilities */
.h-\[400px\] { height: 400px; }
.min-h-screen { min-height: 100vh; }

/* Flex Child */
.flex-1 { flex: 1 1 0%; }

/* Visibility on Hover */
.bg-black\/10 { background-color: rgba(0,0,0,0.1); }

/* Rotate */
.rotate-12 { transform: rotate(12deg); }

/* Line Height */
.leading-none { line-height: 1; }

/* Color with opacity */
.text-on-secondary-container { color: var(--on-secondary-container); }
.text-on-primary-container { color: var(--on-primary-container); }
.text-on-primary { color: var(--on-primary); }
.text-on-secondary-fixed { color: var(--on-secondary-fixed); }

/* Display helpers */
.inline-block { display: inline-block; }

/* Hide on mobile */
@media (max-width: 1024px) {
    .hide-mobile { display: none !important; }
    .lg\:block { display: none; }
    .lg\:col-span-3,
    .lg\:col-span-6 { grid-column: span 12; }
}

/* Hide on desktop */
@media (min-width: 1025px) {
    .hide-desktop { display: none !important; }
}

/* ========================================
   RESPONSIVE SAFETY LAYER
   ======================================== */
@media (max-width: 1200px) {
    .site-header .container {
        gap: 16px;
    }

    .main-nav {
        gap: 20px;
    }

    .header-actions {
        gap: 10px;
    }

    .header-search {
        flex-basis: 300px;
        width: 300px;
    }
}

@media (max-width: 1024px) {
    main {
        padding-bottom: 88px;
    }

    .container,
    .container-full,
    .hero-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .site-header .container {
        height: 60px;
    }

    .header-actions .btn-login,
    .header-actions .btn-join {
        display: none;
    }

    .bento-item.col-8,
    .bento-item.col-4,
    .bento-item.col-12 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    :root {
        --gutter: 16px;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.625rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .hero {
        min-height: auto;
        padding: 64px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons,
    .footer-links {
        gap: 12px;
    }

    .btn,
    .btn-lg {
        min-height: 44px;
        padding: 10px 18px;
    }

    .card-body,
    .bento-item {
        padding: 20px;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .container,
    .container-full,
    .hero-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-logo img {
        width: 48px;
        height: 48px;
    }

    h1,
    .hero h1 {
        font-size: 2rem;
    }

    .btn,
    .btn-lg,
    .btn-sm {
        width: 100%;
    }

    .mobile-bottom-nav {
        padding-left: 10px;
        padding-right: 10px;
    }
}

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

.animate-fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
}

::-webkit-scrollbar-thumb {
    background: var(--outline-variant);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--on-surface-variant);
}
