/* ==========================================================================
   Wrestling Indonesia - Main Stylesheet
   Modern, Professional & Sporty Theme
   ========================================================================== */

:root {
    --wi-primary: #dc2626;          /* Wrestling Crimson Red */
    --wi-primary-dark: #991b1b;
    --wi-primary-light: #f87171;
    --wi-primary-glow: rgba(220, 38, 38, 0.25);

    --wi-secondary: #0f172a;        /* Midnight Slate */
    --wi-secondary-dark: #020617;
    --wi-secondary-light: #1e293b;

    --wi-gold: #f59e0b;             /* Championship Gold */
    --wi-gold-dark: #b45309;
    --wi-gold-light: #fde68a;

    --wi-emerald: #10b981;
    --wi-azure: #2563eb;
    --wi-bg-light: #f8fafc;
    --wi-card-bg: #ffffff;
    --wi-text-main: #1e293b;
    --wi-text-muted: #64748b;
    --wi-border-color: #e2e8f0;

    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --shadow-subtle: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
    --shadow-card: 0 10px 30px -4px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 20px 35px -5px rgba(220, 38, 38, 0.15);
    --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-body);
    color: var(--wi-text-main);
    background-color: var(--wi-bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--wi-secondary);
}

/* ==========================================================================
   Custom Referee Whistle Icon (FontAwesome Pro Fallback)
   ========================================================================== */
.fa-whistle,
i.fa-whistle,
.icon-whistle {
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    vertical-align: -0.15em;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%23000'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M 230 140 H 480 C 497.7 140 512 154.3 512 172 V 212 C 512 229.7 497.7 244 480 244 H 345 L 272 285 A 110 110 0 1 1 170 200 C 178 200 185 201 192 203 V 165 C 192 151.2 203.2 140 217 140 H 230 Z M 170 265 A 45 45 0 1 0 170 355 A 45 45 0 1 0 170 265 Z M 40 285 A 25 25 0 1 0 40 335 A 25 25 0 1 0 40 285 Z M 40 298 A 12 12 0 1 1 40 322 A 12 12 0 1 1 40 298 Z'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%23000'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M 230 140 H 480 C 497.7 140 512 154.3 512 172 V 212 C 512 229.7 497.7 244 480 244 H 345 L 272 285 A 110 110 0 1 1 170 200 C 178 200 185 201 192 203 V 165 C 192 151.2 203.2 140 217 140 H 230 Z M 170 265 A 45 45 0 1 0 170 355 A 45 45 0 1 0 170 265 Z M 40 285 A 25 25 0 1 0 40 335 A 25 25 0 1 0 40 285 Z M 40 298 A 12 12 0 1 1 40 322 A 12 12 0 1 1 40 298 Z'/%3E%3C/svg%3E") no-repeat center / contain;
    font-style: normal;
    line-height: 1;
}

.fa-whistle::before,
i.fa-whistle::before,
.icon-whistle::before {
    content: "" !important;
    display: none !important;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.wi-navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
    padding: 0.85rem 0;
}

.wi-navbar .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.45rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: 0.5px;
}

.navbar-logo-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 16px rgba(255, 107, 0, 0.45);
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.navbar-logo-img:hover {
    transform: scale(1.06);
    box-shadow: 0 0 24px rgba(255, 107, 0, 0.7);
}

@media (max-width: 576px) {
    .navbar-logo-img {
        width: 44px;
        height: 44px;
    }
}

