/**
 * Napoleon Casino Design - Dark Luxury Theme
 * suomenkielisetnettikasinot.net
 */

/* =================================
   Hero - Immersive Casino Experience
   ================================= */

.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background layers */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(15, 23, 60, 1) 0%, #070b1a 100%);
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
}

.hero__noise {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
}

/* Glow spots */
.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    will-change: transform;
}

.hero__glow--magenta {
    width: 600px; height: 600px;
    background: rgba(217, 70, 168, 0.35);
    top: 10%; left: 25%;
    animation: heroFloatGlow 8s ease-in-out infinite;
}

.hero__glow--cyan {
    width: 500px; height: 500px;
    background: rgba(56, 189, 248, 0.25);
    bottom: 5%; right: 20%;
    animation: heroFloatGlow 10s ease-in-out infinite reverse;
}

.hero__glow--gold {
    width: 350px; height: 350px;
    background: rgba(240, 192, 64, 0.1);
    top: 50%; left: 55%;
    transform: translate(-50%, -50%);
    animation: heroFloatGlow 12s ease-in-out infinite 2s;
}

@keyframes heroFloatGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.08); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* Particles canvas */
#heroParticles {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Decorative rings */
.hero__ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
    z-index: 1;
}

.hero__ring--1 { width: 500px; height: 500px; top: -120px; left: -160px; border-color: rgba(167, 139, 250, 0.08); }
.hero__ring--2 { width: 380px; height: 380px; bottom: -80px; right: -100px; border-color: rgba(56, 189, 248, 0.08); }
.hero__ring--3 { width: 220px; height: 220px; top: 20%; right: 12%; border-color: rgba(240, 192, 64, 0.06); }

/* Win toasts */
.win-toast {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(15, 20, 50, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    font-size: 13px;
    font-weight: 500;
    color: #f1f5f9;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.win-toast__icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}

.win-toast__icon--gold { background: rgba(240, 192, 64, 0.2); }
.win-toast__icon--magenta { background: rgba(217, 70, 168, 0.2); }
.win-toast__icon--cyan { background: rgba(56, 189, 248, 0.2); }

.win-toast__amount { font-weight: 600; color: #f0c040; }

@keyframes heroToastIn {
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes heroToastOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-8px) scale(0.96); }
}

/* 3D Chip stack */
.hero__illustration {
    position: absolute;
    right: 8%; top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
}

/* Hero coin image (right side) */
.hero__coin-img {
    width: 420px;
    height: auto;
    filter: drop-shadow(0 10px 40px rgba(240, 192, 64, 0.3));
    animation: heroChipFloat 6s ease-in-out infinite;
}

@keyframes heroChipFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* Hero card image (left side) */
.hero__cards {
    position: absolute;
    left: 6%; top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
}

.hero__card-img {
    width: 360px;
    height: auto;
    filter: drop-shadow(0 10px 40px rgba(217, 70, 168, 0.25));
    animation: heroCardFloat 7s ease-in-out infinite;
}

@keyframes heroCardFloat {
    0%, 100% { transform: rotate(-5deg) translateY(0); }
    50% { transform: rotate(-5deg) translateY(-12px); }
}

/* Hero content */
.hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 700px;
    padding: 0 24px;
}

/* Social proof */
.hero__social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    opacity: 0;
    animation: heroFadeUp 0.8s ease forwards 0.3s;
}

.hero__avatars { display: flex; }

