/* =====================================================================
   LikedWin — Fiyatlandırma Sayfası
   Panel içindeki app/services-list.php görünümünün public (üyeliksiz)
   karşılığı. Tablo/kategori/rozet stilleri oradan birebir uyarlandı;
   sayfa çerçevesi (header/footer) ana site tasarım sistemini kullanır.
   Gerektirir: assets/css/site.css (değişkenler + reset)
   ===================================================================== */

.pricing {
    background: var(--bg-soft, #f7f8fb);
    padding: 34px 0 60px;
}

.pricing__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Kategori Butonları ---------- */
.categories-section { margin-bottom: 34px; }

.categories-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    border: 2px solid var(--line-strong);
    border-radius: 12px;
    background: var(--surface);
    color: var(--muted);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    min-height: 80px;
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-btn.active {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.category-btn.tumu.active {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    border-color: transparent;
}

.category-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.category-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
}

.category-btn.active .category-icon { color: #ffffff; }

.category-name {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

/* ============================================================
   FİYAT LİSTESİ — Hizmet Tablosu (Refined Fintech)
   Satır içi renkler korunur:
     .service-category   -> kategori rengi inline
     .service-badge-pill -> rozet rengi inline
   Buradaki kurallar yalnızca düzen/gölge/tipografi tanımlar.
   ============================================================ */

.services-table-container {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 8px 8px 12px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04),
                0 12px 32px -12px rgba(16, 24, 40, 0.10);
    margin-bottom: 24px;
    overflow: hidden;
}

.services-table-container::before {
    content: "";
    position: absolute;
    top: -90px;
    right: -90px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle at center,
                rgba(118, 75, 162, 0.10) 0%,
                rgba(102, 126, 234, 0.06) 38%,
                rgba(102, 126, 234, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.services-table-container > * {
    position: relative;
    z-index: 1;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 4px;
    padding: 18px;
}

.table-title {
    position: relative;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 0;
    padding-left: 14px;
    color: #4c3a86;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.table-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    border-radius: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-text-fill-color: initial;
}

.services-count {
    display: inline-flex;
    align-items: center;
    color: #5b4bb0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(102, 126, 234, 0.10);
    border: 1px solid rgba(102, 126, 234, 0.18);
    white-space: nowrap;
}

.services-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 8px;
}

.services-table th {
    background: transparent;
    padding: 11px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.services-table th:last-child,
.services-table td:last-child { text-align: right; }

.services-table td {
    position: relative;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    color: var(--text);
    vertical-align: middle;
}

.services-table tbody tr:last-child td { border-bottom: 0; }

.services-table tbody tr { transition: background-color 0.18s ease; }
.services-table tbody tr td { transition: box-shadow 0.18s ease; }
/* Sabit #fafbfe koyu temada satırı BEYAZ yapıyordu; gömülü kutu tonu iki temada
   da zeminden bir adım ayrılır (açıkta #f7f8fb, koyuda #252a2f). */
.services-table tbody tr:hover { background-color: var(--surface-2); }

.services-table tbody tr:hover td:first-child {
    box-shadow: inset 4px 0 0 -1px rgba(118, 75, 162, 0.55);
}

.service-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.service-qty {
    font-size: 12px;
    color: var(--muted-2);
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

.service-category {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px 5px 9px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.005em;
    color: #ffffff;
    white-space: nowrap;
    text-shadow: 0 1px 1px rgba(16, 24, 40, 0.18);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.18),
                inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.service-category i {
    font-size: 12px;
    line-height: 1;
    opacity: 0.95;
}

.service-price {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 15px;
    color: var(--ok-fg);
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
    padding: 5px 11px;
    border-radius: 8px;
    background: rgba(5, 150, 105, 0.07);
    border: 1px solid rgba(5, 150, 105, 0.14);
    white-space: nowrap;
}

/* Aksiyon butonları (Bilgi + Satın Al) */
.action-btns {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    flex-shrink: 0;
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.action-btn--info {
    /* Sabit açık gri zemin + koyu ikon koyu temada ters düşüyordu (zemin parlak,
       ikon zeminle aynı tona düşüyor). İkisi de temaya bağlandı. */
    background: var(--line-strong);
    color: var(--muted);
    border: none;
    cursor: pointer;
    box-shadow: none;
}

.action-btn--buy {
    background: rgba(5, 150, 105, 0.10);
    border: 1px solid rgba(5, 150, 105, 0.22);
    color: var(--ok-fg);
}

.action-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.action-btn:active { transform: translateY(0); }

.action-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.service-badges {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: flex-start;
    gap: 6px;
    margin-top: 10px;
    max-width: 100%;
}

.service-badge-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 4px 9px;
    border-radius: 7px;
    border: 1px solid transparent;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
}

.services-empty {
    text-align: center;
    padding: 40px;
    color: var(--muted);
}

.services-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

/* ---------- Sayfalama ---------- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination a {
    background: var(--surface);
    color: var(--muted);
    border: 1px solid var(--line-strong);
}

.pagination a:hover {
    background: var(--surface-2);
    color: var(--text);
    border-color: #d1d5db;
}

.pagination .current {
    background: #1e293b;
    color: #ffffff;
    border: none;
}

.pagination .disabled {
    background: var(--surface-2);
    color: #9ca3af;
    border: 1px solid var(--line-strong);
    cursor: not-allowed;
}

/* ---------- Alt CTA (üyeliksiz ziyaretçi için) ---------- */
.pricing-cta {
    margin-top: 28px;
    padding: 26px 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 12px 32px -14px rgba(102, 126, 234, 0.7);
}

.pricing-cta__title {
    margin: 0 0 4px;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.pricing-cta__text {
    margin: 0;
    font-size: 14.5px;
    opacity: 0.92;
}

.pricing-cta__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pricing-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 700;
    transition: transform 0.16s ease, filter 0.16s ease;
}

.pricing-cta__btn--solid {
    background: var(--surface);
    color: #5b3fa0;
}

.pricing-cta__btn--ghost {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.pricing-cta__btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.pricing-note {
    margin: 18px 0 0;
    text-align: center;
    font-size: 13px;
    color: var(--muted, #6b7280);
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .categories-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 992px) {
    .categories-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   Mobil — kart görünümü (<= 768px)
   ============================================================ */
@media (max-width: 768px) {
    .pricing { padding: 22px 0 44px; }
    .pricing__inner { padding: 0 12px; }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .category-btn { padding: 12px 8px; min-height: 70px; }
    .category-name { font-size: 10px; }

    .services-table-container {
        padding: 14px;
        margin: 0 0 20px;
        border-radius: 18px;
    }
    .services-table-container::before {
        width: 200px;
        height: 200px;
        top: -70px;
        right: -70px;
    }

    .table-header {
        padding: 4px 4px 16px;
        margin-bottom: 16px;
        border-bottom: 1px solid var(--line);
    }
    .table-title { font-size: 17px; }

    .services-table {
        display: block;
        width: 100%;
        min-width: 0;
        border-collapse: separate;
        font-size: 0.9rem;
        margin-bottom: 0;
    }
    .services-table thead { display: none; }

    .services-table tbody {
        display: grid;
        gap: 14px;
    }

    .services-table tr {
        position: relative;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 12px;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: var(--surface);
        overflow: hidden;
        box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04),
                    0 10px 24px -14px rgba(16, 24, 40, 0.18);
        transition: box-shadow 0.18s ease, border-color 0.18s ease;
    }

    .services-table tr::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(180deg, #667eea, #764ba2);
    }

    .services-table tr:active {
        border-color: #e0e4ee;
        box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05),
                    0 14px 28px -14px rgba(16, 24, 40, 0.22);
    }

    .services-table td {
        display: block;
        width: 100%;
        padding: 0;
        border-bottom: 0;
        text-align: left;
    }
    .services-table td:last-child { text-align: left; }
    .services-table tbody tr:last-child td { border-bottom: 0; }
    .services-table tbody tr:hover td:first-child { box-shadow: none; }

    .service-name { font-size: 16px; line-height: 1.4; }
    .service-qty { font-size: 12.5px; }

    .service-category { max-width: 100%; align-self: start; }

    /* Fiyat + aksiyon butonları aynı satırda */
    .services-table td:nth-child(1),
    .services-table td:nth-child(2) { grid-column: 1 / -1; }

    .services-table td:nth-child(3) {
        grid-column: 1;
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0;
        padding: 14px 0 0;
        border-top: 1px solid var(--line);
    }
    .services-table td:nth-child(3)::before {
        content: 'Adet Fiyatı';
        color: var(--muted-2);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        flex-shrink: 0;
    }
    .service-price { font-size: 16px; }

    .services-table td:nth-child(4) {
        grid-column: 2;
        align-self: end;
        padding-top: 14px;
        border-top: 1px solid var(--line);
    }

    /* Boş durum satırı kart düzeninden muaf */
    .services-table tr.is-empty { display: block; grid-template-columns: none; }
    .services-table tr.is-empty::before { display: none; }

    .action-btns {
        width: auto;
        justify-content: flex-end;
        gap: 6px;
    }
    .action-btn {
        flex: 0 0 auto;
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 14px;
    }

    .pricing-cta { flex-direction: column; align-items: flex-start; }
    .pricing-cta__actions { width: 100%; }
    .pricing-cta__btn { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 480px) {
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   Hizmet bilgi modalı
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 9, 14, 0.62);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: min(430px, 100%);
    max-height: 74vh;
    overflow-y: auto;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    border: 1px solid #d5dae3;
    background: var(--surface);
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    border-color: #b8c0ce;
    color: var(--ink);
    background: var(--surface-2);
}

.modal-body {
    padding: 30px 16px 16px;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.modal-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    /* Marka rengi satır içi --ico-c ile gelir; koyu temada siyaha yakın markalar
       (X, Threads, App Store) daire içinde kayboluyordu — --ico-c-d okunur
       karşılığını taşır (bkz. lwCategoryColorOnDark). */
    color: var(--ico-c, var(--muted));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
:root[data-theme="dark"] .modal-icon { color: var(--ico-c-d, var(--ico-c, var(--muted))); }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .modal-icon { color: var(--ico-c-d, var(--ico-c, var(--muted))); }
}

.modal-heading {
    margin: 0;
    text-align: center;
    font-size: clamp(18px, 1.8vw, 24px);
    font-weight: 800;
    color: var(--ink);
}

.modal-note {
    width: 100%;
    margin: 0;
    padding: 12px;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    color: var(--text);
    line-height: 1.55;
    font-size: 13px;
}

.modal-meta-row {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.modal-meta-item {
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    padding: 12px 14px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.modal-meta-icon {
    color: #8b94a3;
    font-size: 22px;
    line-height: 1;
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}

.modal-meta-icon.is-currency { font-weight: 800; }

.modal-meta-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.modal-meta-label {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.modal-meta-value {
    display: block;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.modal-error {
    margin: 0;
    text-align: center;
    padding: 18px 10px;
    color: #dc2626;
}

.modal-ok {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.modal-ok:hover {
    background: var(--line);
    border-color: #d5dae3;
    color: var(--ink);
}

.modal-buy {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    padding: 11px 12px;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.modal-buy:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

/* ============================================================
   Erişilebilirlik: azaltılmış hareket
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .services-table tbody tr,
    .services-table tbody tr td,
    .services-table tr,
    .action-btn,
    .category-btn,
    .pricing-cta__btn {
        transition: none !important;
    }
    .action-btn:hover, .action-btn:active,
    .category-btn:hover,
    .pricing-cta__btn:hover { transform: none !important; }
}

/* Kategori çipi — yazı/ikon rengi temaya göre (bkz. --cat-fg).
   Marka rengi satır içi style ile geliyor; koyu temada okunmayanları
   burada nötrleştiriyoruz, kimlik kenarlıkta kalıyor. */
.category-btn:not(.active) .category-name,
.category-btn:not(.active) .category-icon i { color: var(--cat-fg); }
