/*
 | Default theme, page structure: reset, header, hero, casino list, footer.
 | Themes that bring their own page structure (e.g. regii) skip this file and keep components.css.
 */
*, *::before, *::after { box-sizing: border-box; }
html { font-family: var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.55;
    overflow-x: hidden;
}
body.bg-pattern { background-size: auto; background-repeat: repeat; background-attachment: scroll; }
body.bg-none { background-image: none !important; }
body.modal-open { overflow: hidden; }
img { max-width: 100%; }
a { color: var(--accent-hover); }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 0.5em; }

.page-content { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; position: relative; }

/* ===== HEADER ===== */
/* Sticky bar: logo and menu on the left, actions on the right. */
.site-header {
    position: sticky; top: 0; z-index: 30;
    background: linear-gradient(135deg, color-mix(in srgb, var(--header-from) 94%, transparent), color-mix(in srgb, var(--header-to) 94%, transparent));
    -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 8px 28px rgba(2, 6, 23, .22);
}
.site-header::after { content: ""; position: absolute; inset: auto 0 -1px; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold) 55%, transparent), transparent); pointer-events: none; }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.site-logo { display: inline-flex; align-items: center; flex-shrink: 0; color: #fff; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; text-decoration: none; transition: opacity .15s ease; }
.site-logo:hover { opacity: .9; }
.site-logo img { height: 48px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: flex-start; flex-wrap: wrap; min-width: 0;
    padding-left: 28px; border-left: 1px solid rgba(255,255,255,.12); }
.site-nav a { position: relative; display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.78); text-decoration: none; font-weight: 600; font-size: .92rem;
    padding: 9px 14px; border-radius: 10px; transition: background .15s ease, color .15s ease; }
.site-nav a i { font-size: .9em; opacity: .9; }
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.site-nav a.is-active { color: #fff; background: rgba(255,255,255,.12); }
.site-nav a.is-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -14px; height: 2px; border-radius: 2px; background: var(--gold); }
.site-nav .nav-giveaway { color: var(--gold); }
.site-nav .nav-giveaway:hover, .site-nav .nav-giveaway.is-active { color: #ffd34d; background: color-mix(in srgb, var(--gold) 14%, transparent); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.header-button {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px;
    color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18);
    font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; text-decoration: none;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.header-button:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); }
.header-button-account { background: linear-gradient(180deg, var(--button-light), var(--button)); border-color: transparent; box-shadow: 0 6px 16px var(--button-shadow); }
.header-button-account:hover { background: linear-gradient(180deg, var(--button-light), var(--button)); filter: brightness(1.06); }
.header-burger { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,.22); background: transparent; color: #fff; font-size: 1rem; cursor: pointer; }


/* ===== HERO ===== */
.hero { padding: 36px 0 12px; }
/* No extra inset: the title lines up with the logo and the casino cards (the container already pads). */
.hero-inner { padding: 0; }
.hero-title { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px; }
.hero-subtitle { color: var(--muted); font-size: 1.1rem; margin: 0 0 12px; }
.hero-content { margin-top: 12px; }
body.hero-centered .hero-inner { text-align: center; max-width: 820px; margin: 0 auto; }
body.hero-centered .module-links { justify-content: center; }
body.hero-compact .hero { padding: 16px 0 4px; }
body.hero-compact .hero-title { font-size: clamp(1.3rem, 1rem + 1.2vw, 1.8rem); }
body.hero-compact .hero-subtitle { font-size: .95rem; }
.module-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }


