/*
  OrvaPro Neo — Kategori sekmeleri (nxc namespace)
  bayigram-tarzı: Social Media + Lizenzen sekmeleri.
  Desktop: iki sütunlu panel (sol bilgi + istatistik, sağ platform grid 5×3=15).
  Mobil: kompakt grid, 9 kutucuk + "mehr anzeigen" toggle. Koyu hero-shell → metinler açık.
*/

.nxc {
    padding: clamp(2.4rem, 5vw, 4rem) 0 clamp(1.6rem, 3vw, 2.6rem);
}

.nxc__head {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto clamp(1.4rem, 3vw, 2rem);
}

.nxc__title {
    margin: 0 0 0.5rem;
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2.15rem);
    letter-spacing: -0.02em;
    line-height: 1.12;
    color: #fff;
}

.nxc__sub {
    margin: 0;
    font-size: clamp(0.9rem, 1.3vw, 1rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.6);
}

/* ---------- Segmented sekmeler ---------- */

.nxc__tabs {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    width: max-content;
    max-width: 100%;
    margin: 0 auto clamp(1.6rem, 3vw, 2.2rem);
    padding: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* kayan aktif gösterge (JS ile konumlanır) */
.nxc__tabs-glider {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 0;
    height: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orvix-neo-primary, #2563eb), color-mix(in srgb, var(--orvix-neo-primary, #2563eb) 70%, #1d4ed8));
    box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--orvix-neo-primary, #2563eb) 90%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform: translate(0, 0);
    transition: transform 0.42s cubic-bezier(0.34, 1.4, 0.5, 1), width 0.42s cubic-bezier(0.34, 1.4, 0.5, 1), height 0.42s ease;
    pointer-events: none;
}

.nxc__tab {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.62rem 1.5rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.62);
    font-weight: 700;
    font-size: clamp(0.84rem, 1.2vw, 0.94rem);
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nxc__tab > i {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.nxc__tab:hover {
    color: rgba(255, 255, 255, 0.9);
}

.nxc__tab.is-active {
    color: #fff;
}

.nxc__tab.is-active > i {
    transform: scale(1.08);
}

/* ---------- Paneller ---------- */

.nxc__panel[hidden] {
    display: none;
}

.nxc__panel {
    animation: nxcFade 0.35s ease both;
}

@keyframes nxcFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Board: sol bilgi + sağ grid ---------- */

.nxc-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(1.2rem, 2vw, 1.8rem);
    padding: clamp(1.6rem, 3vw, 2.6rem);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.075);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.nxc-board__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.95rem;
}

