/* style.css (Version anpassad för den nya hemsidestrukturen) */

/* ============================================= */
/* == 1. GRUNDLÄGGANDE STIL & LAYOUT          == */
/* ============================================= */

body {
    /* Bakgrundsbilden sätts direkt i HTML/PHP, denna kan vara en fallback */
    background-color: #111827; /* Mörkgrå fallback */
}

/* Anpassad bakgrundsbild för body via en klass (mer flexibelt) */
.body-bg-image {
    background: url('https://n4lt4eljest.com/assets/images/gamingsetup.png') no-repeat center center fixed;
    background-size: cover;
}

main {
    /* Ger ett litet "lager" mellan innehåll och bakgrundsbild för bättre läsbarhet */
    background-color: rgba(17, 24, 39, 0.80);
    backdrop-filter: blur(4px);
}

/* ============================================= */
/* == 2. TYPOGRAFI & GENERELLA KOMPONENTER    == */
/* ============================================= */

/* Text med gradient-effekt */
.gradient-text {
    background: linear-gradient(to right, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Sektionsrubrik (ersätter .section-title-bg för en renare look) */
.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 2rem;
    text-align: center;
}

/* ============================================= */
/* == 3. NAVIGATION (HEADER)                  == */
/* ============================================= */
/* Desktop Navigation Länkar */

.nav-link {
    padding: 0.5rem 0;
    font-size: 0.8rem; /* Lite mindre text */
    font-weight: 500;  /* Lite tunnare text */
    color: #d1d5db;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
    text-decoration: none;
    white-space: nowrap; /* Tvingar texten att stanna på en rad */
}

.nav-link:hover {
    color: #a855f7;
}


/* Effekt med understrykning */
.underline-hover-effect::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px; /* Lite avstånd från texten */
    width: 100%;
    height: 2px;
    background-color: #a855f7;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease-in-out;
}

.underline-hover-effect:hover::after,
.active-link::after { /* Gäller både vid hover och för aktiv sida */
    transform: scaleX(1);
}

/* Stil för aktiv länk */
.active-link {
    color: #a855f7; /* Gör aktiv länk vit och tydlig */
}

/* Mobil Navigation Länkar */
.nav-link-mobile {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
    color: #d1d5db;
    transition: all 0.2s ease;
}

.nav-link-mobile:hover,
.nav-link-mobile.active-link {
    background-color: #374151;
    color: #ffffff;
}

/* === Dropdown Meny === */
.dropdown {
    position: relative; /* Nödvändig för att positionera dropdown-innehållet */
}

.dropdown-content {
    display: none; /* Dold som standard */
    position: absolute;
    top: 100%; /* Placeras precis under föräldern */
    left: 50%;
    transform: translateX(-50%); /* Centrerar menyn under knappen */
    background-color: #1f2937; /* Mörk bakgrund */
    min-width: 220px; /* Bredd på menyn */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 1;
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    border: 1px solid #374151;
}

/* Visa dropdown-menyn vid hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Länkar inuti dropdown-menyn */
.dropdown-content a {
    color: #d1d5db;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.dropdown-content a:hover {
    background-color: #374151;
    color: #ffffff;
}

/* ============================================= */
/* == 4. KORT-KOMPONENTER (Support, Blogg etc) == */
/* ============================================= */

/* INFLYTTAD FRÅN HEADER.PHP: Glow-effekt för Support-korten */
.support-card {
    border: 1px solid transparent;
    transition: transform 0.3s ease;
}
.support-card.twitch:hover {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.8), 0 0 30px rgba(139, 92, 246, 0.5);
    border-color: rgba(139, 92, 246, 0.7);
}
.support-card.patreon:hover {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.8), 0 0 30px rgba(59, 130, 246, 0.5);
    border-color: rgba(59, 130, 246, 0.7);
}
.support-card.streamlabs:hover {
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.8), 0 0 30px rgba(34, 197, 94, 0.5);
    border-color: rgba(34, 197, 94, 0.7);
}