.hero__avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 2px solid #070b1a;
    margin-left: -8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600;
}
.hero__avatar:first-child { margin-left: 0; }
.hero__avatar--1 { background: linear-gradient(135deg, #f0c040, #e67e22); }
.hero__avatar--2 { background: linear-gradient(135deg, #d946a8, #7c3aed); }
.hero__avatar--3 { background: linear-gradient(135deg, #38bdf8, #6366f1); }
.hero__avatar--4 { background: linear-gradient(135deg, #10b981, #38bdf8); }

.hero__social-text { font-size: 13px; color: rgba(241,245,249,0.55); }
.hero__social-text strong { color: #f0c040; font-weight: 600; }

/* Label pill */
.hero__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 100px;
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.2);
    font-size: 12px; font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #a78bfa;
    margin-bottom: 28px;
    opacity: 0;
    animation: heroFadeUp 0.8s ease forwards 0.5s;
}

.hero__label::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #a78bfa;
    animation: heroPulse 2s ease-in-out infinite;
}

@keyframes heroPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

/* Heading */
.hero__heading {
    font-family: 'Bebas Neue', var(--font-heading);
    font-size: clamp(52px, 8vw, 110px);
    line-height: 0.95;
    letter-spacing: 2px;
    margin-bottom: 24px;
    opacity: 0;
    animation: heroFadeUp 0.8s ease forwards 0.7s;
}

.hero__heading-line1 {
    display: block;
    color: #f1f5f9;
    text-shadow: 0 0 60px rgba(255,255,255,0.08);
}

.hero__heading-line2 {
    display: block;
    background: linear-gradient(90deg, #f0c040 0%, #d946a8 40%, #38bdf8 70%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(217, 70, 168, 0.3));
}

/* Ghost letter */
.hero__ghost-letter {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -55%);
    font-family: 'Bebas Neue', var(--font-heading);
    font-size: clamp(250px, 35vw, 500px);
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.025);
    pointer-events: none;
    z-index: 0;
    user-select: none;
    line-height: 1;
}

/* Subtitle */
.hero__subtitle {
    font-size: clamp(15px, 1.8vw, 18px);
    font-weight: 300;
    color: rgba(241,245,249,0.55);
    margin-bottom: 36px;
    line-height: 1.6;
    opacity: 0;
    animation: heroFadeUp 0.8s ease forwards 0.9s;
}

/* CTA */
.hero__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    opacity: 0;
    animation: heroFadeUp 0.8s ease forwards 1.1s;
}

.hero__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 42px;
    font-size: 15px; font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #070b1a;
    background: linear-gradient(135deg, #f0c040 0%, #e8a820 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    z-index: 1;
}

.hero__btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ffe066 0%, #f0c040 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 14px;
}

.hero__btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(240, 192, 64, 0.35), 0 0 60px rgba(240, 192, 64, 0.15);
}

.hero__btn:hover::before { opacity: 1; }
.hero__btn span, .hero__btn svg { position: relative; z-index: 2; }
.hero__btn:hover svg { transform: translateX(3px); }
.hero__btn svg { transition: transform 0.3s ease; }

.hero__btn-glow {
    position: absolute;
    width: 200px; height: 60px;
    background: rgba(240, 192, 64, 0.25);
    border-radius: 50%;
    filter: blur(25px);
    animation: heroBtnGlow 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroBtnGlow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

/* Trust badges */
.hero__trust {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 4px;
}

.hero__trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(241,245,249,0.55);
}

.hero__trust-icon { width: 16px; height: 16px; opacity: 0.6; }
.hero__stars { display: flex; gap: 2px; }
.hero__star { color: #f0c040; font-size: 13px; }

/* Corner labels */
.hero__corner {
    position: absolute;
    font-size: 10px; font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75));
    z-index: 2;
    pointer-events: none;
}
.hero__corner--tl { top: 32px; left: 32px; }
.hero__corner--tr { top: 32px; right: 32px; }
.hero__corner--bl { bottom: 32px; left: 32px; }
.hero__corner--br { bottom: 32px; right: 32px; }

/* Decorative lines */
.hero__line {
    position: absolute;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.04), transparent);
    z-index: 1;
    pointer-events: none;
}
.hero__line--left { width: 1px; height: 40%; top: 30%; left: 18%; }
.hero__line--right { width: 1px; height: 35%; top: 35%; right: 18%; }

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
    .hero__illustration, .hero__cards { display: none; }
}

@media (max-width: 640px) {
    .hero__trust { flex-direction: column; gap: 10px; }
    .hero__corner, .hero__line { display: none; }
    .hero__social-proof { flex-direction: column; gap: 6px; }
}

/* =================================
   Stats Bar
   ================================= */

