/*
Theme Name: APS Cazinouri
Description: Temă custom pentru AparatePacaneleSlots.ro — comparator de cazinouri online. Sistem de design propriu, construit pentru densitate de informație (licențe, plăți, oferte) fără să pară un kit SaaS reciclat.
Author: Rankest
Version: 2.0.0
Text Domain: aps-cazinouri
*/

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Culoare de bază */
    --bg:            #0A0612;
    --bg-raised:     #150D24;
    --bg-footer:     #0D0819;
    --line:          #241736;

    /* Accente cu sens (nu decor) */
    --magenta:       #E31C79;
    --magenta-dim:   rgba(227, 28, 121, .35);
    --gold:          #F5B942;
    --gold-dim:      rgba(245, 185, 66, .35);
    --green:         #34C77B;
    --red:           #E85C5C;

    /* Text */
    --ink:           #F5F3F8;
    --ink-soft:      #B7AECB;
    --ink-faint:     #756A8C;

    /* Tipografie */
    --f-display: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    --f-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-s: 8px;
    --radius-m: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--f-display);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 .5em;
    color: var(--ink);
}
h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }

p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

.aps-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px;
}
.aps-container--wide { max-width: 1180px; }

/* ============ Header ============ */
.aps-header {
    background: var(--bg-footer);
    border-bottom: 1px solid var(--line);
}
.aps-header__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.aps-logo {
    font-family: var(--f-display);
    font-weight: 800;
    font-size: 20px;
    color: var(--gold);
}
.aps-nav__list {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}
.aps-nav__list a { color: var(--ink-soft); font-weight: 500; font-size: 15px; }
.aps-nav__list a:hover { color: var(--gold); }

/* ============ Butoane ============ */
.aps-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--gold);
    color: #1A1420;
    font-family: var(--f-body);
    font-weight: 700;
    font-size: 15px;
    padding: 13px 26px;
    border-radius: var(--radius-s);
    border: none;
    cursor: pointer;
    transition: transform .15s ease;
    white-space: nowrap;
}
.aps-btn:hover { transform: translateY(-1px); }
.aps-btn--outline {
    background: transparent;
    border: 1.5px solid var(--magenta);
    color: var(--ink);
}

/* ============ Structură: bară de accent pe stânga, nu box complet ============ */
.aps-section {
    border-left: 3px solid var(--line);
    padding: 8px 0 8px 24px;
    margin-bottom: 40px;
}
.aps-section--magenta { border-left-color: var(--magenta); }
.aps-section--gold    { border-left-color: var(--gold); }

.aps-license-note {
    font-size: 12.5px;
    color: var(--ink-faint);
    margin: 6px 0 0;
    letter-spacing: .01em;
}

/* ============ Bară subțire sus (topbar) ============ */
.aps-review { padding: 36px 0 60px; }

