/*
Theme Name: Dissonans
Theme URI: https://podcastendissonans.se
Author: Dissonans
Author URI: https://podcastendissonans.se
Description: Custom cinematic theme for Dissonans podcast. Dark, intelligent design focused on investigative storytelling.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dissonans
Domain Path: /languages
*/

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */
:root {
    /* Colors */
    --color-bg-primary: #050505;
    --color-bg-secondary: #0e0e0e;
    --color-bg-tertiary: #141414;
    --color-bg-card: #1a1a1a;
    --color-bg-card-hover: #222222;
    --color-border: #2a2a2a;
    --color-border-light: #333333;

    --color-text-primary: #e8e8e8;
    --color-text-secondary: #a0a0a0;
    --color-text-muted: #666666;
    --color-text-inverse: #0a0a0a;

    --color-accent: #8b1a1a;
    --color-accent-hover: #a32020;
    --color-accent-light: #c41e3a;
    --color-gold: #c9a84c;
    --color-gold-hover: #dbb95a;
    --color-gold-dark: #8a7535;

    /* Typography */
    --font-heading: 'Cinzel', 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

    /* Sizes */
    --container-max: 1200px;
    --container-narrow: 900px;
    --container-wide: 1400px;
    --header-height: 80px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(139, 26, 26, 0.15);
    --shadow-gold: 0 0 20px rgba(201, 168, 76, 0.1);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-light);
}

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

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-secondary);
}

p:last-child {
    margin-bottom: 0;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: var(--container-narrow);
}

.container-wide {
    max-width: var(--container-wide);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--color-gold);
    color: var(--color-text-inverse);
}

.btn-primary:hover {
    background: var(--color-gold-hover);
    color: var(--color-text-inverse);
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
}

.btn-gold {
    background: var(--color-gold);
    color: var(--color-text-inverse);
}

.btn-gold:hover {
    background: var(--color-gold-hover);
    color: var(--color-text-inverse);
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
}

/* Spotify green button */
.btn-spotify {
    background: #1DB954;
    color: #000000;
}
.btn-spotify:hover {
    background: #1ed760;
    color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(29, 185, 84, 0.3);
}

/* Apple Podcasts purple button */
.btn-apple {
    background: #9933CC;
    color: #ffffff;
}
.btn-apple:hover {
    background: #aa55dd;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(153, 51, 204, 0.3);
}

/* YouTube red button */
.btn-youtube {
    background: #FF0000;
    color: #ffffff;
}
.btn-youtube:hover {
    background: #cc0000;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

/* Beige/gold button for Blackout */
.btn-beige {
    background: var(--color-gold);
    color: var(--color-text-inverse);
}
.btn-beige:hover {
    background: var(--color-gold-hover);
    color: var(--color-text-inverse);
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border-light);
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent-light);
    background: rgba(139, 26, 26, 0.05);
}

.btn-text {
    background: transparent;
    color: var(--color-text-secondary);
    padding: 8px 16px;
    letter-spacing: 0.05em;
    text-transform: none;
    font-weight: 400;
}

.btn-text:hover {
    color: var(--color-accent-light);
}

.btn-play {
    width: 64px;
    height: 64px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-accent);
    color: white;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-play:hover {
    background: var(--color-accent-hover);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(139, 26, 26, 0.3);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: var(--header-height);
    transition: background var(--transition-base);
}

.site-header.scrolled {
    background: rgba(5, 5, 5, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 32px;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-primary);
    text-decoration: none;
}

.site-logo:hover {
    color: var(--color-text-primary);
}

.site-logo .accent {
    color: var(--color-accent-light);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent-light);
    transition: width var(--transition-base);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover {
    color: var(--color-text-primary);
}

.main-nav a.active {
    color: var(--color-text-primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--color-text-primary);
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    margin: 5px 0;
    transition: all var(--transition-base);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-bg-primary);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(139, 26, 26, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(30, 30, 30, 0.8) 0%, transparent 50%);
    z-index: 1;
}

