/* style.css - NextPixel.se */
/* Code • Build • Evolve */
/* PREMIUM EDITION - Marinblå & Guld */

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

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

body {
    font-family: 'Inter', sans-serif;
    background: #050C14;
    color: #E8EDF2;
    line-height: 1.5;
    position: relative;
}

/* ============================================ */
/* PREMIUM FÄRGER - MARINBLÅ & GULD */
/* ============================================ */
:root {
    --navy-black: #050C14;
    --navy-deep: #0A1C2E;
    --navy-light: #1A2F44;
    --gold-polished: #D4AF37;
    --gold-bright: #F5D76E;
    --gold-dark: #A67C00;
    --text-muted: #8AA1B9;
    --container-width: 1280px;
}

/* ============================================ */
/* HUVUDCONTAINER */
/* ============================================ */
.main-wrapper {
    max-width: var(--container-width);
    margin: 0 auto;
    background: transparent !important;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

.container {
    padding: 0 2rem;
}

/* ============================================ */
/* TYPOGRAFI */
/* ============================================ */
h1, h2, h3 {
    letter-spacing: -0.02em;
}

p {
    color: var(--text-muted);
}

/* ============================================ */
/* VATTENSTÄMPEL */
/* ============================================ */
.bg-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25vw;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px rgba(212, 175, 55, 0.04);
    z-index: 0;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    letter-spacing: 0.1em;
}

/* ============================================ */
/* HEADER & NAVIGATION */
/* ============================================ */
header {
    background: rgba(10, 28, 46, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 0;
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

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

.logo-img {
    height: 36px;
    width: auto;
    transition: opacity 0.2s;
}

.logo-img:hover {
    opacity: 0.85;
}

.logo-text {
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #E8EDF2;
    font-size: 1rem;
    transition: color 0.2s;
}

.logo-text:hover {
    color: var(--gold-polished);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu .menu-item {
    position: relative;
}

.main-menu-link {
    color: #E8EDF2;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.5rem 0;
    display: inline-block;
    transition: color 0.2s ease;
    position: relative;
}

.main-menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-polished);
    transition: width 0.25s ease;
}

.main-menu-link:hover::after {
    width: 100%;
}

.main-menu-link:hover {
    color: var(--gold-polished);
}

.admin-link {
    color: #E8EDF2;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.5rem 0;
    display: inline-block;
    transition: color 0.2s ease;
    border-left: 1px solid rgba(212, 175, 55, 0.3);
    padding-left: 1.5rem;
    margin-left: 0.5rem;
}

.admin-link:hover {
    color: var(--gold-polished);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10, 28, 46, 0.95);
    backdrop-filter: blur(12px);
    min-width: 200px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-top: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 100;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.nav-menu .menu-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    color: #E8EDF2;
    text-decoration: none;
    display: block;
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-polished);
    padding-left: 1.5rem;
}

.burger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #E8EDF2;
}

/* ============================================ */
/* VIDEO HERO */
/* ============================================ */
.video-hero-center {
    padding: 1rem 0 0rem 0;
}

.video-hero-wrapper {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.video-hero-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.video-hero-player {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.video-hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: var(--gold-polished);
    filter: blur(80px);
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
    border-radius: 50%;
}

.video-hero-text {
    margin-top: 0.8rem;
}

.video-hero-lead {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

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

/* ============================================ */
/* HERO - MED GRADIENT OCH GLOW */
/* ============================================ */
.hero {
    padding: 4rem 0 5rem 0;
    text-align: center;
    background: radial-gradient(
        circle at center,
        rgba(212, 175, 55, 0.08),
        transparent 60%
    );
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.tagline {
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    color: var(--gold-polished);
    font-weight: 600;
    margin: 0.5rem 0 1rem 0;
}

.hero-buttons {
    margin-top: 1rem;
}

/* ============================================ */
/* PREMIUM KNAPPAR - GULD */
/* ============================================ */
.btn-primary {
    display: inline-block;
    background: var(--gold-polished);
    color: var(--navy-black);
    border: none;
    padding: 0.8rem 2rem;
    margin: 0.5rem;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--gold-bright);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--gold-polished);
    color: var(--gold-polished);
    padding: 0.8rem 2rem;
    margin: 0.5rem;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--gold-polished);
    color: var(--navy-black);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

/* Behåll gamla klasser för kompatibilitet */
.btn-gold {
    display: inline-block;
    background: var(--gold-polished);
    color: var(--navy-black);
    border: none;
    padding: 0.8rem 2rem;
    margin: 0.5rem;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-gold:hover {
    background: var(--gold-bright);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-gold-filled {
    background: var(--gold-polished);
    color: var(--navy-black);
}

/* ============================================ */
/* SECTION HEADER */
/* ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    background: var(--gold-polished);
    color: var(--navy-black);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-title-glitch {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    color: var(--gold-polished);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================ */
/* GAME CARDS - MED HOVER OVERLAY */
/* ============================================ */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.game-card {
    position: relative;
    background: linear-gradient(145deg, rgba(10, 28, 46, 0.9), rgba(5, 12, 20, 0.9));
    backdrop-filter: blur(4px);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold-polished);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.game-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: none !important;
}

.game-card:hover .game-card-image img {
    transform: scale(1.05);
}

.game-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--navy-light), var(--navy-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gold-polished);
}