.aps-topbar {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(180deg, #1C1130 0%, #150D24 100%);
    border: 1.5px solid var(--gold);
    border-radius: 16px;
    padding: 16px 26px;
    margin-bottom: 28px;
    box-shadow: 0 8px 0 -4px rgba(0,0,0,.3), 0 16px 28px -10px rgba(0,0,0,.5);
    flex-wrap: wrap;
}

.aps-topbar__logo {
    background: #fff;
    border-radius: 10px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.aps-topbar__logo img { max-width: 90px; max-height: 32px; object-fit: contain; }

.aps-topbar__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}
.aps-topbar__score {
    font-family: var(--f-display);
    font-weight: 800;
    font-size: 20px;
    color: var(--gold);
}

.aps-topbar__offer {
    flex: 1 1 260px;
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 17px;
    color: var(--ink);
}
.aps-topbar__offer p { margin: 0; }

@media (max-width: 700px) {
    .aps-topbar { flex-direction: column; align-items: flex-start; text-align: left; }
    .aps-topbar .aps-btn { align-self: stretch; text-align: center; }
}

/* ============ Content box mare ============ */
.aps-content-box {
    background: var(--bg-raised);
    border: 1px solid var(--gold-dim);
    border-radius: 20px;
    padding: 36px 40px 44px;
    box-shadow: 0 10px 0 -4px rgba(0,0,0,.3), 0 20px 34px -12px rgba(0,0,0,.5);
}
@media (max-width: 640px) {
    .aps-content-box { padding: 26px 20px 32px; }
}

/* ============ Carduri ofertă — stil "produs" ============ */
.aps-offer-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 28px 0 36px;
}
.aps-offer-card {
    background: var(--bg);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.aps-offer-card--nodep { border: 1.5px solid var(--magenta); }
.aps-offer-card--dep   { border: 1.5px solid var(--gold); }

.aps-offer-card__label {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 3px 12px;
    border-radius: 20px;
}
.aps-offer-card--nodep .aps-offer-card__label { background: var(--magenta-dim); color: #ff5fa8; }
.aps-offer-card--dep .aps-offer-card__label   { background: var(--gold-dim); color: var(--gold); }

.aps-offer-card__bonus {
    font-family: var(--f-display);
    font-weight: 800;
    font-size: 19px;
    color: var(--ink);
    line-height: 1.3;
}
.aps-offer-card__bonus p { margin: 0; }

@media (max-width: 600px) {
    .aps-offer-cards { grid-template-columns: 1fr; }
}

/* ============ Articolul lung (the_content) — tipografie ============ */
.aps-prose--article h2 {
    font-size: 22px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold-dim);
    margin: 42px 0 16px;
}
.aps-prose--article h2:first-child { margin-top: 0; }
.aps-prose--article h3 { color: var(--gold); margin: 26px 0 10px; }
.aps-prose--article p, .aps-prose--article li { color: var(--ink-soft); font-size: 15px; }
.aps-prose--article strong { color: var(--ink); }
.aps-prose--article ul, .aps-prose--article ol { padding-left: 22px; }
.aps-prose--article table { margin: 16px 0; font-size: 14px; }
.aps-prose--article table th {
    text-align: left; font-family: var(--f-display); font-size: 12px;
    text-transform: uppercase; color: var(--ink-faint);
    padding: 0 10px 8px; border-bottom: 1px solid var(--line);
}
.aps-prose--article table td { padding: 10px; border-bottom: 1px solid var(--line); }
.aps-prose--article hr { border: none; border-top: 1px solid var(--line); margin: 36px 0; }

/* Avantaje / dezavantaje — clase reutilizabile în content HTML */
.aps-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; }
.aps-pros-cons__box { background: var(--bg); border-radius: 14px; padding: 20px; }
.aps-pros-cons__box ul { list-style: none; margin: 10px 0 0; padding: 0; }
.aps-pros-cons__box li { display: flex; gap: 10px; padding: 6px 0; font-size: 14.5px; color: var(--ink-soft); }
@media (max-width: 600px) { .aps-pros-cons { grid-template-columns: 1fr; } }

/* Pași numerotați — reutilizabil în content HTML */
.aps-steps { list-style: none; margin: 16px 0; padding: 0; counter-reset: aps-step; }
.aps-steps li {
    counter-increment: aps-step; display: flex; gap: 14px;
    padding: 10px 0; border-bottom: 1px solid var(--line);
}
.aps-steps li:last-child { border-bottom: none; }
.aps-steps li::before {
    content: counter(aps-step); flex: 0 0 26px; height: 26px; border-radius: 50%;
    background: var(--magenta); color: #fff; font-family: var(--f-display);
    font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center;
}

