/*
Theme Name: Relatando Noir
Theme URI: https://relatando.com
Author: Antigravity
Description: A custom, high-performance, dark-aesthetic horror theme for Relatando.com.
Version: 2.0.0
Text Domain: relatando-noir
*/

:root {
    /* Color Palette - Horror Theme with Blood Tints */
    --color-bg: #0a0a0a;
    --color-surface: #1a1a1a;
    --color-text-main: #e8d5d5;
    /* Gris claro con tinte rojizo */
    --color-text-muted: #b89a9a;
    /* Gris medio con tinte sangre */
    --color-accent: #c41e3a;
    /* Rojo sangre principal */
    --color-accent-dark: #8a0000;
    /* Rojo oscuro */
    --color-accent-light: #ff4757;
    /* Rojo brillante para acentos */

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-size-base: 1rem;

    /* Spacing */
    --spacing-container: 1200px;
    --spacing-reading: 800px;
}

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

/* Global Image Fix */
img,
video,
iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    line-height: 1.8;
    color: var(--color-text-main);
    background: #0a0a0a;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

/* Texture Carousel Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.18;
    /* Increased from 0.12 to 0.18 for better visibility */
    animation: textureCarousel 80s infinite;
}

@keyframes textureCarousel {

    0%,
    24% {
        background-image: url('https://relatando.com/wp-content/uploads/2025/12/Whisk_4c528df7ce84b87aede4133d73384033dr.jpeg');
    }

    25%,
    49% {
        background-image: url('https://relatando.com/wp-content/uploads/2025/12/Whisk_c5219f8d1c8f91fa4444bb92c5b23f74dr.jpeg');
    }

    50%,
    74% {
        background-image: url('https://relatando.com/wp-content/uploads/2025/12/Whisk_a04418b6b0a398bbfb24a93b34ff1a24dr.jpeg');
    }

    75%,
    100% {
        background-image: url('https://relatando.com/wp-content/uploads/2025/12/Whisk_7afbd2235cfe59d95d84f881508ce9dfdr.jpeg');
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

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

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

/* Utility Classes */
.container {
    width: 100%;
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.reading-container {
    width: 100%;
    max-width: var(--spacing-reading);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Modern Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(196, 30, 58, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(196, 30, 58, 0.6), 0 0 30px rgba(196, 30, 58, 0.4);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Animation Classes */
.slide-in-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out forwards;
}

.slide-in-up {
    animation: slideInUp 0.6s ease-out forwards;
}

.scale-in {
    animation: scaleIn 0.5s ease-out forwards;
}

/* Parallax Effect */
.parallax {
    transition: transform 0.3s ease-out;
}

/* Fog Effect - Pure CSS */
.fog-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.fog-img {
    position: absolute;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(120, 120, 120, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 70%, rgba(100, 100, 100, 0.12) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(90, 90, 90, 0.1) 0%, transparent 50%);
    animation: fogMove1 30s ease-in-out infinite;
}

.fog-img-second {
    background:
        radial-gradient(ellipse at 70% 40%, rgba(110, 110, 110, 0.13) 0%, transparent 45%),
        radial-gradient(ellipse at 30% 80%, rgba(95, 95, 95, 0.11) 0%, transparent 45%);
    animation: fogMove2 40s ease-in-out infinite reverse;
}

@keyframes fogMove1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-10%, -5%) scale(1.1);
    }
}

@keyframes fogMove2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(10%, 5%) scale(1.05);
    }
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0;
    color: var(--color-text-main);
    letter-spacing: 2px;
}

.site-title a {
    color: inherit;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-main);
    transition: all 0.3s ease;
}

/* Mobile Navigation */
.main-navigation {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--color-bg);
    padding: 5rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
}

.main-navigation.toggled {
    transform: translateX(0);
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-navigation li {
    margin-bottom: 1.5rem;
}

.main-navigation a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    padding: 0.5rem 0;
}

.main-navigation a:hover {
    color: var(--color-accent);
    padding-left: 10px;
}

/* WordPress Submenu Styles - CRITICAL */
.main-navigation ul ul {
    display: none;
    /* Hide submenus by default */
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-bg);
    min-width: 200px;
    padding: 0.5rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    z-index: 9999;
}

.main-navigation ul li {
    position: relative;
}