/* Stil för blogg-korten (från din gamla CSS, lite justerad) */
.blog-card {
    background: linear-gradient(135deg, #1f2937, #374151);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.blog-image {
    height: 180px;
    width: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Gör att innehållet växer och knappen hamnar i botten */
}

/* ============================================= */
/* == 5. ÖVRIGT & SPECIFIKA REGLER            == */
/* ============================================= */

/* Text med en subtil skugga för bättre läsbarhet mot bilder */
.glow-text {
    text-shadow: 0 0 8px #a855f7, 0 0 20px #9333ea;
}

/* =================================================== */
/* == STILAR FÖR SIDAN "VALLEY OF THE NORTH"        == */
/* =================================================== */

/* Genom att använda .page-valley ser vi till att dessa stilar
   bara gäller på den specifika sidan. */

.page-valley .content-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(17, 24, 39, 0.7); /* Matchar din mörka design */
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #d1d5db; /* Ljusgrå text för läsbarhet */
}

.page-valley h1, .page-valley h2 {
    font-weight: 600;
    color: #ffffff; /* Vit text för rubriker */
}

.page-valley h1 {
    font-size: 3em;
    margin-bottom: 30px;
}

.page-valley h2 {
    font-size: 2em;
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-valley p {
    font-size: 1.2em;
    line-height: 1.6;
}

.page-valley .gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.page-valley .gallery img {
    max-width: 250px;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-valley .gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

.page-valley .timeline {
    margin-top: 40px;
    position: relative;
    text-align: left;
}

.page-valley .timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%);
}

.page-valley .timeline-item {
    position: relative;
    width: 45%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    margin: 30px 0;
    color: #d1d5db;
}

.page-valley .timeline-item:nth-child(odd) {
    float: left;
    clear: both;
}

.page-valley .timeline-item:nth-child(even) {
    float: right;
    clear: both;
}

.page-valley .timeline-item h3 {
    margin-bottom: 5px;
    font-size: 1.5em;
    font-weight: bold;
    color: #ffffff;
}

/* Lightbox för bildvisning */
#image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none; /* Dold som standard */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#image-lightbox.active {
    display: flex; /* Visas med JS */
}

#image-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

/* =================================================== */
/* == STILAR FÖR SIDAN "FROZEN SHADOWS"           == */
/* =================================================== */

.page-frozenshadows .content-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(17, 24, 39, 0.7); /* Matchar din mörka design */
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #d1d5db; /* Ljusgrå text */
}

.page-frozenshadows h1, .page-frozenshadows h2 {
    font-weight: 600;
    color: #ffffff;
}

.page-frozenshadows h1 {
    font-size: 3em;
    margin-bottom: 30px;
}

.page-frozenshadows h2 {
    font-size: 2em;
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-frozenshadows p {
    font-size: 1.2em;
    line-height: 1.6;
}

/* Anpassad styling för video-spelaren */
.page-frozenshadows .video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 format */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}

.page-frozenshadows .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.page-frozenshadows .timeline {
    margin-top: 40px;
    position: relative;
    text-align: left;
}

.page-frozenshadows .timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%);
}

.page-frozenshadows .timeline-item {
    position: relative;
    width: 45%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    margin: 30px 0;
    color: #d1d5db;
}

.page-frozenshadows .timeline-item:nth-child(odd) {
    float: left;
    clear: both;
}

.page-frozenshadows .timeline-item:nth-child(even) {
    float: right;
    clear: both;
}

.page-frozenshadows .timeline-item h3 {
    margin-bottom: 5px;
    font-size: 1.5em;
    font-weight: bold;
    color: #ffffff;
}

/* =================================================== */
/* == FIX FÖR SIDFOTEN PÅ TIDSLINJE-SIDORNA        == */
/* =================================================== */

/* Denna 'clearfix' tvingar .timeline-containern att expandera
   och omsluta sina "svävande" (floated) element, vilket
   puttar ner sidfoten till sin korrekta plats. */

.page-valley .timeline::after,
.page-frozenshadows .timeline::after {
    content: "";
    display: table;
    clear: both;
}
/* Nollställ cache version 2 */