/* =========================================================
   Magazin: grila de moduri (pagina principala) + pagina de produs
   ========================================================= */

/* ---------- Sectiunea de moduri ---------- */
.mods-section { padding-top: clamp(40px, 6vw, 90px); }
/* titlul sectiunii e centrat, ca la celelalte sectiuni; filtrele stau dedesubt, tot pe centru */
.mods-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.mods-head .section-head { margin: 0 auto; text-align: center; max-width: 800px; }
.mods-head .section-title { margin-bottom: 20px; }
.mods-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.mods-filter {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 999px; cursor: pointer;
    font: 800 11px/1 'Inter', sans-serif; letter-spacing: 1.2px; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.09);
    transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.mods-filter span { font-size: 10px; padding: 3px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.6); }
.mods-filter:hover { color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.mods-filter.active { color: #fff; background: rgba(230, 0, 0, 0.14); border-color: rgba(230, 0, 0, 0.55); }
.mods-filter.active span { background: var(--accent); color: #fff; }

.mods-grid {
    display: grid; gap: clamp(16px, 2vw, 26px);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
    perspective: 1200px;
}
.mods-empty { color: var(--text-muted); padding: 40px 0; }

/* ---------- Cardul de produs ---------- */
.mod-card {
    --tier: rgba(255, 255, 255, 0.85);
    --mx: 50%; --my: 0%;
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    border-radius: 24px; text-decoration: none; color: #fff;
    background: linear-gradient(180deg, rgba(20, 20, 24, 0.9), rgba(9, 9, 11, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    transform-style: preserve-3d; will-change: transform;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.mod-card.tier-standard { --tier: #ff4d4d; }
.mod-card.tier-deluxe { --tier: #ff1a1a; }
.mod-card:hover { border-color: rgba(230, 0, 0, 0.45); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 60px rgba(230, 0, 0, 0.14); }
.mod-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.mod-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.mod-card-media img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transform: scale(1.02); transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.6s ease;
    filter: saturate(0.92);
}
.mod-card:hover .mod-card-media img { transform: scale(1.09); filter: saturate(1.1); }
.mod-card-shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(140deg, rgba(230, 0, 0, 0.42) 0%, rgba(230, 0, 0, 0) 45%),
        linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(9, 9, 11, 0.95) 100%);
    mix-blend-mode: normal;
}
.mod-tier, .mod-soon {
    position: absolute; top: 14px; z-index: 2;
    font: 800 11px/1 'Inter', sans-serif; letter-spacing: 1px; text-transform: uppercase;
    padding: 8px 12px; border-radius: 999px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.mod-tier { left: 14px; color: #fff; background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.18); }
.tier-standard .mod-tier { border-color: rgba(255, 77, 77, 0.7); color: #ffd6d6; }
.tier-deluxe .mod-tier { background: var(--accent); border-color: transparent; box-shadow: 0 0 22px var(--accent-glow); }
.mod-soon { right: 14px; color: #111; background: #fff; }
.mod-platforms { position: absolute; left: 14px; bottom: 12px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.mod-platforms span {
    font: 700 10px/1 'Inter', sans-serif; letter-spacing: 0.6px; padding: 6px 8px; border-radius: 6px;
    background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.85);
}

.mod-card-body { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; transform: translateZ(30px); }
.mod-card-title { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.mod-card-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.mod-card-price strong { font-size: 2rem; font-weight: 900; letter-spacing: -0.04em; }
.mod-card-price span { color: var(--text-muted); font-size: 0.95rem; }
.mod-card-meta { display: flex; align-items: center; gap: 8px; color: #ff6b6b; font-size: 0.85rem; font-weight: 600; margin-bottom: 14px; }
.mod-card-meta svg { width: 16px; height: 16px; }
.mod-card-desc { color: #b5b5b5; font-size: 0.95rem; line-height: 1.6; margin-bottom: 22px; flex: 1; }
.mod-card-btn {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 20px; border-radius: 999px;
    font: 800 12px/1 'Inter', sans-serif; letter-spacing: 1.2px; text-transform: uppercase;
    border: 1px solid rgba(230, 0, 0, 0.6); color: #fff; background: rgba(230, 0, 0, 0.08);
    transition: color 0.4s ease, border-color 0.4s ease;
}
.mod-card-btn::before {
    content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
    background: linear-gradient(90deg, #b30000, var(--accent));
    transform: translateY(101%); transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mod-card-btn svg { width: 16px; height: 16px; transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.mod-card:hover .mod-card-btn::before { transform: translateY(0); }
.mod-card:hover .mod-card-btn { border-color: transparent; box-shadow: 0 0 30px var(--accent-glow); }
.mod-card:hover .mod-card-btn svg { transform: translateX(5px); }
.mod-card-spot {
    position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s ease;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 60, 60, 0.13), transparent 55%);
}
.mod-card:hover .mod-card-spot { opacity: 1; }
.mod-card.is-soon .mod-card-price strong { color: rgba(255, 255, 255, 0.6); }

/* =========================================================
   Pagina de produs
   ========================================================= */
.pp { padding-top: clamp(110px, 12vw, 150px); }
.pp-back {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
    color: rgba(255, 255, 255, 0.6); text-decoration: none;
    font: 800 11px/1 'Inter', sans-serif; letter-spacing: 1.5px; text-transform: uppercase;
    transition: color 0.3s ease;
}
.pp-back svg { width: 16px; height: 16px; transform: rotate(180deg); transition: transform 0.3s ease; }
.pp-back:hover { color: #fff; }
.pp-back:hover svg { transform: rotate(180deg) translateX(4px); }

.pp-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 56px); align-items: start; }

/* galerie */
.pp-stage {
    position: relative; aspect-ratio: 16 / 9; border-radius: 26px; overflow: hidden;
    background: #0a0a0c; border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 80px rgba(230, 0, 0, 0.08);
}
.pp-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.6s ease, transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.pp-stage img.is-portrait { object-fit: contain; }
.pp-stage .pp-stage-bg { filter: blur(30px) brightness(0.5); transform: scale(1.2); object-fit: cover; }
.pp-stage img.is-leaving { opacity: 0; transform: scale(1.04); }
.pp-stage-btn {
    position: absolute; top: 50%; z-index: 3; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer; color: #fff;
    background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    opacity: 0; transition: opacity 0.3s ease, background 0.3s ease;
}
.pp-stage-btn svg { width: 18px; height: 18px; }
.pp-stage-btn.prev { left: 16px; }
.pp-stage-btn.prev svg { transform: rotate(180deg); }
.pp-stage-btn.next { right: 16px; }
.pp-stage:hover .pp-stage-btn, .pp-stage-btn:focus-visible { opacity: 1; }
.pp-stage-btn:hover { background: var(--accent); }
.pp-counter {
    position: absolute; right: 16px; bottom: 14px; z-index: 3;
    font: 800 11px/1 'Inter', sans-serif; letter-spacing: 1.5px; color: #fff;
    padding: 7px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.5);
}
.pp-thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.pp-thumb {
    flex: 0 0 auto; width: clamp(84px, 11vw, 130px); aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden;
    padding: 0; cursor: pointer; background: #111; border: 2px solid transparent; opacity: 0.5;
    transition: opacity 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-thumb:hover { opacity: 0.85; transform: translateY(-2px); }
.pp-thumb.active { opacity: 1; border-color: var(--accent); box-shadow: 0 0 18px var(--accent-glow); }

/* panou info */
.pp-info {
    position: sticky; top: 110px;
    padding: clamp(22px, 2.6vw, 34px); border-radius: 26px;
    background: linear-gradient(180deg, rgba(22, 22, 26, 0.75), rgba(10, 10, 12, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.pp-badges { display: flex; gap: 8px; margin-bottom: 18px; }
.pp-badges .mod-tier, .pp-badges .mod-soon { position: static; }
.pp-title { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 16px; }
.pp-short { color: #c2c2c2; font-size: 1.05rem; line-height: 1.6; margin-bottom: 22px; }
.pp-compat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; }
.pp-compat-label { font: 800 11px/1 'Inter', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); margin-right: 4px; }
.pp-compat .chip {
    font: 700 12px/1 'Inter', sans-serif; padding: 8px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12);
}
.pp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; padding: 20px 0; margin-bottom: 20px; border-top: 1px solid rgba(255, 255, 255, 0.07); border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.pp-price strong { font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 900; letter-spacing: -0.05em; }
.pp-price span { color: var(--text-muted); }
.pp-buy {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%;
    padding: 20px 26px; border-radius: 999px; text-decoration: none; color: #fff;
    font: 900 13px/1 'Inter', sans-serif; letter-spacing: 1.4px; text-transform: uppercase;
    background: linear-gradient(90deg, #b30000, var(--accent) 60%, #ff3b3b);
    box-shadow: 0 0 40px rgba(230, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: box-shadow 0.4s ease;
}
.pp-buy::after {
    content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg); animation: nv-shine 3.2s ease-in-out infinite;
}
@keyframes nv-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.pp-buy svg { width: 20px; height: 20px; }
.pp-buy:hover { box-shadow: 0 0 60px rgba(230, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.pp-buy.is-soon { background: rgba(255, 255, 255, 0.08); box-shadow: none; border: 1px solid rgba(255, 255, 255, 0.15); }
.pp-buy.is-soon::after { display: none; }
.pp-note { color: var(--text-muted); font-size: 0.85rem; text-align: center; margin: 12px 0 22px; }
.pp-perks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pp-perks li {
    display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: #d7d7d7;
    padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06);
}
.pp-perks svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--accent); }

/* video */
.pp-section-head { text-align: center; margin: 0 auto clamp(26px, 4vw, 46px); max-width: 800px; }
.pp-video {
    position: relative; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden;
    background: #000; border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 100px rgba(230, 0, 0, 0.1);
}
.pp-video img, .pp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.pp-video img { transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.6s ease; filter: brightness(0.75); }
.pp-video::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.6)); }
.pp-video.is-playing::after { display: none; }
.pp-video:hover img { transform: scale(1.04); filter: brightness(0.9); }
.pp-play {
    position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%);
    display: flex; align-items: center; gap: 14px; padding: 10px 26px 10px 10px; border-radius: 999px; cursor: pointer;
    background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    font: 800 12px/1 'Inter', sans-serif; letter-spacing: 1.4px; text-transform: uppercase;
}
.pp-play-icon {
    position: relative; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
    background: var(--accent); box-shadow: 0 0 30px var(--accent-glow);
}
.pp-play-icon::before {
    content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(230, 0, 0, 0.6);
    animation: nv-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes nv-ping { 75%, 100% { transform: scale(1.5); opacity: 0; } }
.pp-play-icon svg { width: 22px; height: 22px; margin-left: 3px; }

/* detalii */
.pp-details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 70px); align-items: start; }
.pp-details h2 { font-size: clamp(1.6rem, 1rem + 2vw, 2.4rem); font-weight: 900; letter-spacing: -0.03em; margin-bottom: 18px; }
.pp-desc p { color: #bdbdbd; line-height: 1.75; margin-bottom: 14px; font-size: 1.02rem; }
.pp-includes { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; counter-reset: inc; }
.pp-includes li {
    position: relative; counter-increment: inc; padding: 16px 16px 16px 58px; border-radius: 16px;
    color: #e2e2e2; font-size: 0.93rem; line-height: 1.45;
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07);
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.pp-includes li::before {
    content: counter(inc, decimal-leading-zero); position: absolute; left: 16px; top: 15px;
    font: 900 13px/1 'Inter', sans-serif; color: var(--accent); letter-spacing: 0.5px;
    padding: 5px 0; width: 28px; text-align: left;
}
.pp-includes li:hover { border-color: rgba(230, 0, 0, 0.4); background: rgba(230, 0, 0, 0.05); transform: translateX(4px); }

/* produs inexistent */
.pp-notfound { text-align: center; padding: 120px 0 60px; }
.pp-notfound h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; margin-bottom: 14px; }
.pp-notfound p { color: var(--text-muted); margin-bottom: 30px; }

/* lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center;
    background: rgba(3, 3, 3, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 16px; box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6); transform: scale(0.96); transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.lightbox.open img { transform: scale(1); }
.lightbox .pp-stage-btn { opacity: 1; position: fixed; }
.lightbox-close { position: fixed; top: 22px; right: 22px; margin: 0; top: 22px; }
.lightbox-close svg { transform: none !important; }

@media (max-width: 1023.98px) {
    .pp-grid, .pp-details { grid-template-columns: minmax(0, 1fr); }
    .pp-info { position: static; }
    .pp-stage-btn { opacity: 1; }
}
@media (max-width: 479.98px) {
    .pp-perks { grid-template-columns: 1fr; }
}

[hidden] { display: none !important; }

/* bara de scroll a miniaturilor, in tema intunecata */
.pp-thumbs { scrollbar-color: rgba(230, 0, 0, 0.6) transparent; }
.pp-thumbs::-webkit-scrollbar { height: 4px; }
.pp-thumbs::-webkit-scrollbar-track { background: transparent; }
.pp-thumbs::-webkit-scrollbar-thumb { background: rgba(230, 0, 0, 0.6); border-radius: 4px; }
.pp-details h2 { display: block; }
.pp-details .section-kicker { display: block; }

/* =========================================================
   Perf: grila de moduri (fara backdrop-filter / filter pe 12 carduri)
   ========================================================= */
.mod-card { will-change: auto; contain: layout paint; }
.mod-card-media img { filter: none; transition: transform .9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.mod-card:hover .mod-card-media img { filter: none; }
.mod-tier, .mod-soon { backdrop-filter: none; -webkit-backdrop-filter: none; }
.mod-tier { background: rgba(0, 0, 0, 0.72); }
.mod-card-body { transform: none; }
@media (hover: none) { .mod-card-spot { display: none; } }