.nxc-board__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 1rem;
    font-size: 1.7rem;
    color: #fff;
    background: linear-gradient(145deg, var(--nxc-accent, #2563eb), color-mix(in srgb, var(--nxc-accent, #2563eb) 62%, #000));
    box-shadow: 0 14px 28px -12px color-mix(in srgb, var(--nxc-accent, #2563eb) 85%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.nxc-board__title {
    margin: 0;
    font-weight: 800;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.15;
    color: #fff;
}

.nxc-board__desc {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}

.nxc-board__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem 1.1rem;
    width: 100%;
    margin-top: 0.35rem;
}

.nxc-stat {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.65rem;
    align-items: center;
}

.nxc-stat > i {
    grid-row: 1 / 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.7rem;
    font-size: 1.15rem;
    color: var(--nxc-accent, #2563eb);
    background: color-mix(in srgb, var(--nxc-accent, #2563eb) 14%, transparent);
}

.nxc-stat__num {
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.1;
    color: #fff;
}

.nxc-stat__lbl {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.5);
}

.nxc-board__note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0.4rem 0 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
}

.nxc-board__note > i {
    color: #34d399;
    font-size: 1.05rem;
    flex: 0 0 auto;
    margin-top: 0.05rem;
}

.nxc-board__grid-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* ---------- Platform grid (sağ) ---------- */

.nxc__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.7rem;
}

.nxc__grid--lic {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

/* Platform kutucuğu: bayigram-tarzı dolu renk, ikon sol-üst, isim sol-alt */
.nxc-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 5.6rem;
    padding: 0.95rem 0.8rem;
    border-radius: 0.9rem;
    text-decoration: none;
    overflow: hidden;
    background: linear-gradient(150deg, var(--tone, #2563eb), color-mix(in srgb, var(--tone, #2563eb) 72%, #000));
    box-shadow: 0 10px 24px -16px color-mix(in srgb, var(--tone, #2563eb) 90%, transparent);
    transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.25s ease;
}

.nxc-tile:hover,
.nxc-tile:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 22px 40px -18px color-mix(in srgb, var(--tone, #2563eb) 95%, transparent);
}

.nxc-tile__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.65rem;
    color: #fff;
    font-size: 1.15rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.nxc-tile__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.05rem;
    min-width: 0;
    max-width: 100%;
}

.nxc-tile__name {
    font-weight: 700;
    font-size: 0.84rem;
    line-height: 1.2;
    color: #fff;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nxc-tile__sub {
    font-size: 0.69rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
}

/* Lisans kartı: koyu cam, ortalı, büyük gradient ikon (bayigram lisans grid) */
.nxc-tile--lic {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    min-height: 10.5rem;
    padding: 1.4rem 1rem;
    background: #0e1524;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* tematik blur arkaplan fotoğrafı */
.nxc-tile--lic::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--lic-bg, none);
    background-size: cover;
    background-position: center;
    filter: blur(3px);
    transform: scale(1.14);
    opacity: 0.42;
    transition: opacity 0.3s ease;
}

/* okunabilirlik: koyu gradient + platform-renk ipucu */
.nxc-tile--lic::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--tone, #2563eb) 24%, transparent) 0%, transparent 62%),
        linear-gradient(180deg, rgba(9, 14, 24, 0.48) 0%, rgba(9, 14, 24, 0.84) 100%);
}

.nxc-tile--lic > * {
    position: relative;
    z-index: 2;
}

.nxc-tile--lic:hover,
.nxc-tile--lic:focus-visible {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--tone, #2563eb) 55%, transparent);
    box-shadow: 0 22px 42px -20px color-mix(in srgb, var(--tone, #2563eb) 88%, transparent);
}

.nxc-tile--lic:hover::before,
.nxc-tile--lic:focus-visible::before {
    opacity: 0.62;
}

.nxc-tile--lic .nxc-tile__icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    border: 0;
    font-size: 1.75rem;
    background: linear-gradient(145deg, var(--tone, #2563eb), color-mix(in srgb, var(--tone, #2563eb) 60%, #000));
    box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--tone, #2563eb) 85%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.nxc-tile--lic .nxc-tile__text {
    align-items: center;
    text-align: center;
    gap: 0.2rem;
}

.nxc-tile--lic .nxc-tile__name {
    font-size: 1.02rem;
    white-space: normal;
    overflow: visible;
    line-height: 1.22;
}

.nxc-tile--lic .nxc-tile__sub {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}

/* ---------- Alt aksiyonlar (toggle + tümü) ---------- */

.nxc__actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-top: clamp(1.2rem, 2.2vw, 1.6rem);
}

.nxc__toggle {
    display: none;
    align-items: center;
    gap: 0.4rem;
    padding: 0.72rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.nxc__toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nxc__toggle > i {
    transition: transform 0.25s ease;
}

.nxc__toggle.is-open > i {
    transform: rotate(180deg);
}

.nxc__more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.72rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    color: #fff;
    background: color-mix(in srgb, var(--orvix-neo-primary, #2563eb) 92%, transparent);
    box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--orvix-neo-primary, #2563eb) 90%, transparent);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nxc__more:hover,
.nxc__more:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -14px color-mix(in srgb, var(--orvix-neo-primary, #2563eb) 95%, transparent);
}

.nxc__more > i {
    transition: transform 0.2s ease;
}

.nxc__more:hover > i {
    transform: translateX(3px);
}

/* ---------- Responsive ---------- */

/* Orta: 4 sütun platform */
@media (max-width: 1199.98px) {
    .nxc__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet ve altı: tek kolon board, bilgi paneli gizli */
@media (max-width: 991.98px) {
    .nxc-board {
        grid-template-columns: 1fr;
        padding: clamp(1rem, 3vw, 1.4rem);
    }

    .nxc-board__info {
        display: none;
    }

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

/* Mobil: 9 kutucuk + toggle */
@media (max-width: 767.98px) {
    .nxc__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }

    .nxc__grid--lic {
        grid-template-columns: 1fr;
    }

    .nxc-tile {
        min-height: 6.2rem;
        gap: 0.8rem;
        padding: 0.8rem;
    }

    .nxc-tile__icon {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1.2rem;
    }

    .nxc-tile__name {
        font-size: 0.84rem;
    }

    .nxc-tile--lic {
        min-height: 8.5rem;
    }

    /* Social panelde ilk 9'u göster, kalanı toggle ile aç */
    .nxc__panel[data-nxc-panel="social"] .nxc-tile:nth-child(n + 10) {
        display: none;
    }

    .nxc__panel[data-nxc-panel="social"].is-expanded .nxc-tile:nth-child(n + 10) {
        display: flex;
        animation: nxcReveal 0.4s ease both;
    }

    .nxc__toggle {
        display: inline-flex;
    }

    /* mobilde social'da toggle var → "Alle Plattformen" gizli; lisansta buton görünür */
    .nxc__panel[data-nxc-panel="social"] .nxc__more {
        display: none;
    }
}

@keyframes nxcReveal {
    from { opacity: 0; transform: translateY(-6px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .nxc__panel,
    .nxc-tile,
    .nxc-tile--lic,
    .nxc__tabs-glider {
        animation: none;
        transition: none;
    }
}

/* ---------- TikTok nötr marka (mor DEĞİL, tema'ya göre siyah/beyaz) ---------- */
html[data-bs-theme="dark"] .nxc-tile--neutral {
    background: linear-gradient(150deg, #fbfbfb, #dcdce0) !important;
}
html[data-bs-theme="dark"] .nxc-tile--neutral::before {
    background: radial-gradient(70% 60% at 50% -8%, rgba(0, 0, 0, 0.14) 0%, transparent 68%) !important;
}
html[data-bs-theme="dark"] .nxc-tile--neutral .nxc-tile__icon {
    background: #111214 !important;
    color: #fff !important;
    box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}
html[data-bs-theme="dark"] .nxc-tile--neutral .nxc-tile__name { color: #111214 !important; }
html[data-bs-theme="dark"] .nxc-tile--neutral .nxc-tile__sub { color: rgba(17, 18, 20, 0.6) !important; }
html[data-bs-theme="dark"] .nxc-tile--neutral:hover {
    box-shadow: 0 24px 46px -22px rgba(0, 0, 0, 0.6) !important;
    border-color: rgba(120, 120, 130, 0.45) !important;
}

html[data-bs-theme="light"] .nxc-tile--neutral {
    background: linear-gradient(150deg, #26262b, #060608) !important;
}
html[data-bs-theme="light"] .nxc-tile--neutral::before {
    background: radial-gradient(70% 60% at 50% -8%, rgba(255, 255, 255, 0.16) 0%, transparent 68%) !important;
}
html[data-bs-theme="light"] .nxc-tile--neutral .nxc-tile__icon {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
}
html[data-bs-theme="light"] .nxc-tile--neutral .nxc-tile__name { color: #fff !important; }
html[data-bs-theme="light"] .nxc-tile--neutral .nxc-tile__sub { color: rgba(255, 255, 255, 0.7) !important; }
html[data-bs-theme="light"] .nxc-tile--neutral:hover {
    box-shadow: 0 24px 46px -22px rgba(0, 0, 0, 0.7) !important;
    border-color: rgba(120, 120, 130, 0.45) !important;
}
