/* ===================================
   KASINOTIPSIT DESIGN SYSTEM
   Color Palette, Typography, & Base Styles
   =================================== */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700;800&family=IBM+Plex+Sans:wght@400;500;600;700&family=Dancing+Script:wght@400&display=swap');

/* CSS Variables - Kasinotipsit Color Palette */
:root {
    /* Primary Colors */
    --primary-blue: #1d24ca;
    --primary-dark: #171c9d;
    --deep-blue: #3002b2;

    /* Backgrounds */
    --bg-lavender: #f2f2fd;
    --bg-light: #f5f5ff;
    --bg-white: #ffffff;

    /* Text Colors */
    --text-dark: #312f4c;
    --text-medium: #6b6b6b;
    --text-light: #94a3b8;

    /* Accent Colors */
    --accent-gold: #ffd700;
    --accent-green: #1e6f45;
    --accent-red: #b4232c;

    /* Spacing */
    --gap-small: 8px;
    --gap-standard: 16px;
    --gap-large: 24px;
    --container-max: 1170px;

    /* Border Radius */
    --radius-small: 8px;
    --radius-medium: 12px;
    --radius-large: 16px;
    --radius-xlarge: 18px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-margin-top: 90px;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-lavender);
    -webkit-font-smoothing: antialiased;
}

/* Typography - Kasinotipsit Style */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.2em;
    font-weight: 800;
}

h2 {
    font-size: 2em;
    font-weight: 700;
}

h3 {
    font-size: 1.2em;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--deep-blue);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - Sticky Navigation */
.header {
    background: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 90px;
    backdrop-filter: blur(10px);
}

.header.sticky {
    height: 70px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 1.5rem 0;
}

.logo {
    font-size: 1.75rem;
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    color: white;
}

.logo-mc {
    background-color: white;
    color: var(--primary-blue);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 700;
}

.logo-text {
    color: white;
}

.nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-link {
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.15s ease;
}

.nav-link:hover {
    opacity: 0.85;
    color: white;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.75rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    opacity: 0.8;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background-color: #f1f1f1;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
}

.breadcrumb {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-left: 0.5rem;
    color: #94a3b8;
}

.breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.15s;
}

.breadcrumb a:hover {
    color: var(--deep-blue);
}

.breadcrumb li:last-child span {
    color: var(--text-medium);
}

/* Hero Section - Finnish-Focused Design */
.hero {
    background: linear-gradient(135deg, #003580 0%, #1d24ca 50%, #3002b2 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="rgba(255,255,255,0.02)" width="2" height="100"/><rect fill="rgba(255,255,255,0.02)" y="0" width="100" height="2"/></svg>');
    background-size: 50px 50px;
    opacity: 0.3;
    pointer-events: none;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Year Badge Row */
.hero-year-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.year-badge, .trust-badge {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.875rem;
    color: white;
}

.year-badge {
    background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.15));
}

/* Hero Title */
.hero-title {
    color: white;
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-family: 'Cairo', sans-serif;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    color: white;
    line-height: 1.7;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem auto;
    max-width: 800px;
    padding: 2rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    font-family: 'Cairo', sans-serif;
    color: white;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

/* Hero Badges - Enhanced */
.hero-badges {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2.5rem 0;
}

.badge-row {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.badge {
    background-color: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.6rem 1.25rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.875rem;
    color: white;
    transition: all 0.2s ease;
}

.badge:hover {
    background-color: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.security-badge {
    border-color: rgba(72,187,120,0.4);
    background: linear-gradient(135deg, rgba(72,187,120,0.2), rgba(255,255,255,0.15));
}

.instant-badge {
    border-color: rgba(251,191,36,0.4);
    background: linear-gradient(135deg, rgba(251,191,36,0.2), rgba(255,255,255,0.15));
}

.finland-badge {
    border-color: rgba(59,130,246,0.4);
    background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(255,255,255,0.15));
}

.tax-badge {
    border-color: rgba(16,185,129,0.4);
    background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(255,255,255,0.15));
}

.license-badge {
    border-color: rgba(139,92,246,0.4);
    background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(255,255,255,0.15));
}

.betting-badge {
    border-color: rgba(236,72,153,0.4);
    background: linear-gradient(135deg, rgba(236,72,153,0.2), rgba(255,255,255,0.15));
}

/* Hero Features - Finnish Trust Boxes */
.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
    text-align: left;
}

.feature-box {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    transition: all 0.2s ease;
}

.feature-box:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.feature-content h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.feature-content p {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Hero CTA */
.hero-cta {
    margin-top: 3rem;
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--primary-blue);
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    color: var(--deep-blue);
}

.cta-disclaimer {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    font-weight: 400;
}

/* Toplist Container */
.toplist-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* Section Styles */
section {
    padding: 3rem 0;
}

.section-title {
    font-size: 2rem;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: var(--text-medium);
    line-height: 1.6;
}

/* Casino Cards */
.casinos-section {
    background-color: var(--bg-white);
}