.main-navigation ul li:hover>ul,
.main-navigation ul li.focus>ul {
    display: block;
    /* Show submenu on hover */
}

.main-navigation ul ul li {
    margin-bottom: 0;
    width: 100%;
}

.main-navigation ul ul a {
    padding: 0.75rem 1.5rem;
    display: block;
    font-size: 0.9rem;
    white-space: nowrap;
}

.main-navigation ul ul a:hover {
    background: var(--color-surface);
    padding-left: 2rem;
}

/* Nested submenus (third level) */
.main-navigation ul ul ul {
    left: 100%;
    top: 0;
}

/* Desktop Navigation */
@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }

    .main-navigation {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        transform: none;
        box-shadow: none;
    }

    .main-navigation ul {
        display: flex;
        gap: 2rem;
        align-items: center;
    }

    .main-navigation li {
        margin-bottom: 0;
    }

    .main-navigation a {
        font-size: 0.9rem;
        padding: 0;
        color: var(--color-text-muted);
    }

    .main-navigation a:hover {
        color: var(--color-text-main);
        padding-left: 0;
    }

    /* Desktop submenu positioning */
    .main-navigation ul ul {
        position: absolute;
        top: 100%;
        left: 0;
    }
}

/* ========================================
   SEARCH FORM
   ======================================== */

.search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.search-form:focus-within {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-accent);
    box-shadow: 0 0 10px rgba(196, 30, 58, 0.3);
}

.search-field {
    background: transparent;
    border: none;
    color: var(--color-text-main);
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    width: 200px;
    outline: none;
}

.search-field::placeholder {
    color: var(--color-text-muted);
}

.search-submit {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.search-submit:hover {
    color: var(--color-accent);
}

.search-submit svg {
    width: 20px;
    height: 20px;
}

/* Screen reader only text */
.screen-reader-text {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Mobile search */
@media (max-width: 767px) {
    .search-form {
        position: fixed;
        top: 70px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 2rem);
        max-width: 400px;
        z-index: 999;
    }

    .search-field {
        width: 100%;
    }
}

/* Desktop search positioning */
@media (min-width: 768px) {
    .header-container {
        gap: 2rem;
    }

    .search-form {
        margin-left: auto;
    }
}


/* PAGE HEADER */
.page-header {
    min-height: 100vh;
    /* Full height like hero */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 4rem 2rem;
}

.page-header-video {
    position: relative;
    overflow: hidden;
    background: #000;
}

/* Page Video Background Styles */
.page-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.page-bg-video.active {
    opacity: 0.35;
    /* Same as hero */
}

.page-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.page-header .header-content {
    position: relative;
    z-index: 2;
}

.page-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-accent-light);
    margin-bottom: 1rem;
    text-shadow: 0 2px 15px rgba(196, 30, 58, 0.5);
}

.entry-subtitle,
.archive-description {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .page-title {
        font-size: 2rem;
    }
}

/* HERO SECTION */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: #000;
}

/* Video Carousel Background */
.video-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-video.active {
    opacity: 0.35;
    /* 35% opacity for visibility */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 1200px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent-light);
    /* Rojo brillante para títulos */
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(196, 30, 58, 0.3);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: var(--color-text-main);
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.9), 0 0 40px rgba(196, 30, 58, 0.3);
    position: relative;
}

.hero-title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--color-accent);
    opacity: 0.3;
    z-index: -1;
    text-shadow: 0 0 30px var(--color-accent);
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--color-accent);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 2rem;
}

.cta-button:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.3);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 5rem;
    }
}

@media (max-width: 767px) {
    .hero-video {
        /* On mobile, videos might be too heavy, reduce opacity more */
        opacity: 0.25;
    }

    .hero-video.active {
        opacity: 0.25;
    }
}

/* Hero Quote with Blood Drip Effect */
.hero-quote {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: #ff4757;
    margin: 2rem auto;
    max-width: 800px;
    line-height: 1.6;
    position: relative;
    padding: 1.5rem 1.5rem 3rem;
    text-align: center;
    font-style: italic;
    text-shadow:
        0 0 10px rgba(255, 71, 87, 0.5),
        0 0 20px rgba(255, 71, 87, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.8);
    animation: bloodPulse 3s ease-in-out infinite;
}

