/* ==========================================================================
   PBPI KABUPATEN BOGOR - DEDICATED DESKTOP & TABLET VIEW LAYER
   Berlaku untuk layar >= 768px (Desktop, Laptop, Tablet & Layar Lebar).
   Memastikan estetika visual luas, rapi, proporsional, dan elegan sesuai
   standar Obsidian Crimson & Gold PBPI Kabupaten Bogor.
   ========================================================================== */

@media (min-width: 768px) {
    /* --------------------------------------------------------------------------
       1. GLOBAL DESKTOP CONTAINER & LAYOUT STANDARDS
       -------------------------------------------------------------------------- */
    html, body {
        font-size: 15px;
    }

    .container,
    .container-lg,
    .container-xl,
    .container-xxl {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    /* Content wrapper bottom spacing (tanpa mobile dock) */
    #main,
    .page-content,
    .content-wrapper {
        padding-bottom: 3.5rem !important;
        background: transparent !important;
    }

    /* Universal Desktop Glassmorphic Cards (Matching Dashboard Theme) */
    .card,
    .pbpi-glass-card,
    .court-card,
    .club-card,
    .court-detail-card,
    .podium-card,
    .pbpi-identity-card,
    .pbpi-vision-card,
    .pbpi-officer-card,
    .rank-card-item,
    .klasemen-header-card,
    .search-filter-card {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 40%, rgba(255, 255, 255, 0.002) 100%) !important;
        backdrop-filter: blur(2px) saturate(115%) !important;
        -webkit-backdrop-filter: blur(2px) saturate(115%) !important;
        border: 1.2px solid rgba(255, 255, 255, 0.20) !important;
        border-top: 1.5px solid rgba(255, 255, 255, 0.38) !important;
        border-left: 1.2px solid rgba(255, 255, 255, 0.25) !important;
        border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
        border-radius: 26px !important;
        box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.25),
                    inset 0 -1px 2px rgba(255, 255, 255, 0.10),
                    inset 0 0 16px rgba(255, 255, 255, 0.03),
                    0 16px 36px rgba(0, 0, 0, 0.25) !important;
        color: #ffffff !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .card .card-header,
    .card > .card-header,
    .card .card-body,
    .card > .card-body,
    .card .card-footer,
    .card > .card-footer {
        background: transparent !important;
        color: #ffffff !important;
    }
    .card:not(.formulir-section-card):not(.bg-white):not(.card-light) :is(h1, h2, h3, h4, h5, h6, label, .form-label, .card-title) {
        color: #ffffff !important;
    }
    .card:not(.formulir-section-card):not(.bg-white):not(.card-light) :is(.text-dark, h4.text-dark, h5.text-dark, h6.text-dark, p.text-dark, span.text-dark, strong.text-dark, div.text-dark, small.text-dark) {
        color: #ffffff !important;
    }
    .card:not(.formulir-section-card):not(.bg-white):not(.card-light) :is(.text-muted, small.text-muted, .text-secondary) {
        color: rgba(255, 255, 255, 0.88) !important;
    }
    :is(.nav-pills, .nav-tabs, #logoSettingsTab) :is(.nav-link, button.nav-link):not(.active) {
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.20) !important;
    }
    :is(.nav-pills, .nav-tabs, #logoSettingsTab) :is(.nav-link, button.nav-link):not(.active) i {
        color: #ffffff !important;
    }
    :is(.nav-pills, .nav-tabs, #logoSettingsTab) :is(.nav-link, button.nav-link):not(.active):hover {
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.18) !important;
        border-color: rgba(255, 255, 255, 0.40) !important;
    }

    /* --------------------------------------------------------------------------
       2. JADWAL / TOURNAMENT MODULE (DESKTOP & TABLET PRESENTATION)
       -------------------------------------------------------------------------- */
    .tournament-hero-section {
        background: linear-gradient(135deg, #07090e 0%, #0b111e 50%, #0f172a 100%) !important;
        padding: 5.5rem 1rem 4rem !important;
        position: relative;
        overflow: hidden;
    }

    .tournament-hero-section::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top right, rgba(71, 108, 181, 0.22), transparent 60%),
                    radial-gradient(circle at bottom left, rgba(255, 197, 21, 0.1), transparent 50%);
        pointer-events: none;
    }

    .tournament-hero-content {
        position: relative;
        z-index: 2;
    }

    .tournament-main-title {
        color: #ffffff;
        font-size: 2.35rem;
        font-weight: 900;
        letter-spacing: -0.01em;
        margin-bottom: 0.35rem;
        font-family: 'Montserrat', sans-serif;
    }

    .tournament-subtitle {
        color: #cbd5e1;
        font-size: 1.05rem;
        font-weight: 500;
        margin-bottom: 0;
    }

    .tournament-content-section {
        background-color: transparent !important;
        padding: 3rem 1rem 5rem;
        min-height: 60vh;
    }

    .tournament-section-heading {
        color: #ffffff !important;
        font-size: 1.45rem;
        font-weight: 800;
        font-family: 'Montserrat', sans-serif;
        margin-bottom: 0;
    }

    .tournament-search-box {
        max-width: 320px;
    }

    .tournament-search-box .form-control {
        border-radius: 999px 0 0 999px;
        border: 1.5px solid rgba(255, 255, 255, 0.15);
        border-right: none;
        padding: 0.55rem 1rem;
        font-size: 0.88rem;
        background: rgba(15, 23, 42, 0.6) !important;
        color: #ffffff !important;
    }

    .tournament-search-box .form-control::placeholder {
        color: #94a3b8;
    }

    .tournament-search-box .form-control:focus {
        border-color: #c91a24;
        box-shadow: none;
        background: rgba(15, 23, 42, 0.8) !important;
    }

    .tournament-search-box .btn-search {
        border-radius: 0 999px 999px 0;
        background: #c91a24;
        border: 1.5px solid #c91a24;
        color: #fff;
        font-weight: 700;
        font-size: 0.88rem;
        padding: 0.55rem 1.25rem;
        transition: all 0.2s ease;
    }

    .tournament-search-box .btn-search:hover {
        background: #a5131b;
        border-color: #a5131b;
    }

    /* Tournament Cards */
    .tournament-card {
        background: rgba(10, 17, 40, 0.45) !important;
        backdrop-filter: blur(20px) saturate(160%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
        border: 1px solid rgba(255, 255, 255, 0.14) !important;
        border-top: 1.5px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 20px !important;
        padding: 1.25rem 1.4rem;
        display: flex;
        align-items: center;
        gap: 1.25rem;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
        height: 100%;
        position: relative;
        color: #ffffff !important;
    }

    .tournament-card:hover {
        transform: translateY(-3px);
        background: rgba(15, 23, 50, 0.6) !important;
        border-color: rgba(255, 197, 21, 0.5) !important;
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45), 0 0 20px rgba(255, 197, 21, 0.15) !important;
    }

    .tournament-logo-wrap {
        width: 90px;
        height: 90px;
        min-width: 90px;
        border-radius: 16px;
        background: linear-gradient(145deg, #1e293b, #0f172a);
        border: 2px solid rgba(255, 197, 21, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        flex-shrink: 0;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
        transition: all 0.3s ease;
    }

    .tournament-card:hover .tournament-logo-wrap {
        border-color: #ffc515;
        box-shadow: 0 8px 20px rgba(201, 26, 36, 0.25);
    }

    .tournament-logo-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        padding: 0;
        border-radius: 14px;
        transition: transform 0.35s ease;
        display: block;
    }

    .tournament-card:hover .tournament-logo-wrap img {
        transform: scale(1.08);
    }

    .tournament-logo-placeholder {
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, #c91a24 0%, #870c14 100%);
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.82rem;
        font-weight: 900;
        letter-spacing: 0.08em;
    }

    .tournament-body {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .tournament-badges {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 6px;
        flex-wrap: wrap;
    }

    .badge-grade {
        background: #ffc515;
        color: #451a03;
        font-size: 0.72rem;
        font-weight: 800;
        padding: 3px 10px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        line-height: 1.2;
    }

    .badge-status {
        background: #f1f5f9;
        color: #475569;
        font-size: 0.72rem;
        font-weight: 700;
        padding: 3px 10px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        line-height: 1.2;
    }

    .tournament-title {
        font-size: 1rem;
        font-weight: 800;
        color: #ffffff !important;
        margin: 0 0 6px;
        line-height: 1.35;
        text-transform: uppercase;
        font-family: 'Montserrat', sans-serif;
        text-align: left;
        width: 100%;
    }

    .tournament-title a {
        color: #ffffff !important;
        text-decoration: none;
        transition: color 0.2s ease;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .tournament-title a:hover {
        color: #ffc515 !important;
    }

    .tournament-meta-list {
        display: flex;
        flex-direction: column;
        gap: 4px;
        margin-bottom: 10px;
        width: 100%;
    }

    .tournament-meta-item {
        display: flex;
        align-items: center;
        gap: 7px;
        font-size: 0.82rem;
        font-weight: 500;
        color: #94a3b8 !important;
        line-height: 1.35;
    }

    .tournament-meta-icon {
        font-size: 0.9rem;
        line-height: 1;
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 16px;
    }

    .tournament-meta-icon.icon-lokasi {
        color: #dc2626;
    }

    .tournament-meta-icon.icon-tanggal {
        color: #eab308;
    }

    .tournament-meta-text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .tournament-link {
        font-size: 0.84rem;
        font-weight: 800;
        color: #476cb5;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        transition: all 0.2s ease;
        margin-top: auto;
    }

    .tournament-link:hover {
        color: #314d84;
        transform: translateX(3px);
    }

    .tournament-link i {
        font-size: 0.88rem;
        transition: transform 0.2s ease;
    }

    .tournament-link:hover i {
        transform: translateX(2px);
    }

    /* --------------------------------------------------------------------------
       3. DESKTOP & TABLET DATA TABLES & CARDS
       -------------------------------------------------------------------------- */
    .table-responsive {
        border-radius: 16px;
        overflow-x: auto;
    }

    .table {
        margin-bottom: 0;
    }

    .table th {
        font-weight: 700;
        letter-spacing: 0.02em;
    }

    /* --------------------------------------------------------------------------
       4. DESKTOP HIDE MOBILE FLOATING ELEMENTS
       -------------------------------------------------------------------------- */
    .pbpi-floating-dock-container {
        display: none !important;
    }

    .sidebar-edge-toggle {
        display: flex;
    }
}

/* Desktop counterpart to the navy mobile homepage. */
@media (min-width: 768px) {
    html:not(.pbpi-mobile-app) .cluster-home { background: #f4f6fa; }
    html:not(.pbpi-mobile-app) .cluster-home .cp-hero { min-height: 650px !important; padding: 150px 32px 64px !important; background: radial-gradient(ellipse at 100% 10%,#244b7c,transparent 50%),linear-gradient(145deg,#08192e,#122d50 65%,#123c56) !important; overflow: hidden; border-radius: 0 0 40px 40px; }
    html:not(.pbpi-mobile-app) .cp-hero .cp-hero-video { display: none; }
    html:not(.pbpi-mobile-app) .cp-hero .cp-portal-background { opacity: .035; }
    html:not(.pbpi-mobile-app) .cp-hero .cp-hero-container { position: relative; z-index: 3; width: 100%; max-width: 1200px !important; text-align: left !important; align-items: flex-start !important; }
    html:not(.pbpi-mobile-app) .cp-hero .cp-hero-title-proto { display: none !important; }
    html:not(.pbpi-mobile-app) .cp-hero .cp-hero-web-title { display: block !important; width: 100%; max-width: 760px !important; font-size: clamp(46px,4.8vw,70px) !important; font-weight: 800 !important; line-height: 1.08 !important; letter-spacing: -.045em; color: #fff; text-align: left !important; margin: 0 0 24px !important; animation: cp-hero-reveal .75s ease-out both; }
    html:not(.pbpi-mobile-app) .cp-hero-web-title span { display: block; color: #b7d6ff; }
    html:not(.pbpi-mobile-app) .cp-hero .cp-hero-tagline { max-width: 570px !important; margin: 0 0 28px !important; font-size: 16px !important; line-height: 1.75 !important; text-align: left !important; color: #ccd8e8 !important; }
    html:not(.pbpi-mobile-app) .cp-hero .cp-hero-cta { justify-content: flex-start !important; margin: 0 0 36px !important; }
    html:not(.pbpi-mobile-app) .cp-hero-cta .cp-btn-pill { min-height: 48px !important; padding: 13px 24px !important; font-size: 14px !important; border-radius: 14px !important; transition: transform .2s ease,box-shadow .2s ease; }
    html:not(.pbpi-mobile-app) .cp-hero-cta .cp-btn-pill:hover { transform: translateY(-3px); }
    html:not(.pbpi-mobile-app) .cp-hero-cta .cp-btn-blue { background: linear-gradient(135deg,#6d99e1,#476cb5) !important; border: 1px solid #8aade8 !important; box-shadow: 0 8px 22px rgba(0,0,0,.18) !important; }
    html:not(.pbpi-mobile-app) .cp-hero-cta .cp-btn-white { background: rgba(255,255,255,.08) !important; border: 1px solid rgba(209,225,248,.3) !important; color: #edf4ff !important; box-shadow: none !important; }
    html:not(.pbpi-mobile-app) .cp-hero .cp-hero-stats-ribbon { display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)) !important; width: 100% !important; max-width: 680px !important; margin: 0 !important; padding: 22px 8px !important; background: rgba(255,255,255,.07) !important; border: 1px solid rgba(193,219,255,.2) !important; border-radius: 18px !important; box-shadow: none !important; gap: 0 !important; align-items: start !important; }
    html:not(.pbpi-mobile-app) .cp-hero-stats-ribbon .stat-sep { display: none !important; }
    html:not(.pbpi-mobile-app) .cp-hero-stats-ribbon .stat-item { min-width: 0; padding: 0 12px !important; border: none !important; }
    html:not(.pbpi-mobile-app) .cp-hero-stats-ribbon .stat-item ~ .stat-item { border-left: 1px solid rgba(193,219,255,.18) !important; }
    html:not(.pbpi-mobile-app) .cp-hero-stats-ribbon .stat-num { display: block; font-size: 30px !important; line-height: 1.2 !important; color: #fff !important; }
    html:not(.pbpi-mobile-app) .cp-hero-stats-ribbon .stat-num small { font-size: 14px !important; color: #fff !important; }
    html:not(.pbpi-mobile-app) .cp-hero-stats-ribbon .stat-lbl { display: block; font-size: 10px !important; color: #bdcde2 !important; margin-top: 7px; white-space: normal !important; }
    html:not(.pbpi-mobile-app) .cp-hero .cp-hero-court-scene { display: block; position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
    .cp-hero-court-scene .cp-court-light { position: absolute; width: 650px; height: 650px; border-radius: 50%; opacity: .45; animation: cp-court-glow 14s ease-in-out infinite alternate; }
    .cp-hero-court-scene .cp-court-light-blue { top: -100px; right: -120px; background: radial-gradient(circle,rgba(97,157,246,.5),transparent 68%); }
    .cp-hero-court-scene .cp-court-light-teal { bottom: -350px; left: -200px; background: radial-gradient(circle,rgba(47,188,187,.42),transparent 68%); animation-delay: -7s; }
    .cp-hero-court-scene .cp-court-lines { position: absolute; width: 420px; height: 600px; right: 1%; top: 120px; border: 1px solid rgba(174,216,255,.18); border-radius: 12px; transform: rotate(-28deg); background: linear-gradient(90deg,transparent calc(50% - .5px),rgba(174,216,255,.12) 50%,transparent calc(50% + .5px)),linear-gradient(0deg,transparent calc(50% - .5px),rgba(174,216,255,.15) 50%,transparent calc(50% + .5px)); }
    .cp-hero-court-scene .cp-court-lines > span { position: absolute; inset: 24% 0; border-top: 1px solid rgba(174,216,255,.15); border-bottom: 1px solid rgba(174,216,255,.15); }
    .cp-hero-court-scene .cp-court-ball { position: absolute; right: 14%; top: 180px; width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 30% 25%,#e9f5a4,#aac868); opacity: .65; box-shadow: 0 0 48px rgba(196,221,131,.18); animation: cp-court-ball-float 9s ease-in-out infinite; }
    .cp-hero-court-scene .cp-court-ball::after { content: ""; position: absolute; inset: 3px 9px; border-left: 2px solid rgba(255,255,255,.6); border-right: 2px solid rgba(255,255,255,.6); border-radius: 50%; transform: rotate(-35deg); }
    .cp-hero-court-scene .cp-court-grain { position: absolute; inset: 0; opacity: .15; background-image: radial-gradient(rgba(204,224,255,.4) .6px,transparent .6px); background-size: 22px 22px; mask-image: linear-gradient(90deg,transparent 30%,#000); }
    html:not(.pbpi-mobile-app) .cluster-home .cp-web-section-heading { display: block; padding: 24px 0; }
    html:not(.pbpi-mobile-app) .cp-web-section-heading > span { color: #476cb5; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
    html:not(.pbpi-mobile-app) .cp-web-section-heading h2 { font-size: 38px; line-height: 1.15; font-weight: 800; color: #10233f; letter-spacing: -.04em; margin: 14px 0; }
    html:not(.pbpi-mobile-app) .cp-web-section-heading p { color: #68768a; font-size: 15px; }
    html:not(.pbpi-mobile-app) .cluster-home .cp-pillar-card { background: #fff !important; border: 1px solid #e4eaf3 !important; border-radius: 24px !important; box-shadow: 0 12px 32px rgba(23,43,77,.06) !important; }
    html:not(.pbpi-mobile-app) .cluster-home #program.cp-pillar-card { border-top: 4px solid #476cb5 !important; }
    html:not(.pbpi-mobile-app) .cluster-home #turnamen.cp-pillar-card { border-top: 4px solid #c49c47 !important; }
    html:not(.pbpi-mobile-app) .cluster-home .cp-card-headline { color: #10233f !important; }
    html:not(.pbpi-mobile-app) .cluster-home .cp-card-subtext { color: #68768a !important; }
    html:not(.pbpi-mobile-app) .cluster-home .cp-cta-inner { background: radial-gradient(ellipse at 100% 0,#2d557e,transparent 60%),linear-gradient(135deg,#10233f,#183754) !important; border-radius: 28px !important; border: 1px solid #2d496b !important; }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
    html:not(.pbpi-mobile-app) .cp-hero-court-scene .cp-court-lines { right: -180px; opacity: .5; }
    html:not(.pbpi-mobile-app) .cp-hero-court-scene .cp-court-ball { right: 8%; top: 130px; width: 28px; height: 28px; }
}

@media (min-width: 768px) {
    html:not(.pbpi-mobile-app) header.public-header:is(.cp-header-scrolled, .is-scrolled, .scrolled-visible) { background: rgba(255,255,255,.96) !important; border: 1px solid #e4eaf3 !important; border-radius: 24px !important; box-shadow: 0 8px 28px rgba(4,14,36,.12) !important; }
    html:not(.pbpi-mobile-app) .cluster-home .cp-arc-section { margin-top: 0 !important; padding-top: 40px !important; background: #f4f6fa !important; }
}