.hero-bg .noise {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(5, 5, 5, 0) 0%,
        rgba(5, 5, 5, 0.3) 50%,
        rgba(5, 5, 5, 0.9) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
    margin-top: -60px;
}

.hero-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    margin-bottom: 24px;
    padding: 6px 16px;
    border: 1px solid rgba(196, 30, 58, 0.3);
    border-radius: 2px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--color-text-primary);
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 48px;
}

.hero-date {
    font-size: 1rem;
    color: var(--color-gold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 40px;
    font-family: var(--font-mono);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: float 2s ease-in-out infinite;
    cursor: pointer;
}

.hero-scroll .scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--color-text-muted), transparent);
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ==========================================================================
   Section Styles
   ========================================================================== */
.section {
    padding: 120px 0;
    position: relative;
}

.section-dark {
    background: var(--color-bg-primary);
}

.section-darker {
    background: var(--color-bg-secondary);
}

.section-divider {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--color-border) 50%,
        transparent 100%
    );
    margin: 0;
    border: none;
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 24px;
    color: var(--color-text-primary);
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    line-height: 1.8;
}

/* ==========================================================================
   Blackout Section
   ========================================================================== */
.blackout-section {
    position: relative;
}

.blackout-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.blackout-image {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background: var(--color-bg-tertiary);
}

.blackout-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blackout-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.4);
}

.blackout-season {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 1.6rem;
    color: var(--color-gold);
    letter-spacing: 0.15em;
    margin-bottom: 12px;
    padding: 4px 12px;
    border: 1px solid rgba(201, 168, 76, 0.2);
}

.blackout-content h2 {
    margin-bottom: 16px;
}

.blackout-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 32px;
}

.blackout-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
    text-align: center;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.9;
}

.about-quote {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--color-text-primary);
    line-height: 1.6;
    padding: 40px 0;
    position: relative;
}

.about-quote::before,
.about-quote::after {
    font-size: 2.5rem;
    color: var(--color-accent);
    opacity: 0.25;
    font-family: var(--font-heading);
    line-height: 0;
    display: inline;
    vertical-align: middle;
}

.about-quote::before {
    content: '\201C';
    margin-right: 8px;
}

.about-quote::after {
    content: '\201D';
    margin-left: 8px;
}
    color: var(--color-accent);
    opacity: 0.3;
    position: absolute;
    top: -5px;
    left: -30px;
    font-family: var(--font-heading);
    line-height: 1;
}

.about-quote::after {
    content: '\201D';
    font-size: 3rem;
    color: var(--color-accent);
    opacity: 0.3;
    position: absolute;
    bottom: -20px;
    right: -30px;
    font-family: var(--font-heading);
    line-height: 1;
}
    color: var(--color-accent);
    opacity: 0.4;
    position: absolute;
    top: 44px;
    left: -24px;
    font-family: var(--font-heading);
    line-height: 1;
}

.about-quote::after {
    content: '\201D';
    font-size: 2rem;
    color: var(--color-accent);
    opacity: 0.4;
    position: absolute;
    bottom: 36px;
    right: -24px;
    font-family: var(--font-heading);
    line-height: 1;
}

/* Hero title quotes */
.hero-title {
    position: relative;
}

.hero-title::before {
    content: '\201C';
    font-size: 2rem;
    color: var(--color-accent);
    opacity: 0.4;
    position: absolute;
    top: -8px;
    left: -28px;
    font-family: var(--font-heading);
    line-height: 1;
}

.hero-title::after {
    content: '\201D';
    font-size: 2rem;
    color: var(--color-accent);
    opacity: 0.4;
    position: absolute;
    bottom: -10px;
    right: -28px;
    font-family: var(--font-heading);
    line-height: 1;
}

/* ==========================================================================
   Morks Arkiv Section
   ========================================================================== */
.arkiv-section {
    position: relative;
}

.arkiv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.arkiv-text p {
    font-size: 1.05rem;
    line-height: 1.8;
}

