/* JoulunOnnea - Christmas Fortune Inspired Styles */

:root {
    --primary-red: #c94b4b;
    --primary-green: #2d5016;
    --primary-gold: #d4af37;
    --winter-white: #f8f9fa;
    --snow-blue: #e8f4f8;
    --dark-green: #1a3a0f;
    --warm-red: #e74c3c;
    --accent-gold: #f39c12;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --bg-dark: #1a1a2e;
    --bg-light: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--winter-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-green) 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.5rem;
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-light);
}

.main-nav {
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
}

.hero {
    background: linear-gradient(135deg, #1a3a0f 0%, #c94b4b 50%, #4b134f 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
}

.btn-hero {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--accent-gold) 100%);
    color: white;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: var(--primary-red);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: var(--warm-red);
}

.btn-secondary {
    background: var(--primary-green);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.btn-outline {
    background: transparent;
    color: var(--primary-red);
    padding: 0.75rem 2rem;
    border: 2px solid var(--primary-red);
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--primary-red);
    color: white;
}

.snowflakes {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.snowflake {
    position: absolute;
    top: -10%;
    color: white;
    font-size: 1.5rem;
    opacity: 0.7;
    animation: fall linear infinite;
}

.snowflake:nth-child(1) { left: 10%; animation-duration: 10s; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 30%; animation-duration: 12s; animation-delay: 2s; }
.snowflake:nth-child(3) { left: 50%; animation-duration: 8s; animation-delay: 4s; }
.snowflake:nth-child(4) { left: 70%; animation-duration: 11s; animation-delay: 1s; }
.snowflake:nth-child(5) { left: 85%; animation-duration: 9s; animation-delay: 3s; }
.snowflake:nth-child(6) { left: 20%; animation-duration: 13s; animation-delay: 5s; }

@keyframes fall {
    to { transform: translateY(110vh) rotate(360deg); }
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #666;
}

.features-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px var(--shadow);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-red);
}

.games-preview-section {
    padding: 5rem 0;
    background: var(--snow-blue);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.game-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow);
    transition: transform 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.game-info {
    padding: 1.5rem;
}

.game-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-red);
}

.game-tag {
    display: inline-block;
    background: var(--primary-gold);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Featured Single Game Card */
.games-grid.featured-single {
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 3rem auto;
}

.games-grid.featured-single .game-card {
    width: 100%;
    max-width: 600px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.games-grid.featured-single .game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.games-grid.featured-single .game-image {
    height: 300px;
}

.games-grid.featured-single .game-info {
    padding: 2rem;
}

.games-grid.featured-single .game-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.games-grid.featured-single .game-info p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.info-section {
    padding: 5rem 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    align-items: center;
}

.info-list {
    list-style: none;
    margin: 1.5rem 0;
}

.info-list li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.christmas-illustration {
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.responsibility-section {
    padding: 3rem 0;
    background: var(--primary-green);
    color: white;
}

.responsibility-box {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.responsibility-box h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.site-footer {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-green) 100%);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer-age-warning {
    background: var(--warm-red);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 2rem;
}

.footer-responsible {
    margin: 2rem 0;
    text-align: center;
}

.responsible-logos {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.org-link img {
    height: 40px;
    transition: transform 0.3s;
}

.org-link:hover img {
    transform: scale(1.1);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: var(--primary-gold);
}

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

.footer-column a {
    color: var(--text-light);
    text-decoration: none;
    display: block;
    padding: 0.25rem 0;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--primary-gold);
}

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

.footer-disclaimer {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.age-verification h2 {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.age-question {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 1rem 0;
}

.age-subtext {
    color: #666;
    margin-bottom: 2rem;
}

.age-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.snowflake-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 3rem;
}

.snowflake-decoration::after {
    content: "❄️";
}

.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    color: white;
    padding: 1.5rem;
    z-index: 999;
    box-shadow: 0 -2px 10px var(--shadow);
}

.cookie-banner.active {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.btn-accept {
    background: var(--primary-gold);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-link {
    color: white;
    padding: 0.75rem 1.5rem;
}

.page-hero {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-green) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.content-section {
    padding: 4rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.content-main {
    line-height: 1.8;
}

.content-main h2 {
    color: var(--primary-red);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-main h3 {
    color: var(--primary-green);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.styled-list {
    margin: 1rem 0 1rem 2rem;
}

.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-box {
    background: var(--snow-blue);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

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

.games-hero {
    background: linear-gradient(135deg, #1fa2ff 0%, #12d8fa 50%, #a6ffcb 100%);
}

.hero-tags {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.games-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.info-badges {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.info-badge {
    text-align: center;
}

.info-badge strong {
    display: block;
    font-size: 1.2rem;
    color: var(--primary-red);
}

.games-filter {
    text-align: center;
    margin-bottom: 3rem;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-red);
    background: white;
    color: var(--primary-red);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-red);
    color: white;
}

.games-grid-full {
    display: grid;
    gap: 2rem;
}

.game-card-full {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow);
    display: grid;
    grid-template-columns: 300px 1fr;
    transition: transform 0.3s;
}

.game-card-full:hover {
    transform: translateY(-3px);
}

.game-image-full {
    height: 100%;
    min-height: 200px;
    position: relative;
}

.game-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-gold);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.game-info-full {
    padding: 2rem;
}

.game-features {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.game-features span {
    background: var(--snow-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

.btn-play {
    background: var(--primary-red);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 1rem;
    font-size: 1rem;
}

.games-info-section {
    padding: 4rem 0;
    background: white;
}

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

.info-card {
    padding: 2rem;
    background: var(--snow-blue);
    border-radius: 10px;
}

.info-card h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-green) 100%);
}

.cta-box {
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.legal-content h2 {
    color: var(--primary-red);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content ul {
    margin-left: 2rem;
}

.legal-content a {
    color: var(--primary-red);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

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

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

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

    .game-card-full {
        grid-template-columns: 1fr;
    }

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

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

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