.game-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-card-overlay {
    opacity: 1;
}

.game-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gold-polished);
    color: var(--navy-black);
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
}

.game-card-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.game-card-content h3 {
    color: var(--gold-polished);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.game-card-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.game-card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(212, 175, 55, 0.15);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.game-card-link {
    color: var(--gold-polished);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.game-card-link:hover {
    gap: 0.8rem;
    color: var(--gold-bright);
}

/* ============================================ */
/* DEVLOG CARDS */
/* ============================================ */
.devlog-section {
    padding: 3rem 0;
}

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

.devlog-card {
    background: linear-gradient(145deg, rgba(10, 28, 46, 0.9), rgba(5, 12, 20, 0.9));
    backdrop-filter: blur(4px);
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.devlog-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-polished);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

.devlog-date {
    font-size: 0.7rem;
    color: var(--gold-polished);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.devlog-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: white;
}

.devlog-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.devlog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.devlog-tag {
    font-size: 0.65rem;
    color: var(--text-muted);
    background: rgba(212, 175, 55, 0.15);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
}

.devlog-link {
    color: var(--gold-polished);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.devlog-link:hover {
    gap: 0.8rem;
    color: var(--gold-bright);
}

/* ============================================ */
/* ROADMAP - GAME DEV JOURNEY */
/* ============================================ */
.roadmap-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.03), transparent);
    border-radius: 24px;
    margin: 1rem 0;
}

.total-progress-container {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    padding: 1.5rem;
    background: linear-gradient(145deg, rgba(10, 28, 46, 0.6), rgba(5, 12, 20, 0.6));
    border-radius: 16px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.total-progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.total-progress-percent {
    color: var(--gold-polished);
}

.total-progress-bar {
    height: 8px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.total-progress-fill {
    height: 100%;
    background: var(--gold-polished);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.total-progress-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.stat-badge {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(212, 175, 55, 0.1);
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
}

.stat-badge i {
    color: var(--gold-polished);
    margin-right: 0.3rem;
}

/* Milestone Cards */
.roadmap-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.milestone-card {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(145deg, rgba(10, 28, 46, 0.6), rgba(5, 12, 20, 0.6));
    backdrop-filter: blur(4px);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.milestone-card.achieved {
    border-left: 3px solid var(--gold-polished);
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.1), rgba(5, 12, 20, 0.6));
}

.milestone-card:hover {
    transform: translateX(10px) scale(1.02);
    border-color: var(--gold-polished);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

.milestone-marker {
    flex-shrink: 0;
    text-align: center;
}

.milestone-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--navy-light), var(--navy-deep));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--gold-polished);
    border: 2px solid var(--gold-polished);
}

.milestone-card.achieved .milestone-icon {
    background: var(--gold-polished);
    color: var(--navy-black);
    border: none;
}

.milestone-content {
    flex: 1;
}

.milestone-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.milestone-year {
    font-size: 0.7rem;
    color: var(--gold-polished);
    letter-spacing: 0.05em;
}

.milestone-badge {
    font-size: 0.7rem;
    background: rgba(212, 175, 55, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    color: var(--gold-polished);
}

.progress-badge {
    color: var(--gold-polished);
}

.milestone-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.milestone-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.milestone-progress {
    margin-bottom: 0.5rem;
}

.milestone-progress-bar {
    height: 4px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.milestone-progress-fill {
    height: 100%;
    background: var(--gold-polished);
    border-radius: 2px;
}

.milestone-status {
    font-size: 0.7rem;
    color: var(--gold-polished);
}

.milestone-status.completed {
    color: #4caf50;
}

.milestone-status.next-up {
    color: var(--text-muted);
}

/* ============================================ */
/* OM MIG SEKTION */
/* ============================================ */
.about-box {
    max-width: 800px;
    background: linear-gradient(145deg, rgba(10, 28, 46, 0.8), rgba(5, 12, 20, 0.8));
    backdrop-filter: blur(8px);
    padding: 2.5rem;
    border-left: 4px solid var(--gold-polished);
    margin: 2rem 0 3rem;
    border-radius: 8px;
}

.about-lead {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: white;
}

.about-tags {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.category-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    padding: 0.25rem 0.9rem;
    font-size: 0.7rem;
    border-radius: 20px;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gold-polished);
}

/* ============================================ */
/* KONTAKT */
/* ============================================ */
.contact-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0 4rem;
}

