/* ZuzlemanApp – sito recensioni giochi (Italia) – stile gaming */
:root {
    --bg-dark: #0c0a0f;
    --bg-card: #16121c;
    --bg-card-hover: #1e1825;
    --accent: #ffc107;
    --accent-soft: #ffda6a;
    --gold: #ffd700;
    --purple: #7c3aed;
    --neon: #a78bfa;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(255, 193, 7, 0.15);
    --font-sans: 'DM Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --container: min(100% - 2rem, 1100px);
    --radius: 16px;
    --radius-lg: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-soft);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Background gaming – pattern + gradient + particles */
.bg-wrap {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.bg-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 80% at 50% -20%, rgba(124, 58, 237, 0.25), transparent 50%),
        radial-gradient(ellipse 80% 60% at 90% 80%, rgba(255, 193, 7, 0.12), transparent 45%),
        radial-gradient(ellipse 60% 50% at 10% 50%, rgba(167, 139, 250, 0.1), transparent 40%);
}

.bg-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 193, 7, 0.06) 0%, transparent 2%),
        radial-gradient(circle at 80% 70%, rgba(255, 193, 7, 0.06) 0%, transparent 2%),
        radial-gradient(circle at 50% 50%, rgba(167, 139, 250, 0.04) 0%, transparent 3%),
        radial-gradient(circle at 70% 20%, rgba(255, 193, 7, 0.05) 0%, transparent 2%),
        radial-gradient(circle at 15% 80%, rgba(124, 58, 237, 0.05) 0%, transparent 2%);
    background-size: 120px 120px;
    animation: bgFloat 60s linear infinite;
}

@keyframes bgFloat {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-120px, -60px); }
}

.bg-particles {
    position: absolute;
    inset: 0;
}

.bg-coin {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 215, 0, 0.5), rgba(218, 165, 32, 0.2));
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.3);
    animation: coinFloat 20s ease-in-out infinite;
}

.bg-coin:nth-child(1) { left: 8%; top: 15%; animation-delay: 0s; animation-duration: 18s; }
.bg-coin:nth-child(2) { left: 25%; top: 75%; animation-delay: -3s; animation-duration: 22s; width: 8px; height: 8px; }
.bg-coin:nth-child(3) { left: 85%; top: 25%; animation-delay: -6s; animation-duration: 25s; width: 10px; height: 10px; }
.bg-coin:nth-child(4) { left: 60%; top: 85%; animation-delay: -2s; animation-duration: 20s; }
.bg-coin:nth-child(5) { left: 92%; top: 55%; animation-delay: -8s; animation-duration: 24s; width: 6px; height: 6px; }
.bg-coin:nth-child(6) { left: 12%; top: 50%; animation-delay: -4s; animation-duration: 19s; width: 10px; height: 10px; }
.bg-coin:nth-child(7) { left: 75%; top: 12%; animation-delay: -5s; animation-duration: 21s; }
.bg-coin:nth-child(8) { left: 45%; top: 40%; animation-delay: -1s; animation-duration: 23s; width: 8px; height: 8px; }
.bg-coin:nth-child(9) { left: 35%; top: 90%; animation-delay: -7s; animation-duration: 17s; }

@keyframes coinFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    25% { transform: translate(15px, -20px) scale(1.1); opacity: 0.8; }
    50% { transform: translate(-10px, 15px) scale(0.95); opacity: 0.6; }
    75% { transform: translate(20px, 10px) scale(1.05); opacity: 0.7; }
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 193, 7, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 193, 7, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(12, 10, 15, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
}

.logo:hover {
    color: var(--accent-soft);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent), #e6a800);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--bg-dark);
}

/* Hero */
.hero {
    position: relative;
    z-index: 1;
    padding: 4rem 1.25rem 3rem;
    text-align: center;
}

.hero-inner {
    max-width: var(--container);
    margin: 0 auto;
}

.game-badge {
    display: inline-block;
    background: rgba(255, 193, 7, 0.15);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

.hero .game-icon-wrap {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 193, 7, 0.2);
}

.hero .game-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.hero .game-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.hero .game-meta span {
    color: var(--accent);
    font-weight: 600;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent), #e6a800);
    color: #0c0a0f;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 1rem 2rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(255, 193, 7, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(255, 193, 7, 0.45);
    color: #0c0a0f;
}

.download-btn:focus-visible {
    outline: 3px solid var(--accent-soft);
    outline-offset: 2px;
    color: #0c0a0f;
}

.download-btn svg {
    width: 24px;
    height: 24px;
}

/* Sections */
.section {
    position: relative;
    z-index: 1;
    padding: 3rem 1.25rem;
}

.section-inner {
    max-width: var(--container);
    margin: 0 auto;
    text-align: center;
}

.section-inner .section-title {
    justify-content: center;
}

.section-inner .section-title::before {
    display: inline-block;
}

.review-card,
.features-list,
.reviews-list {
    text-align: left;
    display: block;
    width: 100%;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 1.5rem;
    background: linear-gradient(180deg, var(--accent), var(--purple));
    border-radius: 2px;
}

/* Review card */
.review-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.review-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.review-card p:last-child {
    margin-bottom: 0;
}

.review-card strong {
    color: var(--text);
}

/* Screenshots */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
    justify-content: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.screenshot-item {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: transform 0.2s, border-color 0.2s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.screenshot-item:hover {
    transform: scale(1.03);
    border-color: rgba(255, 193, 7, 0.35);
}

.screenshot-item img {
    width: 100%;
    aspect-ratio: 526/296;
    object-fit: cover;
}

/* Info grid (stats) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin: 0 auto 2rem;
    max-width: 720px;
}

.info-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.25rem;
    border: 1px solid var(--border);
    text-align: center;
}

.info-item .info-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
}

.info-item .info-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Reviews block */
.reviews-list {
    margin: 0 auto;
    max-width: 720px;
}

.review-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    text-align: left;
}

.review-item:last-child {
    margin-bottom: 0;
}

.review-item-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.review-item-stars {
    color: var(--accent);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.review-item-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.review-item-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Features list */
.features-list {
    list-style: none;
}

.features-list li {
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
}

.features-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.35);
    border-top: 1px solid var(--border);
    padding: 2rem 1.25rem;
    margin-top: 2rem;
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.footer-policy {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    margin-bottom: 1rem;
}

.footer-policy a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-policy a:hover {
    color: var(--accent);
}

.footer-policy a:focus-visible {
    color: var(--accent);
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Policy pages */
.page-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
}

.page-content h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.page-content .page-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.page-content p,
.page-content ul {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.page-content ul {
    padding-left: 1.5rem;
}

.page-content a {
    color: var(--accent);
}

/* Mobile */
@media (max-width: 640px) {
    .screenshots-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