.arkiv-benefits {
    list-style: none;
    margin: 32px 0;
}

.arkiv-benefits li {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.arkiv-benefits li::before {
    content: '◆';
    color: var(--color-gold);
    font-size: 0.6rem;
}

.arkiv-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.arkiv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-accent));
}

.arkiv-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.arkiv-card-price {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--color-gold);
    margin-bottom: 8px;
}

.arkiv-card-desc {
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.arkiv-card-features {
    list-style: none;
    margin-bottom: 32px;
}

.arkiv-card-features li {
    padding: 8px 0;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.arkiv-card-features li::before {
    content: '✓';
    color: var(--color-gold);
    font-weight: 700;
}

/* ==========================================================================
   Monstersviten Section
   ========================================================================== */
.monster-section {
    position: relative;
}

.monster-intro {
    max-width: 600px;
    margin-bottom: 60px;
}

.monster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2px;
    background: var(--color-border);
}

.monster-item {
    background: var(--color-bg-card);
    padding: 40px 32px;
    position: relative;
    transition: background var(--transition-base);
    cursor: pointer;
}

.monster-item:hover {
    background: var(--color-bg-card-hover);
}

.monster-item.current {
    border-left: 3px solid var(--color-accent-light);
}

.monster-item .number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 12px;
    letter-spacing: 0.15em;
}

.monster-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.monster-item p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* ==========================================================================
   Alexander Mork Section
   ========================================================================== */
.alexander-section {
    position: relative;
}