/* Multiple blood drops below text */
.hero-quote::before {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 30%;
    width: 2px;
    height: 0;
    background: linear-gradient(to bottom,
            rgba(255, 71, 87, 0.9) 0%,
            rgba(139, 0, 0, 1) 100%);
    animation: bloodDrip1 3s ease-in-out infinite;
    filter: blur(0.5px);
}

.hero-quote::after {
    content: '';
    position: absolute;
    bottom: 20px;
    right: 35%;
    width: 2px;
    height: 0;
    background: linear-gradient(to bottom,
            rgba(255, 71, 87, 0.9) 0%,
            rgba(139, 0, 0, 1) 100%);
    animation: bloodDrip2 3.5s ease-in-out infinite 0.5s;
    filter: blur(0.5px);
}

.quote-author {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: 1rem;
    font-style: normal;
    text-shadow: none;
    opacity: 0.8;
    position: relative;
    z-index: 2;
}

/* Additional blood drops using pseudo-element on author */
.quote-author::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    width: 2px;
    height: 0;
    background: linear-gradient(to bottom,
            rgba(255, 71, 87, 0.8) 0%,
            rgba(139, 0, 0, 1) 100%);
    animation: bloodDrip3 4s ease-in-out infinite 1s;
    filter: blur(0.5px);
}

.quote-author::after {
    content: '';
    position: absolute;
    top: -30px;
    left: 20%;
    width: 2px;
    height: 0;
    background: linear-gradient(to bottom,
            rgba(255, 71, 87, 0.7) 0%,
            rgba(139, 0, 0, 1) 100%);
    animation: bloodDrip4 3.2s ease-in-out infinite 1.5s;
    filter: blur(0.5px);
}

/* Blood drip animations - different speeds */
@keyframes bloodDrip1 {

    0%,
    100% {
        height: 0;
        opacity: 0;
    }

    20% {
        height: 15px;
        opacity: 1;
    }

    60% {
        height: 25px;
        opacity: 0.8;
    }

    90% {
        height: 30px;
        opacity: 0.3;
    }
}

@keyframes bloodDrip2 {

    0%,
    100% {
        height: 0;
        opacity: 0;
    }

    15% {
        height: 12px;
        opacity: 1;
    }

    50% {
        height: 20px;
        opacity: 0.9;
    }

    85% {
        height: 28px;
        opacity: 0.4;
    }
}

@keyframes bloodDrip3 {

    0%,
    100% {
        height: 0;
        opacity: 0;
    }

    25% {
        height: 18px;
        opacity: 1;
    }

    65% {
        height: 26px;
        opacity: 0.7;
    }

    95% {
        height: 32px;
        opacity: 0.2;
    }
}

@keyframes bloodDrip4 {

    0%,
    100% {
        height: 0;
        opacity: 0;
    }

    18% {
        height: 10px;
        opacity: 1;
    }

    55% {
        height: 22px;
        opacity: 0.85;
    }

    88% {
        height: 27px;
        opacity: 0.35;
    }
}

@keyframes bloodPulse {

    0%,
    100% {
        text-shadow:
            0 0 10px rgba(255, 71, 87, 0.5),
            0 0 20px rgba(255, 71, 87, 0.3),
            0 2px 4px rgba(0, 0, 0, 0.8);
    }

    50% {
        text-shadow:
            0 0 15px rgba(255, 71, 87, 0.7),
            0 0 30px rgba(255, 71, 87, 0.5),
            0 0 40px rgba(255, 71, 87, 0.3),
            0 2px 4px rgba(0, 0, 0, 0.8);
    }
}

@media (max-width: 767px) {
    .hero-quote {
        font-size: 1.1rem;
        padding: 1rem 1rem 2.5rem;
    }
}

/* ========================================
   STORIES GRID
   ======================================== */

.section-padding {
    padding: 8rem 1.5rem 4rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--color-text-main);
}

.stories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .stories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

/* Story Card */
.story-card {
    position: relative;
    transition: transform 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
}

.story-image-wrapper {
    aspect-ratio: 3/4;
    background-color: var(--color-surface);
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.story-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Fallback Image - Improved */
.story-image-wrapper.no-thumb {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.story-image-wrapper.no-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.03) 10px, rgba(255, 255, 255, 0.03) 20px);
    opacity: 0.5;
}

