/* Reset og basis styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Aldersverifikasjon banner */
.age-banner {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 12px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.banner-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.age-icon {
    background: white;
    color: #dc3545;
    font-weight: bold;
    font-size: 18px;
    padding: 8px 12px;
    border-radius: 50%;
    min-width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-text {
    font-weight: 600;
    font-size: 16px;
}

/* Header og navigasjon */
header {
    background: #2c3e50;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 60px;
    z-index: 999;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo h1 {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    background: linear-gradient(45deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu li a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    padding: 20px 15px;
    display: block;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #3498db;
    border-bottom-color: #3498db;
    background-color: rgba(52, 152, 219, 0.1);
}

/* Hovedinnhold */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero seksjon */
.hero {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    margin: 40px 0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 20px;
    opacity: 0.9;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.7;
}

/* Page hero for undersider */
.page-hero {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    border-radius: 15px;
    margin: 40px 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-hero .hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.last-updated {
    font-size: 0.95rem;
    opacity: 0.8;
    font-style: italic;
}

/* Spill seksjon */
.game-section {
    margin: 60px 0;
    text-align: center;
}

.game-section h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #2c3e50;
    font-weight: 600;
}

.game-container {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 0 auto;
    max-width: 1000px;
}

.game-frame {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 10px;
    background: #f8f9fa;
}

/* Funksjoner seksjon */
.features {
    margin: 60px 0;
}

.features h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #2c3e50;
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #3498db;
    font-weight: 600;
}

.feature p {
    color: #666;
    line-height: 1.6;
}

/* Innholdsseksjoner */
.content {
    margin: 60px 0;
}

.content-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.content h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
    font-weight: 600;
}

.content h3 {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #34495e;
    font-weight: 600;
}

.content p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #555;
    font-size: 1.05rem;
}

.content ul {
    margin: 20px 0;
    padding-left: 30px;
}

.content li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #555;
}

/* Verdier og kontaktmetoder */
.values-grid,
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.value,
.contact-method {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.value h3,
.contact-method h3 {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* FAQ seksjon */
.faq-section {
    margin: 30px 0;
}

.faq-item {
    background: #f8f9fa;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 10px;
    border-left: 4px solid #27ae60;
}

.faq-item h3 {
    color: #27ae60;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.faq-item p {
    margin-bottom: 0;
}

/* Footer */
footer {
    background: #2c3e50;
    color: #ecf0f1;
    margin-top: 80px;
}

.disclaimer {
    background: #e74c3c;
    padding: 30px 20px;
    text-align: center;
}

.disclaimer h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.disclaimer p {
    color: white;
    line-height: 1.6;
    max-width: 1000px;
    margin: 0 auto;
}

.disclaimer a {
    color: #fff;
    text-decoration: underline;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    color: #3498db;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p {
    line-height: 1.6;
    color: #bdc3c7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding: 20px;
    text-align: center;
    background: #34495e;
}

.footer-bottom p {
    margin: 5px 0;
    color: #bdc3c7;
}

.age-requirement {
    font-weight: bold;
    color: #e74c3c !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #2c3e50;
        gap: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }
    
    .nav-menu li a {
        padding: 15px 20px;
        border-bottom: 1px solid #34495e;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .features-grid,
    .values-grid,
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .content-wrapper {
        padding: 25px;
    }
    
    .game-frame {
        height: 400px;
    }
    
    .banner-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .banner-text {
        font-size: 14px;
    }
    
    nav {
        flex-direction: column;
        padding: 15px 20px;
    }
    
    .logo {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 20px;
        margin: 20px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .page-hero {
        padding: 30px 20px;
        margin: 20px 0;
    }
    
    .page-hero h1 {
        font-size: 1.6rem;
    }
    
    .content-wrapper {
        padding: 20px;
    }
    
    .game-frame {
        height: 350px;
    }
    
    .age-icon {
        min-width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Tilgjengelighet */
a:focus,
button:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Print styling */
@media print {
    .age-banner,
    header,
    .game-section,
    footer {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .content-wrapper {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* 404 Page Specific Styles */
.error-content {
    text-align: center;
    padding: 60px 40px;
}

.error-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.error-features {
    margin-top: 40px;
}

.action-button {
    display: inline-block;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    margin-top: 15px;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.action-button.primary {
    background: #3498db;
}

.action-button.success {
    background: #27ae60;
}

.action-button.danger {
    background: #e74c3c;
}