/* ===== CASINOS ===== */
.casinos { display: flex; flex-direction: column; gap: 16px; margin-top: 12px; }
.casino {
    position: relative; display: flex; align-items: center; gap: 16px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
    padding: 26px 20px 18px; animation: intro .35s ease-out backwards;
    transition: transform .2s ease, box-shadow .2s ease;
}
@media (hover: hover) {
    .casino:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
    .casino:hover .casino-image img { transform: scale(1.03); }
}
/* Rank: a tab in the card's top-left corner (inside the card), gold / silver / bronze for the podium. */
.casino-rank {
    position: absolute; top: 0; left: 0; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-width: 36px; height: 28px; padding: 0 12px; border-radius: var(--radius) 0 12px 0;
    font-size: .82rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums;
    color: #fff; background: linear-gradient(135deg, #475569, #1e293b); box-shadow: 0 4px 10px rgba(15,23,42,.16);
}
.casino-rank i { font-size: .8rem; }
.casino-rank-gold { color: #3b2600; background: linear-gradient(135deg, #fff3c4 0%, #fcd34d 35%, #f5b301 65%, #c98a00 100%); box-shadow: 0 4px 14px rgba(245,179,1,.35), inset 0 1px 0 rgba(255,255,255,.75); }
.casino-rank-silver { color: #1e293b; background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 40%, #b6c2d1 75%, #8a99ad 100%); box-shadow: 0 4px 12px rgba(100,116,139,.3), inset 0 1px 0 rgba(255,255,255,.9); }
.casino-rank-bronze { color: #fff; background: linear-gradient(135deg, #f6c89f 0%, #e08b4f 40%, #b8612a 75%, #8a4318 100%); box-shadow: 0 4px 12px rgba(184,97,42,.3), inset 0 1px 0 rgba(255,255,255,.45); text-shadow: 0 1px 1px rgba(0,0,0,.25); }
.casino-gold { border-color: color-mix(in srgb, var(--gold) 50%, transparent); box-shadow: 0 8px 24px rgba(245,179,1,.14); }
.casino-left { flex: 1; display: flex; align-items: center; gap: 16px; min-width: 0; }
.casino-image { width: 180px; height: 80px; display: flex; align-items: center; padding: 8px; flex-shrink: 0; border-radius: var(--radius-sm); overflow: hidden; }
.casino-image img { width: 100%; transition: transform .25s ease; }
.casino-description { flex: 1; min-width: 0; }
.casino-highlight { color: var(--highlight); font-weight: 800; font-size: 1.1rem; }
.casino-title { font-size: 1rem; font-weight: 700; margin: 0 0 4px; }
.casino-subtitle { font-size: .875rem; color: var(--muted); }
.casino-meta { display: flex; align-items: center; gap: 16px; flex: 1; }
.casino-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.casino-features li { display: flex; align-items: center; gap: 6px; font-size: .875rem; color: var(--text-soft); }
.casino-features i { color: var(--cta); }
.casino-rating-label { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.casino-stars { color: var(--gold); font-size: 18px; display: flex; gap: 2px; }
.casino-right { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.casino-visit { color: var(--muted); font-size: .85rem; font-weight: 500; text-decoration: none; display: flex; align-items: center; gap: 5px; }
.casino-visit:hover { color: var(--text); text-decoration: underline; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.trust-item { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow-sm); padding: 10px 18px; font-weight: 600; color: var(--text-soft); font-size: .95rem; }
.trust-item i { color: var(--accent); }
.best { padding: 16px; border-radius: 20px; background: radial-gradient(120% 140% at 0% 0%, rgba(255,255,255,.14), transparent 55%), linear-gradient(135deg, var(--highlight), var(--highlight-dark)); box-shadow: 0 18px 40px rgba(159,18,57,.25); margin: 8px 0 32px; }
.best > h2 { color: #fff; text-align: center; text-transform: uppercase; font-weight: 800; font-size: 1.2rem; margin: 10px 10px 16px; }
.best .casino { margin: 0; }


/* ===== FOOTER ===== */
.site-footer { position: relative; margin-top: 48px; color: rgba(255,255,255,.7); background: radial-gradient(80% 120% at 0% 0%, rgba(255,255,255,.06), transparent 60%), var(--footer-bg); font-size: .925rem; line-height: 1.7; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--accent), var(--gold), var(--highlight)); }
.footer-inner { padding-top: 56px; padding-bottom: 24px; }
/* A page ending in a full-width stage (gift, empty giveaway / ticket, ticket without analysis or
   archive): the stage runs down to the footer, no bare background in between. */
body.page-gifts main, main:has(> .gw-hero:last-child) { display: flex; flex-direction: column; }
body.page-gifts .gifts-section, main > .gw-hero:last-child { flex: 1; }
body.page-gifts .site-footer, main:has(> .gw-hero:last-child) + .site-footer { margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; }
.footer-logo { display: inline-block; color: #fff; font-size: 1.4rem; font-weight: 800; text-decoration: none; }
.footer-logo img { display: block; width: 170px; height: auto; }
.footer-about { margin: 16px 0 0; max-width: 520px; color: rgba(255,255,255,.6); }
.footer-about strong { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; text-decoration: none; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); transition: background .15s ease, transform .15s ease; }
.footer-social a:hover { background: var(--accent); border-color: transparent; transform: translateY(-2px); }
.footer-column h4 { margin: 6px 0 16px; color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.footer-column ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-column a { color: rgba(255,255,255,.7); text-decoration: none; transition: color .15s ease; }
.footer-column a:hover { color: #fff; }
.footer-mail { display: inline-flex; align-items: center; gap: 10px; color: #fff !important; font-weight: 500; overflow-wrap: anywhere; }
.footer-mail i { color: var(--accent-light); }
.footer-note { margin: 10px 0 0; font-size: .85rem; color: rgba(255,255,255,.5); }
.footer-responsible { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 44px; padding: 18px 24px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.footer-responsible-title { color: #fff; font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-badges { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-badges a, .footer-adult { display: flex; align-items: center; gap: 6px; opacity: .75; color: #fff; text-decoration: none; font-size: .78rem; font-weight: 600; transition: opacity .15s ease; }
.footer-badges a:hover { opacity: 1; }
.footer-badges img { height: 22px; width: auto; }
.footer-badges .footer-onjn { height: 26px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.2); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 16px; font-size: .825rem; color: rgba(255,255,255,.45); }


/* ===== RESPONSIVE (structure) ===== */
@media (max-width: 1024px) {
    .casino { flex-direction: column; align-items: stretch; padding: 24px 16px 18px; }
    .casino-left { flex-direction: column; text-align: center; }
    .casino-description { text-align: center; }
    .casino-meta { flex-direction: column; gap: 10px; }
    .casino-features { align-items: center; }
    .casino-right { flex-direction: row; justify-content: center; flex-wrap: wrap; }
    .casino { padding-top: 36px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
    .header-burger { display: grid; place-items: center; }
    .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--header-to); padding: 10px 16px 16px; border-left: 0; box-shadow: 0 16px 30px rgba(2,6,23,.3); }
    .site-nav a.is-active::after { display: none; }
    .header-inner { gap: 12px; }
    body.nav-open .site-nav { display: flex; }
    .site-nav a { padding: 12px; border-radius: 10px; }
    .header-button span { display: none; }
    .header-button { width: 38px; padding: 0; justify-content: center; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-responsible { flex-direction: column; align-items: flex-start; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
    .casino-features { display: none; }
    .casino-image { width: 100%; max-width: 180px; margin: 0 auto; }
    .best > h2 { font-size: 1rem; }
    .site-logo img { height: 38px; }
    /* Smaller text on phones: the desktop sizes made the hero fill the whole first screen. */
    .hero { padding: 24px 0 8px; }
    .hero-title { font-size: 1.45rem; line-height: 1.25; }
    .hero-subtitle { font-size: .975rem; line-height: 1.55; }
    body.hero-compact .hero-title { font-size: 1.25rem; }
    body.hero-compact .hero-subtitle { font-size: .9rem; }
    .trust { gap: 8px; }
    .trust-item { font-size: .875rem; padding: 8px 14px; }
}
/* "Setări cookie-uri" in the footer: a button styled like the footer links. */
.footer-link-button { padding: 0; border: 0; background: none; font: inherit; color: rgba(255,255,255,.7); cursor: pointer; text-align: left; transition: color .15s ease; }
.footer-link-button:hover { color: #fff; }