/* ============================================ */
/* FOOTER */
/* ============================================ */
footer {
    background: rgba(5, 12, 20, 0.8);
    backdrop-filter: blur(4px);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--gold-polished);
    margin-top: 3rem;
}

.footer-tagline {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 0.5rem;
}

/* ============================================ */
/* MODAL */
/* ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 12, 20, 0.95);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: linear-gradient(145deg, var(--navy-deep), var(--navy-black));
    backdrop-filter: blur(8px);
    padding: 2.5rem;
    border-left: 4px solid var(--gold-polished);
    width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--gold-polished);
}

.modal-content .logo {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold-polished), var(--gold-bright));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.modal-content h2 {
    color: var(--gold-polished);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 0.8rem;
    margin: 0.7rem 0;
    background: var(--navy-light);
    border: 1px solid #2A4158;
    color: white;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.modal-content input:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: var(--gold-polished);
}

.modal-content button {
    background: var(--gold-polished);
    color: var(--navy-black);
    padding: 0.8rem;
    border: none;
    width: 100%;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.modal-content button:hover {
    background: var(--gold-bright);
    transform: translateY(-2px);
}

.modal-error {
    background: rgba(255, 107, 107, 0.2);
    border-left: 4px solid #ff6b6b;
    padding: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #ff6b6b;
    border-radius: 4px;
}

.modal-success {
    background: rgba(212, 175, 55, 0.2);
    border-left: 4px solid var(--gold-polished);
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    color: var(--gold-polished);
}

.modal-links {
    text-align: center;
    margin-top: 1rem;
}

.modal-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
}

.modal-links a:hover {
    color: var(--gold-polished);
}

/* ============================================ */
/* SPLASH INTRO - MAX 2 SEK */
/* ============================================ */
.splash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: #050C14;
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.splash-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.splash-motion-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(5, 12, 20, 0.3) 0%, rgba(212, 175, 55, 0.1) 30%, rgba(212, 175, 55, 0.02) 50%, rgba(212, 175, 55, 0.1) 70%, rgba(5, 12, 20, 0.3) 100%);
    z-index: 2;
}

.skip-splash-btn {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    font-size: 0.8rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.skip-splash-btn:hover {
    background: var(--gold-polished);
    color: var(--navy-black);
    transform: translateY(-2px);
}

.splash-loader-container {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.splash-loader {
    width: 120px;
    height: 2px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.splash-loader-progress {
    width: 0%;
    height: 100%;
    background: var(--gold-polished);
    transition: width 0.1s linear;
}

#mainContent {
    opacity: 0;
    visibility: hidden;
}

/* ============================================ */
/* TEMAVÄXLING - LIGHT THEME */
/* ============================================ */
.theme-toggle-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gold-polished);
    border: none;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--navy-black);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
    background: var(--gold-bright);
}

body.light-theme {
    background: #F5F5F0;
    color: #1A1A2E;
}

body.light-theme .main-wrapper {
    background: transparent !important;
}

body.light-theme .bg-watermark {
    -webkit-text-stroke: 1px rgba(212, 175, 55, 0.1);
}

body.light-theme .card,
body.light-theme .game-card,
body.light-theme .devlog-card,
body.light-theme .milestone-card,
body.light-theme .about-box,
body.light-theme .modal-content {
    background: rgba(255, 255, 255, 0.9) !important;
}

body.light-theme .game-card-content h3,
body.light-theme .devlog-card h3,
body.light-theme .milestone-content h3 {
    color: #1A1A2E;
}

body.light-theme .tagline {
    color: var(--gold-dark);
}

/* ============================================ */
/* RESPONSIV */
/* ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 1.2rem;
    }
    
    .burger {
        display: block;
    }
    
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        background: rgba(10, 28, 46, 0.98);
        backdrop-filter: blur(12px);
        padding: 1rem 0;
        margin-top: 1rem;
        gap: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu .menu-item {
        width: 100%;
        text-align: center;
    }
    
    .main-menu-link {
        display: block;
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .main-menu-link::after {
        display: none;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: rgba(26, 47, 68, 0.6);
        border: none;
        margin-top: 0;
        width: 100%;
    }
    
    .nav-menu .menu-item.active-dropdown .dropdown-menu {
        display: block;
    }
    
    .admin-link {
        border-left: none;
        margin-left: 0;
        padding: 0.8rem;
        display: block;
    }
    
    .hero {
        padding: 2rem 0 3rem 0;
    }
    
    .tagline {
        font-size: 0.8rem;
    }
    
    .section-title-glitch {
        font-size: 1.5rem;
    }
    
    .total-progress-stats {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .milestone-card {
        flex-direction: column;
        gap: 1rem;
    }
    
    .milestone-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .game-grid,
    .devlog-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 90%;
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .skip-splash-btn {
        bottom: 1rem;
        right: 1rem;
        padding: 0.4rem 1rem;
        font-size: 0.7rem;
    }
    
    .theme-toggle-btn {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .bg-watermark {
        font-size: 30vw;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .nav-menu {
        gap: 1.5rem;
    }
}

/* ============================================ */
/* PRESTANDA & TILLGÄNGLIGHET */
/* ============================================ */
html {
    scroll-behavior: smooth;
}

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