.wi-navbar .brand-badge {
    background: linear-gradient(135deg, var(--wi-primary), #ef4444);
    color: #ffffff;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wi-navbar .nav-link {
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: var(--transition-fast);
    border-radius: 6px;
}

.wi-navbar .nav-link:hover,
.wi-navbar .nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.wi-navbar .btn-nav-auth {
    background: linear-gradient(135deg, var(--wi-primary), #b91c1c);
    color: #ffffff !important;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.5rem 1.25rem !important;
    border: none;
    box-shadow: 0 4px 15px var(--wi-primary-glow);
    transition: var(--transition-fast);
}

.wi-navbar .btn-nav-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    background: radial-gradient(circle at 80% 20%, rgba(220, 38, 38, 0.22) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(245, 158, 11, 0.15) 0%, transparent 40%),
                linear-gradient(180deg, #0b1329 0%, #020617 100%);
    color: #ffffff;
    padding: 7rem 0 6rem;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--wi-bg-light), transparent);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(220, 38, 38, 0.18);
    border: 1px solid rgba(220, 38, 38, 0.4);
    border-radius: 50px;
    color: #fca5a5;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero-title .text-gradient {
    background: linear-gradient(135deg, #ffffff 30%, var(--wi-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.15rem;
    color: #94a3b8;
    margin-bottom: 2.25rem;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-stats-box {
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.hero-stat-item {
    text-align: center;
    padding: 1rem;
}

.hero-stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--wi-gold);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.hero-stat-label {
    font-size: 0.82rem;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-wi-primary {
    background: linear-gradient(135deg, var(--wi-primary), #b91c1c);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.75rem;
    box-shadow: 0 6px 20px var(--wi-primary-glow);
    transition: var(--transition-fast);
}

.btn-wi-primary:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.35);
}

.btn-wi-gold {
    background: linear-gradient(135deg, var(--wi-gold), #d97706);
    color: #0f172a;
    font-family: var(--font-heading);
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.75rem;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
    transition: var(--transition-fast);
}

.btn-wi-gold:hover {
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.45);
}

.btn-wi-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 10px;
    padding: 0.7rem 1.5rem;
    transition: var(--transition-fast);
}

.btn-wi-outline:hover {
    background: #ffffff;
    color: var(--wi-secondary);
    border-color: #ffffff;
}

/* ==========================================================================
   Section Headers & Cards
   ========================================================================== */
.section-padding {
    padding: 5rem 0;
}

.section-tag {
    display: inline-block;
    color: var(--wi-primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}

.section-heading {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-lead {
    color: var(--wi-text-muted);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto;
}

/* Sporty Card Styling */
.wi-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--wi-border-color);
    box-shadow: var(--shadow-card);
    transition: var(--transition-fast);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.wi-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(220, 38, 38, 0.3);
}

.wi-card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: #0f172a;
}

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

.wi-card:hover .wi-card-img-wrapper img {
    transform: scale(1.05);
}

.wi-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.wi-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.wi-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.wi-card-title a {
    color: var(--wi-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.wi-card-title a:hover {
    color: var(--wi-primary);
}

.wi-card-meta {
    font-size: 0.85rem;
    color: var(--wi-text-muted);
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

/* Tournament Card Specifics */
.tournament-date-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f1f5f9;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--wi-secondary);
}

.tournament-location {
    font-size: 0.9rem;
    color: var(--wi-text-muted);
    margin-bottom: 1rem;
}

.tournament-divider {
    border-top: 1px dashed #e2e8f0;
    margin: 1rem 0;
}

/* ==========================================================================
   Horizontal Tournament Cards (for unified 2/3 layout)
   ========================================================================== */
.wi-card-horizontal {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid var(--wi-border-color);
    box-shadow: var(--shadow-card);
    padding: 1.15rem;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.15rem;
}

.wi-card-horizontal:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.12);
    border-color: rgba(220, 38, 38, 0.35);
}