.story-placeholder-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-serif);
    font-size: 1.3rem;
    text-align: center;
    width: 85%;
    color: var(--color-text-main);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    z-index: 2;
    padding: 1rem;
}

.story-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.story-info {
    padding: 0.5rem 0;
}

.story-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.story-excerpt {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ========================================
   SINGLE POST
   ======================================== */

.entry-header {
    min-height: 60vh;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 8rem 1.5rem 4rem;
    margin-bottom: 4rem;
}

.header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-bg) 0%, transparent 100%);
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.entry-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
    color: var(--color-text-main);
}

.entry-meta {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
}

@media (min-width: 768px) {
    .entry-title {
        font-size: 4rem;
    }
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.entry-content h2 {
    margin-top: 3rem;
    color: var(--color-accent);
}

/* ========================================
   FOOTER
   ========================================*/
/* FOOTER */
.site-footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    position: relative;
    background: rgba(5, 5, 5, 0.8);
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.site-info {
    text-align: center;
}

.site-info .tagline {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Footer Navigation */
.footer-navigation {
    margin-top: 1rem;
}

.footer-menu-list {
    list-style: none;
    display: flex;
    gap: 2rem;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-menu-list li {
    margin: 0;
}

.footer-menu-list a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-menu-list a:hover {
    color: var(--color-accent);
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }

    .site-info {
        text-align: left;
    }

    .footer-navigation {
        margin-top: 0;
    }
}

/* ========================================
   404 PAGE
   ======================================== */

.error-404 {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}


/* ========================================
   PAGE TEMPLATES
   ======================================== */

/* Page Header */
.page-header {
    min-height: 40vh;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 1.5rem 4rem;
    text-align: center;
}

.page-header .header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), var(--color-bg));
}

.page-header .header-content {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.entry-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
}

.archive-description {
    max-width: 700px;
    margin: 1rem auto 0;
    color: var(--color-text-muted);
}

/* Legal Content Formatting */
.legal-content h2 {
    color: var(--color-accent);
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.legal-content h3 {
    color: var(--color-text-main);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.legal-content ul,
.legal-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

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

/* Contact Form Styles */
.contact-form-wrapper {
    max-width: 600px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--color-surface);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--color-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--color-text-main);
    font-family: var(--font-sans);
    font-size: 1rem;
}

.contact-form-wrapper input[type="text"]:focus,
.contact-form-wrapper input[type="email"]:focus,
.contact-form-wrapper textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.contact-form-wrapper textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form-wrapper input[type="submit"],
.contact-form-wrapper button[type="submit"] {
    background: var(--color-accent);
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form-wrapper input[type="submit"]:hover,
.contact-form-wrapper button[type="submit"]:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
}

.contact-info {
    max-width: 600px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--color-surface);
    border-radius: 8px;
    text-align: center;
}

.contact-info h3 {
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.contact-info a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 4rem;
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 0.5rem;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background: var(--color-surface);
    color: var(--color-text-main);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--color-accent);
    color: #fff;
}

.pagination .prev,
.pagination .next {
    font-weight: 600;
}

/* Lighter Sections for Variety */
.section-light {
    background: var(--color-surface);
    padding: 4rem 0;
}

.section-light h2 {
    color: var(--color-text-main);
}

/* Comments Section */
.comments-area {
    max-width: var(--spacing-reading);
    margin: 4rem auto;
    padding: 2rem;
    background: var(--color-surface);
    border-radius: 8px;
}

.comments-title {
    color: var(--color-accent);
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-author {
    font-weight: 600;
    color: var(--color-text-main);
}

.comment-meta {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.comment-content {
    margin-top: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .page-title {
        font-size: 2rem;
    }

    .contact-form-wrapper,
    .contact-info {
        padding: 1.5rem;
    }
}

/* ========================================
   MODERN UI ELEMENTS
   ======================================== */

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--color-accent-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-dark));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Enhanced Story Card Transitions */
.story-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.story-card:hover {
    box-shadow: 0 15px 40px rgba(196, 30, 58, 0.2);
}

/* Image Loaded State */
img.loaded {
    animation: fadeIn 0.5s ease-in;
}

/* Hero Section Enhancements */
.hero-section {
    overflow: hidden;
}

