/* ============================================================
   AsCAR Regiunea Vest · Hub Operațional
   Temă luminoasă, caldă, comună pentru index, suport și gdpr
   ============================================================ */

:root {
    --bg: #FBF7F1;          /* crem cald */
    --surface: #FFFFFF;
    --ink: #1F2933;         /* text principal */
    --muted: #5F6B7A;       /* text secundar */
    --soft: #8A94A3;
    --line: #ECE5DA;
    --line-strong: #DCD3C5;
    --brand: #1E9AD6;       /* albastrul din logo */
    --brand-dark: #13729F;
    --accent: var(--brand);
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    background-image:
        radial-gradient(1000px 520px at 15% -10%, rgba(30, 154, 214, 0.13), transparent 60%),
        radial-gradient(800px 480px at 95% 0%, rgba(255, 196, 120, 0.18), transparent 60%);
    background-repeat: no-repeat;
    color: var(--ink);
}

.font-display { font-family: "Fraunces", Georgia, serif; font-optical-sizing: auto; }

/* ---------- Navigare ---------- */
.site-nav {
    background: rgba(251, 247, 241, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav-btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 700;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 8px 16px;
    transition: border-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.nav-btn:hover { border-color: var(--brand); color: var(--brand-dark); box-shadow: 0 4px 14px -6px rgba(30,154,214,.45); }
.nav-btn i { color: var(--brand); }

/* ---------- Titluri de secțiune ---------- */
.section-title {
    display: flex; align-items: baseline; gap: 14px;
    font-family: "Fraunces", Georgia, serif;
    font-size: 24px; font-weight: 600;
    color: var(--ink);
}
.section-title small {
    font-family: "Nunito Sans", sans-serif;
    font-size: 14px; font-weight: 600; color: var(--soft);
}

/* ---------- Panou generic ---------- */
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 1px 2px rgba(31,41,51,.04), 0 12px 32px -18px rgba(31,41,51,.18);
}
a.panel { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
a.panel:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 1px 2px rgba(31,41,51,.05), 0 22px 40px -20px rgba(31,41,51,.28); }

/* Plăcuță icon colorată (pastel) */
.icon-tile {
    width: 56px; height: 56px;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--accent) 12%, white);
    color: var(--accent);
    flex-shrink: 0;
}

/* Rând de status */
.row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 18px;
    border-radius: 16px;
    background: #FCFAF6;
    border: 1px solid var(--line);
}
.pill {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 700;
    padding: 5px 12px; border-radius: 999px;
    white-space: nowrap;
}
.pill-ok   { color: #15803D; background: #E7F6EC; }
.pill-warn { color: #B45309; background: #FDF1DC; }
.pill .dot { width: 7px; height: 7px; border-radius: 999px; background: currentColor; }

/* ---------- Carduri aplicații ---------- */
.app-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 1.75rem;
    box-shadow: 0 1px 2px rgba(31,41,51,.04), 0 12px 32px -18px rgba(31,41,51,.18);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    color: inherit;
    text-decoration: none;
}
.app-card:hover, .app-card:focus-visible {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
    box-shadow: 0 1px 2px rgba(31,41,51,.05), 0 26px 44px -22px color-mix(in srgb, var(--accent) 45%, rgba(31,41,51,.3));
    outline: none;
}
.app-card:focus-visible { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }

.app-card h3 { font-family: "Fraunces", Georgia, serif; font-size: 21px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.app-card .desc { font-size: 15px; line-height: 1.65; color: var(--muted); }

.app-card.is-soon { cursor: default; background: #FCFAF6; border-style: dashed; box-shadow: none; }
.app-card.is-soon:hover { transform: none; box-shadow: none; border-color: var(--line-strong); }

.favicon-tile {
    width: 56px; height: 56px;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--accent) 12%, white);
    flex-shrink: 0;
    overflow: hidden;
}
.favicon-tile img { width: 34px; height: 34px; object-fit: contain; display: block; }
.favicon-tile.is-full img { width: 56px; height: 56px; }
.favicon-tile i { color: var(--accent); font-size: 22px; }

.domain {
    font-size: 13px; font-weight: 600;
    color: var(--soft);
    display: inline-flex; align-items: center; gap: 6px;
    white-space: nowrap;
}

.tag {
    font-size: 12.5px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 12%, white);
    color: color-mix(in srgb, var(--accent) 70%, #1F2933);
}

.soon-badge {
    font-size: 12px; font-weight: 800;
    color: #B45309; background: #FDF1DC;
    border-radius: 999px; padding: 3px 10px;
}

.open-btn {
    margin-top: auto;
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
    font-size: 15px;
    font-weight: 800;
    color: color-mix(in srgb, var(--accent) 75%, #1F2933);
}
.open-btn .arrow {
    width: 38px; height: 38px;
    border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--accent) 12%, white);
    color: var(--accent);
    transition: all .25s ease;
}
.app-card:hover .open-btn .arrow {
    background: var(--accent);
    color: #fff;
    transform: translateX(3px);
}
.app-card.is-soon .open-btn { color: var(--soft); }
.app-card.is-soon .open-btn .arrow { background: #F1ECE4; color: var(--soft); }

/* ---------- Bandă „Ai nevoie de ajutor?” ---------- */
.help-band {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
    background: linear-gradient(120deg, #E8F5FC 0%, #FFF3E2 100%);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 28px 32px;
}
.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--brand); color: #fff;
    font-weight: 800; font-size: 15px;
    padding: 12px 22px; border-radius: 999px;
    box-shadow: 0 10px 22px -10px rgba(30,154,214,.7);
    transition: background .2s ease, transform .2s ease;
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }

/* ---------- FAQ (suport) ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; gap: 14px;
    padding: 18px 0;
    font-weight: 700; font-size: 16px; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q-icon {
    width: 36px; height: 36px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--accent) 12%, white); color: var(--accent); font-size: 14px;
}
.faq-item summary .chev { margin-left: auto; color: var(--soft); transition: transform .2s ease; }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item p { font-size: 15px; line-height: 1.7; color: var(--muted); padding: 0 0 18px 50px; }

/* ---------- Text legal (gdpr) ---------- */
.legal h2 { display: flex; align-items: center; gap: 12px; font-family: "Fraunces", Georgia, serif; font-size: 21px; font-weight: 600; color: var(--ink); margin-bottom: .75rem; }
.legal h2 .num {
    width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--accent) 12%, white); color: var(--accent);
    font-family: "Nunito Sans", sans-serif; font-size: 14px; font-weight: 800;
}
.legal p  { font-size: 15.5px; line-height: 1.75; color: var(--muted); }
.legal ul { list-style: none; padding: 0; margin-top: .75rem; display: grid; gap: 8px; }
.legal ul li { position: relative; padding-left: 22px; font-size: 15px; color: var(--muted); }
.legal ul li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px; border-radius: 999px; background: var(--accent); }
.right-box { background: #FCFAF6; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.right-box h3 { font-weight: 800; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.right-box p  { font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #F6F1E9; }
.site-footer a { color: var(--muted); font-weight: 600; transition: color .2s ease; }
.site-footer a:hover, .site-footer a.is-current { color: var(--brand-dark); }

@media (prefers-reduced-motion: reduce) {
    .app-card, .open-btn .arrow, a.panel, .btn-primary { transition: none; }
    .app-card:hover, a.panel:hover { transform: none; }
}