/* FAQ accordion — reutilizabil în content HTML */
.aps-faq__item { border-bottom: 1px solid var(--line); padding: 14px 0; }
.aps-faq__item summary {
    cursor: pointer; font-family: var(--f-display); font-weight: 600; font-size: 15px;
    list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.aps-faq__item summary::-webkit-details-marker { display: none; }
.aps-faq__item summary::after { content: '+'; font-size: 18px; color: var(--gold); margin-left: 14px; }
.aps-faq__item[open] summary::after { content: '−'; }
.aps-faq__item p { margin-top: 10px; }

/* ============ Înregistrare — pași numerotați (secvență reală) ============ */
.aps-steps { list-style: none; margin: 20px 0; padding: 0; counter-reset: aps-step; }
.aps-steps li {
    counter-increment: aps-step;
    display: flex;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.aps-steps li:last-child { border-bottom: none; }
.aps-steps li::before {
    content: counter(aps-step);
    flex: 0 0 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--magenta);
    color: #fff;
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aps-screenshot {
    border-radius: var(--radius-m);
    border: 1px solid var(--line);
    margin-top: 20px;
    max-width: 360px;
}

/* ============ Tabel metode de plată ============ */
.aps-table {
    width: 100%;
    font-size: 14px;
}
.aps-table th {
    text-align: left;
    font-family: var(--f-display);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ink-faint);
    padding: 0 12px 10px;
    border-bottom: 1px solid var(--line);
}
.aps-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
}
.aps-table tr:last-child td { border-bottom: none; }
.aps-table td:first-child { color: var(--ink); font-weight: 600; }

/* ============ Avantaje / Dezavantaje ============ */
.aps-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.aps-pros-cons__box {
    background: var(--bg-raised);
    border-radius: var(--radius-m);
    padding: 22px;
}
.aps-pros-cons__box ul { list-style: none; margin: 14px 0 0; padding: 0; }
.aps-pros-cons__box li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 14.5px;
    color: var(--ink-soft);
}
.aps-icon-dot {
    flex: 0 0 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    margin-top: 2px;
}
.aps-icon-dot--yes { background: var(--green); }
.aps-icon-dot--no  { background: var(--red); }

@media (max-width: 640px) {
    .aps-pros-cons { grid-template-columns: 1fr; }
}

/* ============ FAQ (accordion nativ, fără JS) ============ */
.aps-faq__item {
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
}
.aps-faq__item summary {
    cursor: pointer;
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 15.5px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.aps-faq__item summary::-webkit-details-marker { display: none; }
.aps-faq__item summary::after {
    content: '+';
    font-size: 20px;
    color: var(--gold);
    flex-shrink: 0;
    margin-left: 16px;
}
.aps-faq__item[open] summary::after { content: '−'; }
.aps-faq__item .aps-prose { margin-top: 12px; }

/* ============ Footer — box separat, fundal distinct ============ */
.aps-footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--line);
    margin-top: 48px;
    padding: 44px 0 0;
}
.aps-footer__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px 28px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 32px;
}
.aps-footer__col h4 {
    font-family: var(--f-display);
    color: var(--gold);
    margin: 0 0 10px;
    font-size: 13px;
}
.aps-footer__list { list-style: none; margin: 0; padding: 0; }
.aps-footer__list li { margin-bottom: 6px; }
.aps-footer__list a { color: var(--ink-soft); }
.aps-footer__list a:hover { color: var(--gold); }

.aps-text-muted { color: var(--ink-faint); }
.aps-small { font-size: 12.5px; }

.aps-footer__bottom {
    border-top: 1px solid var(--line);
    padding: 16px 20px;
    text-align: center;
    background: #070310;
}

@media (max-width: 800px) {
    .aps-footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .aps-container { padding: 0 16px; }
}

/* ============ Metode de plată — box delimitat, banner + iconițe ============ */
.aps-payment-block {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px 24px 8px;
    margin: 20px 0;
}
.aps-payment-banner {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
    display: block;
}
.aps-prose--article .aps-payment-block table { margin: 0; }

.aps-method-name {
    display: flex;
    align-items: center;
    gap: 10px;
}
.aps-method-name img {
    width: 26px;
    height: 18px;
    object-fit: contain;
    background: #fff;
    border-radius: 3px;
    padding: 2px;
    flex-shrink: 0;
}