.hero-title {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Smooth Transitions for All Links */
a {
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* Remove underline animation from buttons and images */
.cta-button::after,
.story-link::after,
.menu-toggle::after {
    display: none;
}

/* ========================================
   YOUTUBE VIDEOS SECTION
   ======================================== */

/* YouTube Home Section */
.youtube-home-section {
    position: relative;
    padding: 4rem 0;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.view-all-link {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    color: var(--color-text-main);
    transform: translateX(5px);
}

/* Videos Grid */
.videos-grid,
.videos-grid-home {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Minimum 2 columns */
    gap: 2.5rem;
}

@media (max-width: 640px) {

    .videos-grid,
    .videos-grid-home {
        grid-template-columns: 1fr;
        /* 1 column on mobile */
    }
}

@media (min-width: 1024px) {
    .videos-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 3 columns on large screens */
    }

    .videos-grid-home {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Video Card */
.video-card,
.video-card-home {
    background: var(--color-surface);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.video-card:hover,
.video-card-home:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.3);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #000;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img,
.video-card-home:hover .video-thumbnail img {
    transform: scale(1.1);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-overlay,
.video-card-home:hover .video-overlay {
    opacity: 1;
}

.play-icon {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.video-card:hover .play-icon,
.video-card-home:hover .play-icon {
    transform: scale(1.1);
}

/* Video Duration Badge */
.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Short Badge */
.short-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--color-accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Video Info */
.video-info {
    padding: 1.25rem;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-main);
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-description {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Video Filters - Enhanced */
.video-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--color-surface) 0%, #1a1a1a 100%);
    color: var(--color-text-main);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(196, 30, 58, 0.3), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: #fff;
    border-color: var(--color-accent);
    box-shadow: 0 5px 20px rgba(196, 30, 58, 0.4);
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 3rem 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(196, 30, 58, 0.2);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.no-more-message {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* YouTube Subscribe Button */
.youtube-subscribe-container {
    text-align: center;
    margin-top: 3rem;
}

.youtube-subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #ff0000;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.youtube-subscribe-btn:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
    color: #fff;
}

.youtube-subscribe-btn svg {
    width: 24px;
    height: 24px;
}

/* Video Modal */
.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--color-accent);
    transform: rotate(90deg);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* YouTube Header */
.youtube-header {
    min-height: 50vh;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 767px) {
    .video-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-btn {
        width: 100%;
    }

    .modal-close {
        top: -50px;
        font-size: 2rem;
    }
}

/* ========================================
   CATEGORY SECTIONS
   ======================================== */

.category-section {
    margin-bottom: 4rem;
    position: relative;
    padding: 3rem 0;
}

.category-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* Category Header Video Background */
.category-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.category-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.category-bg-video.active {
    opacity: 0.25;
}

.category-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.7) 50%,
            rgba(0, 0, 0, 0.85) 100%);
    z-index: 1;
}

.category-header-content {
    position: relative;
    z-index: 2;
}

/* Page Header Video Background (for page-videos.php) */
.page-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.page-bg-video.active {
    opacity: 0.3;
}

.page-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.65) 50%,
            rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.youtube-header {
    position: relative;
    overflow: hidden;
}

.youtube-header .header-content {
    position: relative;
    z-index: 2;
}

.category-description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 1rem auto 0;
    line-height: 1.7;
    font-style: italic;
}

.view-more-container {
    text-align: center;
    margin-top: 3rem;
}

.view-more-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--color-surface) 0%, #1a1a1a 100%);
    color: var(--color-text-main);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.view-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(196, 30, 58, 0.3), transparent);
    transition: left 0.5s ease;
}

.view-more-btn:hover::before {
    left: 100%;
}

.view-more-btn:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.3);
    color: var(--color-text-main);
}

/* Section Divider */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5rem 0;
    padding: 0 2rem;
}

.divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right,
            transparent 0%,
            rgba(196, 30, 58, 0.5) 50%,
            transparent 100%);
    position: relative;
}

.divider-line::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right,
            transparent 0%,
            rgba(196, 30, 58, 0.2) 50%,
            transparent 100%);
    filter: blur(2px);
}

.divider-icon {
    font-size: 2rem;
    margin: 0 2rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(196, 30, 58, 0.5));
}

@media (max-width: 767px) {
    .category-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .section-divider {
        margin: 3rem 0;
    }

    .divider-icon {
        font-size: 1.5rem;
        margin: 0 1rem;
    }
}