/* ============================================================
   VEGANORDLAS.COM - NORDISK NATUR + ORGANISK DESIGN
   Tema: grønne toner, tretekstur, blader, plantemønstre
   Stil: ren minimalistisk nordisk layout, myke runde former
   ============================================================ */

/* CSS Custom Properties - Eco Nature Palette */
:root {
    /* Grønne toner (salvie, mosegrønn, mint, teal) */
    --eco-salvie: #9CAF88;
    --eco-moss: #6B8E5A;
    --eco-mint: #A8D5BA;
    --eco-teal: #4A9B8E;
    --eco-sage-light: #B8C5A6;
    --eco-forest: #5A7C50;
    
    /* Naturlige bakgrunner */
    --bg-nature: linear-gradient(135deg, #9CAF88 0%, #6B8E5A 50%, #4A9B8E 100%);
    --bg-leaf: linear-gradient(135deg, #A8D5BA 0%, #9CAF88 50%, #6B8E5A 100%);
    --bg-organic: linear-gradient(135deg, #B8C5A6 0%, #A8D5BA 50%, #9CAF88 100%);
    --bg-earth: linear-gradient(135deg, #6B8E5A 0%, #5A7C50 50%, #4A9B8E 100%);
    
    /* Tekstfarger */
    --text-dark: #2D3E2A;
    --text-medium: #4A5D47;
    --text-light: #F8FAF6;
    --text-nature: #5A7C50;
    
    /* Eco glow effekter */
    --leaf-glow: #A8D5BA;
    --nature-glow: #9CAF88;
    --organic-glow: #6B8E5A;
    
    /* Spacing og border radius */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-organic: 50px;
    
    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(106, 142, 90, 0.15);
    --shadow-medium: 0 8px 30px rgba(106, 142, 90, 0.2);
    --shadow-strong: 0 12px 40px rgba(106, 142, 90, 0.25);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-organic: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset og base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #F8FAF6 0%, #E8F5E8 100%);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--bg-nature);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2rem;
    color: var(--eco-forest);
}

h3 {
    font-size: 1.5rem;
    color: var(--eco-moss);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-medium);
}

a {
    color: var(--eco-teal);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--eco-forest);
    text-decoration: underline;
}

/* Container og layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-light {
    background: linear-gradient(135deg, #F8FAF6 0%, #E8F5E8 100%);
}

/* Header */
.header {
    background: rgba(248, 250, 246, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(156, 175, 136, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.nav > div {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--bg-nature);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-badge {
    background: var(--eco-moss);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-organic);
    font-size: 0.8rem;
    font-weight: 600;
    animation: ecoGlow 3s infinite;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition-organic);
}

.nav-links a:hover {
    background: var(--eco-sage-light);
    color: var(--text-dark);
    text-decoration: none;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: var(--bg-nature);
    color: var(--text-light);
    padding: var(--spacing-xl) 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"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.06)"/></svg>');
    animation: organicFloat 20s infinite linear;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.hero h1 {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    animation: leafGlow 3s infinite;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    color: rgba(248, 250, 246, 0.9);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-organic);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-organic);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--bg-leaf);
    color: var(--text-light);
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
    color: var(--text-light);
    text-decoration: none;
}

.btn-secondary {
    background: rgba(156, 175, 136, 0.1);
    color: var(--eco-forest);
    border: 2px solid var(--eco-sage-light);
}

.btn-secondary:hover {
    background: var(--eco-sage-light);
    color: var(--text-dark);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Cards */
.card {
    background: rgba(248, 250, 246, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(156, 175, 136, 0.2);
    transition: var(--transition-organic);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* Game Cards */
.game-card {
    background: rgba(248, 250, 246, 0.9);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-organic);
    cursor: pointer;
    border: 1px solid rgba(156, 175, 136, 0.2);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.game-image {
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.game-content {
    padding: var(--spacing-md);
}

.game-title {
    font-size: 1.3rem;
    color: var(--eco-forest);
    margin-bottom: var(--spacing-xs);
}

.game-description {
    color: var(--text-medium);
    font-size: 0.95rem;
}

.age-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: var(--eco-moss);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-organic);
    font-size: 0.8rem;
    font-weight: 600;
    animation: ecoGlow 3s infinite;
}

/* Grids */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid rgba(156, 175, 136, 0.3);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition-smooth);
    background: rgba(248, 250, 246, 0.8);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--eco-teal);
    box-shadow: 0 0 0 3px rgba(74, 155, 142, 0.1);
}

/* Footer */
.footer {
    background: var(--bg-earth);
    color: var(--text-light);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section ul li a {
    color: rgba(248, 250, 246, 0.8);
    transition: var(--transition-smooth);
}

.footer-section ul li a:hover {
    color: var(--text-light);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(248, 250, 246, 0.2);
    padding-top: var(--spacing-md);
    text-align: center;
}

.footer-disclaimer {
    font-size: 0.9rem;
    color: rgba(248, 250, 246, 0.7);
    margin-top: var(--spacing-xs);
}

/* Game Warning */
.game-warning {
    background: rgba(106, 142, 90, 0.1);
    color: var(--eco-forest);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    margin-top: var(--spacing-md);
    border: 2px solid rgba(106, 142, 90, 0.2);
}

/* Demo Header */
.demo-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.demo-header h2 {
    color: var(--eco-forest);
    margin-bottom: var(--spacing-sm);
}

.demo-header p {
    color: var(--text-medium);
    font-size: 1.1rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: var(--spacing-lg);
}

.mt-4 {
    margin-top: var(--spacing-lg);
}

/* Animations */
@keyframes leafGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(168, 213, 186, 0.5);
    }
    50% {
        text-shadow: 0 0 30px rgba(168, 213, 186, 0.8), 0 0 40px rgba(156, 175, 136, 0.3);
    }
}

@keyframes ecoGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(106, 142, 90, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(106, 142, 90, 0.6), 0 0 30px rgba(168, 213, 186, 0.2);
    }
}

@keyframes organicFloat {
    0% {
        transform: translateX(-100px);
    }
    100% {
        transform: translateX(calc(100vw + 100px));
    }
}

@keyframes leafPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes natureBreathe {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.05) rotate(2deg);
    }
}

@keyframes ecoShimmer {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-md);
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-lg: 1.5rem;
    }
    
    .nav {
        flex-direction: column;
        gap: var(--spacing-sm);
        padding: var(--spacing-sm);
    }
    
    .nav-links {
        gap: var(--spacing-sm);
        flex-wrap: wrap;
        justify-content: center;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-content {
        padding: 0 var(--spacing-sm);
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .card {
        padding: var(--spacing-md);
    }
    
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .game-image {
        height: 150px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .btn {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}
