/* CSS for AdventureLabQuests – Onlinespill og gaming */
:root {
    --dark-charcoal: #1a1a1d;
    --deep-crimson: #a4161a;
    --fiery-orange: #e5383b;
    --bright-red: #ba181b;
    --bg-dark: #16161a;
    --text-light: #e0e0e0;
    --card-bg: #232328;
    --border-glow: rgba(255, 83, 26, 0.4);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.7;
}

h1, h2, h3, h4, h5 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1.25rem;
}

a {
    color: var(--fiery-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--bright-red);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.quest-header {
    background-color: #121215;
    border-bottom: 3px solid var(--deep-crimson);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.alq-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--fiery-orange);
}

.logo-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1.5px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    padding: 0.6rem 0;
    border-bottom: 3px solid transparent;
    transition: border-color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    border-bottom-color: var(--fiery-orange);
    color: #fff;
}

.clock-container {
    color: var(--fiery-orange);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    border: 1px solid var(--border-glow);
    padding: 6px 15px;
    border-radius: 30px;
}

/* Hero Section Home */
.hero-section {
    position: relative;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 800px;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.8rem;
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--deep-crimson), var(--fiery-orange));
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    margin-top: 2rem;
    box-shadow: 0 5px 20px rgba(229, 56, 59, 0.4);
    transition: transform 0.3s;
}

.cta-button:hover {
    transform: scale(1.05);
}

/* Section Generelt */
.feature-section,
.latest-posts-section,
.about-promo-section,
.blog-header-section,
.blog-listing,
.contact-info-section,
.contact-form-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

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

.feature-card {
    background-color: var(--card-bg);
    border-radius: 14px;
    padding: 1.8rem;
    border: 1px solid rgba(255,255,255,0.05);
    transition: border-color 0.3s;
    text-align: center;
}

.feature-card:hover {
    border-color: var(--deep-crimson);
}

.feature-card img {
    border-radius: 12px;
    margin-bottom: 1.2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.9rem;
}

/* Posts grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.2rem;
}

.post-preview {
    background-color: var(--card-bg);
    border-radius: 14px;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-preview:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.06);
}

.post-preview img {
    border-radius: 10px;
    margin-bottom: 1rem;
}

.post-preview h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--fiery-orange);
}

.read-more:hover {
    text-decoration: underline;
}

/* Promo seksjon */
.about-promo-section {
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.promo-content {
    max-width: 800px;
}

.secondary-button {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--fiery-orange);
    color: var(--fiery-orange);
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.secondary-button:hover {
    background-color: var(--deep-crimson);
    color: #fff;
    border-color: var(--deep-crimson);
}

/* Footer */
.quest-footer {
    background-color: #121215;
    border-top: 3px solid var(--deep-crimson);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
    margin-top: 0.8rem;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: var(--text-light);
}

.footer-links a:hover {
    color: var(--fiery-orange);
}

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

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1c1c1f;
    padding: 1.5rem 2rem;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.7);
    z-index: 1000;
    display: none;
    border-top: 2px solid var(--deep-crimson);
}

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

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-content p {
    margin-bottom: 0.5rem;
}

.cookie-btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.accept-all {
    background: var(--fiery-orange);
    color: #fff;
}

.accept-all:hover {
    background: var(--deep-crimson);
}

.customize {
    background: #333;
    color: var(--text-light);
}

.customize:hover {
    background: #444;
}

.reject {
    background: transparent;
    border: 2px solid #555;
    color: var(--text-light);
}

.reject:hover {
    background: #333;
}

/* Blog listing */
.blog-header-section {
    text-align: center;
}

.blog-entry {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    background-color: var(--card-bg);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.blog-entry img {
    border-radius: 12px;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.entry-content h3 {
    font-size: 1.8rem;
}

/* About */
.about-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.about-hero {
    margin-bottom: 2rem;
}

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

.team-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.team-card img {
    border-radius: 50%;
    margin: 0 auto 1.2rem;
}

.value-list {
    margin-top: 2rem;
}

.value-item {
    margin-bottom: 1.5rem;
}

/* Contact*/
.contact-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.contact-details {
    margin: 2.5rem 0;
    background-color: var(--card-bg);
    padding: 1.8rem;
    border-radius: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--fiery-orange);
}

.contact-form-section {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 2rem;
    margin-top: 2rem;
}

.contact-form-section label {
    display: block;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.4rem;
}

.contact-form-section input,
.contact-form-section textarea {
    width: 100%;
    padding: 0.9rem;
    border-radius: 8px;
    border: 1px solid #333;
    background-color: #2a2a2e;
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
}

.contact-form-section input:focus,
.contact-form-section textarea:focus {
    outline: 2px solid var(--fiery-orange);
    border-color: transparent;
}

.submit-btn {
    background: linear-gradient(135deg, var(--deep-crimson), var(--fiery-orange));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1.5rem;
    cursor: pointer;
    transition: opacity 0.3s;
}

.submit-btn:hover {
    opacity: 0.85;
}

.form-feedback {
    background: var(--deep-crimson);
    color: white;
    padding: 1rem;
    margin-top: 1.5rem;
    border-radius: 8px;
}

/* Post */
.post-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.full-post {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem;
}

.post-meta {
    opacity: 0.7;
    font-size: 0.9rem;
}

.post-hero-image {
    border-radius: 12px;
    margin: 2rem 0 2.5rem;
}

.back-to-blog {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.7rem 1.5rem;
    background: #333;
    border-radius: 8px;
    color: var(--text-light);
    transition: background 0.3s;
}

.back-to-blog:hover {
    background: #555;
}

/* Responsiv */
@media (max-width: 900px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .blog-entry {
        grid-template-columns: 1fr;
    }

    .blog-entry img {
        width: 100%;
        height: auto;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width : 600px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

h1, h2, h3, h4, h5, h6 {word-break: break-word;}