.casino-list {
    display: grid;
    gap: 2rem;
}

.casino-card {
    background: var(--bg-white);
    border-radius: var(--radius-large);
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.casino-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.casino-rank {
    position: absolute;
    top: -15px;
    left: 20px;
    background-color: var(--primary-blue);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(29, 36, 202, 0.3);
}

.casino-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.casino-logo h3 {
    font-size: 1.5rem;
    font-family: 'Cairo', sans-serif;
    color: var(--text-dark);
    font-weight: 700;
}

.casino-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.stars {
    color: var(--accent-gold);
    font-size: 1.125rem;
}

.rating-text {
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 0.25rem;
}

.casino-bonus {
    background-color: #f0fdf4;
    border-left: 4px solid var(--accent-green);
    padding: 1.5rem;
    border-radius: var(--radius-small);
    margin-bottom: 1.5rem;
}

.bonus-highlight {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bonus-amount {
    font-size: 1.5rem;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    color: #059669;
}

.bonus-spins {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent-green);
}

.casino-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.feature {
    color: #059669;
    font-weight: 500;
    padding-left: 1.5rem;
    position: relative;
}

.feature::before {
    content: "›";
    position: absolute;
    left: 0;
    color: white;
    background: var(--primary-blue);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.casino-details {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--bg-lavender);
    border-radius: var(--radius-small);
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.detail-value {
    font-weight: 600;
    color: var(--text-dark);
}

.casino-button {
    display: block;
    background-color: var(--deep-blue);
    color: white;
    text-align: center;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-medium);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    height: 52px;
    line-height: 52px;
    padding: 0 2rem;
    transition: background-color 0.15s ease, transform 0.2s ease;
}

.casino-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    color: white;
}

.casino-terms {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 1rem;
}

/* Benefits Section */
.benefits-section {
    background-color: var(--bg-lavender);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-large);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-family: 'Cairo', sans-serif;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.benefit-card p {
    color: var(--text-medium);
    line-height: 1.6;
}

/* Guide Section */
.guide-section {
    background-color: var(--bg-white);
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.step {
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 1.125rem;
    font-family: 'Cairo', sans-serif;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.step p {
    color: var(--text-medium);
    line-height: 1.6;
}

.info-box {
    background-color: #fef3c7;
    border-left: 4px solid var(--accent-gold);
    padding: 1.5rem;
    border-radius: var(--radius-small);
}

.info-box h3 {
    color: #92400e;
    font-family: 'Cairo', sans-serif;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.info-box ul {
    list-style: none;
    color: #78350f;
}

.info-box li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
    padding-left: 1.5rem;
    position: relative;
}

.info-box li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: white;
    background: var(--primary-blue);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

/* FAQ Section */
.faq-section {
    background-color: var(--bg-lavender);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-large);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.faq-question {
    color: var(--text-dark);
    font-family: 'Cairo', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.faq-answer p {
    color: var(--text-medium);
    line-height: 1.6;
}

/* Info Section */
.info-section {
    background-color: var(--bg-white);
}

.info-content {
    max-width: 900px;
    margin: 0 auto;
}

.info-content h2 {
    color: var(--text-dark);
    font-family: 'Cairo', sans-serif;
    font-size: 1.875rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.info-content h3 {
    color: var(--text-dark);
    font-family: 'Cairo', sans-serif;
    font-size: 1.5rem;
    margin: 1.5rem 0 0.75rem;
    font-weight: 600;
}

.info-content p {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: #cbd5e1;
    padding: 2.5rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    font-family: 'Cairo', sans-serif;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.footer-bottom a {
    color: var(--primary-blue);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: white;
}

.disclaimer {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    * {
        scroll-margin-top: 70px;
    }

    .header {
        height: 70px;
    }

    .header-content {
        padding: 1rem 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--primary-blue);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        z-index: 999;
    }

    .nav.active {
        max-height: 300px;
        padding: 1rem 0;
    }

    .nav-link {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 16px;
    }

    .nav-link:hover {
        background: rgba(255,255,255,0.1);
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
    }

    .badge-row {
        gap: 0.5rem;
    }

    .badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .casino-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .casino-rating {
        align-items: flex-start;
    }

    .casino-details {
        flex-direction: column;
        gap: 1rem;
    }

    .benefits-grid,
    .guide-steps {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 549px) {
    .casino-card {
        padding: 16px;
    }

    .casino-button {
        height: 56px;
        line-height: 56px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2.5rem 0;
    }

    .hero-title {
        font-size: 1.65rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.25rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .hero-year-badge {
        flex-direction: column;
        gap: 0.5rem;
    }

    .feature-box {
        padding: 1.25rem;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .feature-content h3 {
        font-size: 1rem;
    }

    .feature-content p {
        font-size: 0.85rem;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.45rem 0.9rem;
    }

    .cta-button {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }

    .casino-card {
        padding: 1.5rem;
    }
}