.alexander-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.alexander-image {
    width: 100%;
    max-width: 480px;
    background: var(--color-bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

.alexander-image img {
    width: 100%;
    height: auto;
    display: block;
}

.alexander-content h2 {
    margin-bottom: 24px;
}

.alexander-content p {
    font-size: 1.05rem;
    line-height: 1.8;
}

.alexander-email {
    display: inline-block;
    color: var(--color-gold) !important;
    font-size: 0.95rem;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
    padding: 8px 16px;
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.alexander-email:hover {
    background: rgba(201, 168, 76, 0.1);
    border-color: var(--color-gold);
    color: var(--color-gold-hover) !important;
}

.alexander-title {
    display: block !important;
    width: 100%;
    font-size: 0.95rem;
    font-family: var(--font-body);
    letter-spacing: 0.05em;
    color: var(--color-gold);
    border-bottom: 1px solid var(--color-gold-dark);
    padding-bottom: 4px;
    margin-bottom: 24px;
    margin-top: 16px;
    clear: both;
    text-transform: none;
    line-height: 1.6;
}

/* Force section-label above alexander-title */
.alexander-content .section-label {
    display: block !important;
    width: 100%;
    clear: both;
}

/* Force alexander-title onto its own line */
.alexander-content .alexander-title {
    display: block !important;
    width: 100%;
    clear: both;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--color-bg-primary);
    border-top: 1px solid var(--color-border);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    letter-spacing: 0.1em;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    max-width: 300px;
}

.footer-column h4 {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.footer-column a {
    display: block;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.footer-column a:hover {
    color: var(--color-accent-light);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-social a:hover {
    color: var(--color-accent-light);
}

/* ==========================================================================
   Page Templates
   ========================================================================== */
.page-content {
    padding: calc(var(--header-height) + 60px) 0 80px;
    min-height: 100vh;
}

.page-content .entry-header {
    margin-bottom: 48px;
}

.page-content .entry-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 16px;
}

.page-content .entry-content {
    max-width: 700px;
    line-height: 1.9;
}

.page-content .entry-content p {
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Blog / Archive
   ========================================================================== */
.blog-archive {
    padding: calc(var(--header-height) + 60px) 0 80px;
}

.blog-archive .archive-header {
    margin-bottom: 60px;
}

.blog-archive .archive-title {
    font-size: clamp(2rem, 4vw, 3rem);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2px;
}

.post-card {
    background: var(--color-bg-card);
    padding: 40px 32px;
    transition: background var(--transition-base);
}

.post-card:hover {
    background: var(--color-bg-card-hover);
}

.post-card .post-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.post-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.post-card h3 a {
    color: var(--color-text-primary);
}

.post-card h3 a:hover {
    color: var(--color-accent-light);
}

.post-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Single Post
   ========================================================================== */
.single-post-content {
    padding: calc(var(--header-height) + 60px) 0 80px;
}

.single-post-content .post-header {
    margin-bottom: 48px;
}

.single-post-content .post-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.single-post-content .post-meta {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

.single-post-content .post-body {
    max-width: 700px;
    line-height: 1.9;
}

.single-post-content .post-body p {
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   404
   ========================================================================== */
.error-404 {
    padding: calc(var(--header-height) + 120px) 0 120px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-404 h1 {
    font-size: clamp(4rem, 10vw, 8rem);
    color: var(--color-accent);
    margin-bottom: 16px;
}

.error-404 p {
    font-size: 1.2rem;
    margin-bottom: 32px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .blackout-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .alexander-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .arkiv-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .header-inner {
        padding: 0 20px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(5, 5, 5, 0.98);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--color-border);
    }

    .main-nav.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .section {
        padding: 80px 0;
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .hero-content {
        margin-top: 0;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .blackout-actions {
        flex-direction: column;
        width: 100%;
    }

    .blackout-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .monster-grid {
        grid-template-columns: 1fr;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .arkiv-card {
        padding: 32px 24px;
    }

    /* ─── Mobile image fixes ─── */
    .blackout-image {
        overflow: visible;
    }
    .blackout-image::after {
        display: none;
    }
    .blackout-image img {
        max-height: 50vh;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .alexander-image {
        overflow: visible;
        max-width: 100%;
    }
    .alexander-image img {
        max-height: 50vh;
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        min-height: 90vh;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   Selection
   ========================================================================== */
::selection {
    background: var(--color-accent);
    color: white;
}

/* ==========================================================================
   Scrollbar
   ========================================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}

/* ==========================================================================
   Theme Overrides – force correct colors over plugins (Pagelayer etc)
   ========================================================================== */
body.pagelayer-body h1,
body.pagelayer-body h2,
body.pagelayer-body h3,
body.pagelayer-body h4,
body.pagelayer-body h5,
body.pagelayer-body h6,
h1, h2, h3, h4, h5, h6,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.site-content h1,
.site-content h2,
.site-content h3,
.site-content h4 {
    color: var(--color-text-primary) !important;
}

body.pagelayer-body a {
    color: var(--color-text-primary) !important;
}

body.pagelayer-body a:hover {
    color: var(--color-accent-light) !important;
}

body.pagelayer-body p,
body.pagelayer-body .entry-content {
    color: var(--color-text-secondary) !important;
}

body.pagelayer-body .site-main {
    background-color: transparent !important;
}

body.pagelayer-body {
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
    color: var(--color-text-secondary) !important;
}

/* ==========================================================================
   Tips & Samarbeten Section
   ========================================================================== */
.tips-section {
    position: relative;
}

.tips-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.tips-ingress {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.tips-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 700px;
    margin: 0 auto;
}

.tips-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 48px;
    position: relative;
}

.tips-card-icon {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.tips-card-icon svg {
    width: 40px;
    height: 40px;
    display: block;
}

.tips-card-title {
    font-size: clamp(0.9rem, 1.8vw, 1.2rem) !important;
    margin: 0 0 32px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tips-card p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.tips-email {
    display: inline-block;
    color: var(--color-gold) !important;
    font-size: 0.95rem;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
    padding: 10px 20px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-top: 16px;
    text-decoration: none;
    background: rgba(201, 168, 76, 0.05);
}

.tips-email:hover {
    background: rgba(201, 168, 76, 0.1);
    border-color: var(--color-gold);
    color: var(--color-gold-hover) !important;
}

@media (min-width: 768px) {
    .tips-grid {
        grid-template-columns: 1fr;
    }
}