.stats-bar {
    background: linear-gradient(135deg, #0c0c24 0%, #1a1042 100%);
    padding: var(--space-8) 0;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.stats-bar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    text-align: center;
}

@media (min-width: 640px) {
    .stats-bar-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item-bar {
    padding: var(--space-4);
}

.stat-number-bar {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 800;
    color: #FFD700;
    line-height: 1;
    margin-bottom: var(--space-2);
}

.stat-label-bar {
    font-size: var(--text-sm);
    color: rgba(224, 224, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* =================================
   Section Label
   ================================= */

.section-label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #B153D7;
    margin-bottom: var(--space-3);
    padding: var(--space-1) var(--space-4);
    border: 1px solid rgba(177, 83, 215, 0.3);
    border-radius: var(--radius-full);
    background: rgba(177, 83, 215, 0.1);
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.section-header p {
    color: var(--text-tertiary);
    font-size: var(--text-lg);
    max-width: 600px;
    margin: 0 auto;
}

.section-header.text-center {
    text-align: center;
    margin-bottom: var(--space-12);
}

/* =================================
   CTA Section
   ================================= */

.section-cta {
    background: linear-gradient(135deg, #1a1042 0%, #2a1558 50%, #0c0c24 100%);
    position: relative;
    overflow: hidden;
}

.section-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(243, 117, 194, 0.15) 0%, transparent 50%);
}

.section-cta h2 {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    color: #FFFFFF;
    margin-bottom: var(--space-4);
    position: relative;
}

.section-cta p {
    color: rgba(224, 224, 255, 0.8);
    font-size: var(--text-lg);
    margin-bottom: var(--space-8);
    position: relative;
}

/* =================================
   SEO Content
   ================================= */

.seo-content {
    margin-top: var(--space-10);
}

.seo-content h2 {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.seo-content h3 {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    color: #B153D7;
    margin-top: var(--space-8);
    margin-bottom: var(--space-3);
}

.seo-content p {
    color: var(--text-secondary);
    line-height: var(--leading-loose);
    margin-bottom: var(--space-4);
}

.seo-content ul {
    margin: var(--space-4) 0;
    padding-left: var(--space-6);
}

.seo-content li {
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
    line-height: var(--leading-relaxed);
}

.seo-content li::marker {
    color: #FFD700;
}

/* =================================
   Article Content (inner pages)
   ================================= */

.article-content {
    line-height: var(--leading-loose);
    color: var(--text-secondary);
}

.article-content h1,
.article-content h2 {
    color: var(--text-primary);
    font-family: var(--font-heading);
    margin: var(--space-8) 0 var(--space-4);
}

.article-content h3 {
    color: #B153D7;
    font-family: var(--font-heading);
    margin: var(--space-6) 0 var(--space-3);
}

.article-content p {
    margin-bottom: var(--space-4);
}

.article-content a {
    color: #00D7FF;
    text-decoration: underline;
}

.article-content a:hover {
    color: #F375C2;
}

.article-content ul,
.article-content ol {
    margin: var(--space-4) 0;
    padding-left: var(--space-6);
}

.article-content li {
    margin-bottom: var(--space-2);
}

.article-content img {
    border-radius: var(--radius-md);
}

/* =================================
   Tags
   ================================= */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    background: rgba(177, 83, 215, 0.15);
    border: 1px solid rgba(177, 83, 215, 0.3);
    border-radius: var(--radius-tag);
    color: #B153D7;
    font-size: var(--text-xs);
    font-weight: 500;
    text-decoration: none;
    transition: all var(--duration-normal);
}

.tag:hover {
    background: rgba(177, 83, 215, 0.3);
    border-color: #B153D7;
    color: #E0E0FF;
}

/* =================================
   Dark theme overrides for inner pages
   ================================= */

.breadcrumbs a { color: #FFD700 !important; }
.breadcrumbs a:hover { color: #F375C2 !important; }
h1, .page-title, article header h1 { color: #FFFFFF; }
.card-title a { color: #FFFFFF; }
.article-tag { color: #B153D7; }

/* Rating badge */
.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #FFD700;
    font-weight: 600;
}

/* Contact info card accents */
.peluuri-info a {
    color: #00D7FF;
}

/* Alert styles for forms */
.alert {
    padding: var(--space-4);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
}

.alert-success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

.alert-error {
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #F44336;
}

/* =================================
   Top Casinos List
   ================================= */

.top-casinos-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    max-width: 1000px;
    margin: 0 auto;
}

.top-casino-row {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    padding: var(--space-5) var(--space-6);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card-lg);
    transition: all var(--duration-normal) var(--ease-out);
}

.top-casino-row:hover {
    border-color: var(--gold-500);
    transform: translateX(4px);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

.top-casino-row.featured {
    border-color: var(--gold-500);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(243, 117, 194, 0.05) 100%);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.1);
}

.top-casino-rank {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--gold-400);
    min-width: 40px;
    text-align: center;
}

.top-casino-row.featured .top-casino-rank {
    background: linear-gradient(135deg, #FFD700, #F375C2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: var(--text-3xl);
}

.top-casino-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--gold-400);
    flex-shrink: 0;
}

.top-casino-info {
    flex: 1;
    min-width: 0;
}

.top-casino-info h3 {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-1);
}

.top-casino-rating {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 2px var(--space-2);
    background: var(--gradient-gold-horizontal);
    color: var(--bg-primary);
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 700;
    border-radius: var(--radius-badge);
}

.top-casino-rating svg {
    width: 12px;
    height: 12px;
}

.top-casino-bonus {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    flex: 1;
    text-align: center;
}

.top-casino-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background: var(--gradient-gold-horizontal);
    color: var(--bg-primary);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 700;
    border-radius: var(--radius-full);
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--duration-normal);
    flex-shrink: 0;
}

.top-casino-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.top-casino-btn svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .top-casino-row {
        flex-wrap: wrap;
        gap: var(--space-3);
        padding: var(--space-4);
    }

    .top-casino-rank {
        min-width: 30px;
        font-size: var(--text-lg);
    }

    .top-casino-logo {
        width: 44px;
        height: 44px;
        font-size: var(--text-sm);
    }

    .top-casino-bonus {
        width: 100%;
        text-align: left;
        padding-left: calc(30px + 44px + var(--space-3) * 2);
        order: 4;
    }

    .top-casino-btn {
        width: 100%;
        justify-content: center;
        order: 5;
    }
}
