/* ==========================================================================
   KENSHOTECH ECOSYSTEM - LANDING PAGE STYLESHEET
   Official Tournament Information Platform
   ========================================================================== */

:root {
    --primary: #1e4d45;
    --primary-dark: #143731;
    --primary-light: #2d6a60;
    --accent-mint: #eaf4f1;
    --accent-mint-border: #cbe3dc;
    --text-title: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --border-subtle: #f1f5f9;
    --status-live-bg: #dcfce7;
    --status-live-text: #15803d;
    --status-live-dot: #16a34a;
    --status-upcoming-bg: #e0f2fe;
    --status-upcoming-text: #0284c7;
    --status-done-bg: #f1f5f9;
    --status-done-text: #64748b;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
    --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.06), 0 2px 8px -2px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 16px 36px -6px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.top-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.02);
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.brand-logo-box {
    width: 42px;
    height: 42px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.brand-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: var(--text-title);
    text-transform: uppercase;
}

.brand-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Nav Menu Tabs */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-pill);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--accent-mint);
}

.nav-link.active {
    color: var(--primary);
    background: var(--accent-mint);
    border: 1px solid var(--accent-mint-border);
    font-weight: 700;
}

.nav-link svg {
    width: 16px;
    height: 16px;
}

/* Nav Action */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-admin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.15rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-title);
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-admin:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--accent-mint);
    transform: translateY(-1px);
}

/* ==========================================================================
   MAIN CONTENT WRAPPER
   ========================================================================== */
.main-wrapper {
    max-width: 1240px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero-banner {
    position: relative;
    background: linear-gradient(135deg, #e9f3f0 0%, #f4f8f6 40%, #e5efe9 100%);
    border: 1px solid var(--accent-mint-border);
    border-radius: var(--radius-lg);
    padding: 3rem 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.hero-content {
    max-width: 580px;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.hero-title {
    font-size: 2.35rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: var(--text-title);
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}

.hero-desc {
    font-size: 1.02rem;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.btn-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(30, 77, 69, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-hero-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 77, 69, 0.35);
}

.btn-hero-cta svg {
    transition: transform 0.2s ease;
}

.btn-hero-cta:hover svg {
    transform: translateX(4px);
}

/* Hero Visual & Japanese Kanji */
.hero-visual-wrap {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 55%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    pointer-events: none;
    overflow: hidden;
}

.hero-karate-img {
    height: 105%;
    width: auto;
    object-fit: cover;
    mask-image: linear-gradient(to right, transparent 0%, black 35%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 35%);
}

.hero-kanji {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(30, 77, 69, 0.3);
    letter-spacing: 0.8rem;
    user-select: none;
    font-family: serif;
}

/* ==========================================================================
   SECTION COMMON HEADERS
   ========================================================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-title);
    letter-spacing: 0.2px;
}

.section-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition);
}

.section-link:hover {
    color: var(--primary-dark);
    transform: translateX(2px);
}

/* Pulse Live Dot */
.live-pulse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    position: relative;
}

.live-pulse-dot {
    width: 10px;
    height: 10px;
    background-color: var(--status-live-dot);
    border-radius: 50%;
}

.live-pulse::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--status-live-dot);
    animation: pulse 1.8s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(2.2); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

/* Status Badges */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-pill);
    width: fit-content;
}

.badge-live {
    background-color: var(--status-live-bg);
    color: var(--status-live-text);
}

.badge-upcoming {
    background-color: var(--status-upcoming-bg);
    color: var(--status-upcoming-text);
}

.badge-done {
    background-color: var(--status-done-bg);
    color: var(--status-done-text);
}

/* ==========================================================================
   FEATURED / ONGOING EVENT CARD
   ========================================================================== */
.featured-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: 420px 1fr;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.featured-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-mint-border);
}

.featured-poster-wrap {
    position: relative;
    background: #0f172a;
    min-height: 250px;
    overflow: hidden;
}

.featured-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-card:hover .featured-poster-img {
    transform: scale(1.03);
}

.featured-poster-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.75) 100%);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.poster-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.poster-tagline {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.featured-info {
    padding: 2rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.featured-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-title);
    line-height: 1.3;
    margin: 0.65rem 0 1rem;
}

.event-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.event-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

.event-meta-item svg {
    color: var(--primary);
    width: 16px;
    height: 16px;
}

.featured-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
}

.featured-metrics {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.metric-icon-box {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--accent-mint);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.metric-text {
    display: flex;
    flex-direction: column;
}

.metric-val {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-title);
    line-height: 1.1;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.btn-open-event {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(30, 77, 69, 0.2);
    white-space: nowrap;
}

.btn-open-event:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(30, 77, 69, 0.3);
}

.btn-open-event svg {
    transition: transform 0.2s ease;
}

.btn-open-event:hover svg {
    transform: translateX(4px);
}

/* ==========================================================================
   EMPTY STATE BOXES (FOR SECTIONS WITHOUT DATA)
   ========================================================================== */
.empty-event-box {
    background: var(--bg-card);
    border: 1.5px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.75rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.empty-event-box:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

.empty-icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--accent-mint);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.35rem;
}

.empty-icon-wrap svg {
    width: 24px;
    height: 24px;
}

.empty-event-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--text-title);
}

.empty-event-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.6;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-quote {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
    font-weight: 500;
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .featured-card {
        grid-template-columns: 340px 1fr;
    }

    .hero-title {
        font-size: 2rem;
    }
}

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

    .hero-banner {
        padding: 2.25rem 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-visual-wrap {
        position: relative;
        width: 100%;
        height: 200px;
        margin-top: 1.5rem;
    }

    .hero-karate-img {
        width: 100%;
        height: 100%;
        mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    }

    .hero-kanji {
        display: none;
    }

    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-poster-wrap {
        height: 180px;
    }

    .featured-bottom-row {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }

    .btn-open-event {
        justify-content: center;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}