.wi-card-h-img {
    width: 175px;
    height: 130px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.wi-card-h-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.wi-card-horizontal:hover .wi-card-h-img img {
    transform: scale(1.06);
}

.hover-danger {
    transition: color 0.2s;
}

.hover-danger:hover {
    color: var(--wi-primary) !important;
}

@media (max-width: 767.98px) {
    .wi-card-horizontal {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
        padding: 1rem;
    }
    .wi-card-h-img {
        width: 100%;
        height: 165px;
    }
}

/* ==========================================================================
   Call to Action (CTA) Cards
   ========================================================================== */
.cta-box-wasit {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 20px;
    padding: 3rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-box-wasit::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-box-pelatih {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    border-radius: 20px;
    padding: 3rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(30, 27, 75, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-box-pelatih::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.wi-footer {
    background: #020617;
    color: #94a3b8;
    padding: 4.5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wi-footer .footer-brand {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.wi-footer h5 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
}

.wi-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wi-footer-links li {
    margin-bottom: 0.65rem;
}

.wi-footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.92rem;
}

.wi-footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    margin-right: 0.5rem;
    transition: var(--transition-fast);
    text-decoration: none;
}

.footer-social-icon:hover {
    background: var(--wi-primary);
    color: #ffffff;
    transform: translateY(-3px);
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-section {
        padding: 5rem 0 4rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2rem;
    }
    .cta-box-wasit, .cta-box-pelatih {
        padding: 2rem 1.5rem;
    }
}

/* ==========================================================================
   Wrestling Tournament Calendar Styling
   ========================================================================== */
.calendar-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--wi-border-color);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.calendar-header-bar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 1.25rem 1.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.calendar-month-title {
    font-size: 1.45rem;
    font-weight: 800;
    margin: 0;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.calendar-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.calendar-grid-header {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    background: #f1f5f9;
    border-bottom: 2px solid #cbd5e1;
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #475569;
    min-width: 700px;
    width: 100%;
}

.calendar-grid-header > div {
    padding: 0.85rem 0.35rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-grid-header > div:nth-child(6) {
    color: #2563eb;
}

.calendar-grid-header > div:nth-child(7) {
    color: #dc2626;
}

.calendar-grid-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    background: #e2e8f0;
    gap: 1px;
    min-width: 700px;
    width: 100%;
}

.calendar-day-cell {
    background: #ffffff;
    min-height: 105px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    transition: background-color 0.2s;
    position: relative;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.calendar-day-cell:hover {
    background: #f8fafc;
}

.calendar-day-cell.other-month {
    background: #f8fafc;
    color: #cbd5e1;
}

.calendar-day-cell:nth-child(7n-1) .calendar-day-number {
    color: #2563eb;
}

.calendar-day-cell:nth-child(7n) .calendar-day-number {
    color: #dc2626;
}

.calendar-day-number {
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #1e293b;
    flex-shrink: 0;
}

.calendar-day-cell.today .calendar-day-number {
    background: var(--wi-primary);
    color: #ffffff !important;
    box-shadow: 0 3px 10px var(--wi-primary-glow);
}

.events-container {
    min-width: 0;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.calendar-event-badge {
    display: block;
    padding: 0.25rem 0.45rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    text-align: left;
}

.calendar-event-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

.event-status-dibuka {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.95), rgba(185, 28, 28, 0.95));
    color: #ffffff;
}

.event-status-ditutup {
    background: #334155;
    color: #ffffff;
}

.event-status-selesai {
    background: #0284c7;
    color: #ffffff;
}

@media (max-width: 767.98px) {
    .calendar-day-cell {
        min-height: 90px;
        padding: 0.35rem;
    }
    .calendar-event-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.35rem;
    }
}

/* ==========================================================================
   High-Contrast Status Badges
   ========================================================================== */
.badge-status-dibuka {
    background-color: #dcfce7 !important;
    color: #166534 !important;
    border: 1px solid #86efac !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
}
.badge-status-dibuka i {
    color: #15803d !important;
}

.badge-status-selesai {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #7dd3fc !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
}
.badge-status-selesai i {
    color: #0284c7 !important;
}

.badge-status-ditutup {
    background-color: #fee2e2 !important;
    color: #991b1b !important;
    border: 1px solid #fca5a5 !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
}
.badge-status-ditutup i {
    color: #b91c1c !important;
}

.badge-status-menunggu {
    background-color: #fef3c7 !important;
    color: #92400e !important;
    border: 1px solid #fcd34d !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
}
.badge-status-menunggu i {
    color: #b45309 !important;
}

.badge-status-disetujui {
    background-color: #dcfce7 !important;
    color: #166534 !important;
    border: 1px solid #86efac !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
}
.badge-status-disetujui i {
    color: #15803d !important;
}

.badge-status-ditolak {
    background-color: #fee2e2 !important;
    color: #991b1b !important;
    border: 1px solid #fca5a5 !important;
    font-weight: 600 !important;
    display: inline-flex !important;
}