body.user-is-tabbing :focus {
    outline: 2px solid var(--gold-polished);
    outline-offset: 2px;
}
/* Game embed styling */
.game-embed-container {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #0a0a1a;
}

.game-iframe {
    width: 100%;
    height: 70vh;
    min-height: 550px;
    border: none;
    display: block;
}

@media (max-width: 768px) {
    .game-iframe {
        height: 60vh;
        min-height: 450px;
    }
}
/* ============================================ */
/* FÖRBÄTTRAD LÄSBARHET FÖR BLOGGINLÄGG
/* ============================================ */

/* Artikel-wrapper – ger en mjuk bakgrund och skugga */
.content-section article {
    background: rgba(10, 28, 46, 0.6);
    backdrop-filter: blur(2px);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.15);
}

/* Själva texten – mjukare kontrast */
.content-section article p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #E8EDF2;
    margin-bottom: 1.2rem;
}

/* Rubriker i blogginlägg */
.content-section article h1,
.content-section article h2,
.content-section article h3 {
    color: var(--gold-polished);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-section article h1 {
    font-size: 2rem;
    border-left: 3px solid var(--gold-polished);
    padding-left: 1rem;
}

.content-section article h2 {
    font-size: 1.6rem;
}

.content-section article h3 {
    font-size: 1.3rem;
}

/* Listor i blogginlägg */
.content-section article ul,
.content-section article ol {
    margin: 1rem 0 1rem 2rem;
    color: var(--text-muted);
    line-height: 1.6;
}

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

/* Citat */
.content-section article blockquote {
    background: rgba(212, 175, 55, 0.1);
    border-left: 3px solid var(--gold-polished);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--gold-bright);
    border-radius: 0 8px 8px 0;
}

/* Koder i blogginlägg */
.content-section article code {
    background: rgba(0, 0, 0, 0.4);
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--gold-bright);
}

.content-section article pre {
    background: rgba(5, 12, 20, 0.8);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.content-section article pre code {
    background: transparent;
    padding: 0;
    color: #E8EDF2;
}

/* Bilder i blogginlägg */
.content-section article img {
    max-width: 100%;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Ljus tema – anpassning för läsbarhet */
body.light-theme .content-section article {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-theme .content-section article p {
    color: #1A1A2E;
}

body.light-theme .content-section article code {
    background: rgba(0, 0, 0, 0.05);
    color: var(--gold-dark);
}

body.light-theme .content-section article pre {
    background: #F5F5F0;
    border-color: rgba(166, 124, 0, 0.2);
}

body.light-theme .content-section article blockquote {
    background: rgba(166, 124, 0, 0.05);
}
/* ============================================ */
/* REDIGERINGSLÄGE – TYDLIGA KNAPPAR
/* ============================================ */

/* Redigeringslänk (edit-mode-bar) */
.edit-mode-bar {
    background: var(--gold-polished) !important;
    color: var(--navy-black) !important;
    padding: 0.8rem 1.2rem !important;
    text-align: center;
    font-weight: 700 !important;
    margin-bottom: 2rem;
    border-radius: 40px !important;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.edit-mode-bar i {
    font-size: 1rem;
}

.edit-mode-bar .edit-link,
.edit-mode-bar a {
    background: var(--navy-black) !important;
    color: var(--gold-polished) !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 40px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none !important;
}

.edit-mode-bar .edit-link:hover,
.edit-mode-bar a:hover {
    background: var(--navy-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.edit-mode-bar .cancel-edit {
    background: rgba(255, 255, 255, 0.2) !important;
    color: var(--navy-black) !important;
}

.edit-mode-bar .cancel-edit:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

/* Alternativ – om din redigeringslänk sitter i en annan container */
.edit-link, 
.content-section .edit-link,
article .edit-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gold-polished);
    color: var(--navy-black);
    padding: 0.4rem 1rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.edit-link:hover,
.content-section .edit-link:hover {
    background: var(--gold-bright);
    transform: translateY(-2px);
    color: var(--navy-black);
}

/* TinyMCE-redigeringsläge – knappar */
.tinymce-submit {
    background: var(--gold-polished) !important;
    color: var(--navy-black) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 40px !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tinymce-submit:hover {
    background: var(--gold-bright) !important;
    transform: translateY(-2px);
}
