/*
Theme Name: SpaceMov
Theme URI: https://spacemov.co
Description: A fast, SEO-optimized dark theme for SpaceMov - your guide to free movies online, streaming alternatives, and movie information.
Author: SpaceMov
Author URI: https://spacemov.co
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spacemov
Tags: dark, movies, entertainment, seo, custom-menu, custom-logo, featured-images
*/

/* ==========================================================================
   FONTS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ==========================================================================
   CSS RESET
   ========================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0F0F13;
    color: #F0EFF8;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: #7C5CFC;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #9B80FD;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #F0EFF8;
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2.25rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.875rem; }
h3 { font-size: 1.375rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.625rem; }
h5 { font-size: 1rem; margin-bottom: 0.5rem; }
h6 { font-size: 0.875rem; margin-bottom: 0.5rem; }

p {
    margin-bottom: 1.25rem;
}

blockquote {
    border-left: 4px solid #7C5CFC;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #1A1A22;
    border-radius: 0 8px 8px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

table th,
table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #2A2A36;
}

table th {
    background: #1A1A22;
    color: #F0EFF8;
    font-weight: 600;
}

table tr:hover td {
    background: #22222E;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.site-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    width: 100%;
}

.container--narrow {
    max-width: 800px;
}

.content-area {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    padding: 2.5rem 0;
}

.content-area--full {
    grid-template-columns: 1fr;
}

.site-main {
    min-width: 0;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
    background: rgba(15, 15, 19, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(42, 42, 54, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    padding: 0 0;
    height: 56px;
    gap: 1.5rem;
}

.site-branding {
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.site-branding a {
    color: #F0EFF8;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0;
}

.brand-accent {
    color: #7C5CFC;
}

/* Nav: clean, spaced, with dropdown indicator */
.main-navigation {
    flex: 1;
}

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

.main-navigation a {
    color: #6B6A80;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: #F0EFF8;
    background: rgba(124, 92, 252, 0.08);
}

/* Dropdown arrow for parent items */
.main-navigation .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 3.5px solid transparent;
    border-right: 3.5px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 5px;
    vertical-align: middle;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.main-navigation .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
    opacity: 1;
}

/* Dropdown panel */
.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: #1A1A22;
    border: 1px solid #2A2A36;
    border-radius: 10px;
    padding: 0.375rem;
    min-width: 190px;
    flex-direction: column;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(124, 92, 252, 0.06);
    z-index: 100;
    animation: dropdownIn 0.15s ease;
}

@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-navigation li {
    position: relative;
}

.main-navigation li:hover > .sub-menu {
    display: flex;
}

.main-navigation .sub-menu li {
    border-radius: 6px;
}

.main-navigation .sub-menu a {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    border-radius: 6px;
    color: #8A89A0;
}

.main-navigation .sub-menu a:hover {
    background: rgba(124, 92, 252, 0.1);
    color: #F0EFF8;
}

/* Search: compact icon-style */
.header-search {
    flex-shrink: 0;
    margin-left: auto;
}

.header-search form {
    display: flex;
    align-items: center;
}

.header-search input[type="search"] {
    background: #1A1A22;
    border: 1px solid #2A2A36;
    color: #F0EFF8;
    padding: 0.4rem 0.75rem;
    border-radius: 6px 0 0 6px;
    font-size: 0.8125rem;
    width: 160px;
    outline: none;
    transition: all 0.2s ease;
}

.header-search input[type="search"]:focus {
    border-color: #7C5CFC;
    width: 200px;
    background: #22222E;
}

.header-search button {
    background: #7C5CFC;
    color: #F0EFF8;
    border: none;
    padding: 0.4rem 0.75rem;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: background 0.2s ease;
}

.header-search button:hover {
    background: #9B80FD;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #F0EFF8;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.menu-toggle:hover {
    background: #22222E;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    background: linear-gradient(135deg, #0F0F13 0%, #161028 50%, #0F0F13 100%);
    padding: 4rem 0;
    border-bottom: 1px solid #22222E;
}

.hero h1 {
    font-size: 2.75rem;
    max-width: 700px;
    margin-bottom: 1.25rem;
}

.hero p {
    font-size: 1.125rem;
    color: #8A89A0;
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-search {
    max-width: 500px;
}

.hero-search form {
    display: flex;
}

.hero-search input[type="search"] {
    flex: 1;
    background: #1A1A22;
    border: 2px solid #2A2A36;
    color: #F0EFF8;
    padding: 0.875rem 1.25rem;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    outline: none;
}

.hero-search input[type="search"]:focus {
    border-color: #7C5CFC;
}

.hero-search button {
    background: #7C5CFC;
    color: #F0EFF8;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 0 8px 8px 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hero-search button:hover {
    background: #9B80FD;
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */

.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.8125rem;
    color: #6B6A80;
}

.breadcrumbs a {
    color: #8A89A0;
}

.breadcrumbs a:hover {
    color: #7C5CFC;
}

.breadcrumbs .separator {
    margin: 0 0.5rem;
    color: #4A4960;
}

.breadcrumbs .current {
    color: #F0EFF8;
}

/* ==========================================================================
   CARDS - MOVIE / POST
   ========================================================================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.card-grid--movies {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.card {
    background: #1A1A22;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #2A2A36;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #7C5CFC;
}

.card-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2/3;
    background: #22222E;
}

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

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

.card-thumbnail--landscape {
    aspect-ratio: 3/1;
    position: relative;
}

.card-overlay-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 0.75rem 0.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,.85));
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
    z-index: 1;
}

@media (max-width: 768px) {
    .card-thumbnail--landscape {
        aspect-ratio: 2.2/1;
    }
    .card-overlay-title {
        font-size: 0.78rem;
        padding: 1rem 0.6rem 0.4rem;
    }
}

.card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #7C5CFC;
    color: #F0EFF8;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.card-rating {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.8);
    color: #f5c518;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 700;
}

.card-body {
    padding: 1rem 1rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    line-height: 1.4;
}

.card-title a {
    color: #F0EFF8;
}

.card-title a:hover {
    color: #7C5CFC;
}

.card-meta {
    font-size: 0.8125rem;
    color: #6B6A80;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.card-excerpt {
    font-size: 0.875rem;
    color: #8A89A0;
    margin-top: 0.625rem;
    line-height: 1.6;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.625rem;
}

.card-tags a {
    background: #22222E;
    color: #8A89A0;
    padding: 0.1875rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.card-tags a:hover {
    background: #7C5CFC;
    color: #F0EFF8;
}

/* ==========================================================================
   POST / ARTICLE - SINGLE
   ========================================================================== */

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #2A2A36;
}

.article-header h1 {
    font-size: 2.25rem;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: #6B6A80;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.article-meta a {
    color: #8A89A0;
}

.article-meta a:hover {
    color: #7C5CFC;
}

.article-content {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #2A2A36;
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-content ul,
.article-content ol {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
}

.article-content ul {
    list-style: disc;
}

.article-content ol {
    list-style: decimal;
}

.article-content li {
    margin-bottom: 0.5rem;
    color: #C5C4D6;
}

.article-content a {
    text-decoration: none;
}

.article-content img {
    border-radius: 8px;
    margin: 1.5rem 0;
}

.article-content .wp-block-image {
    margin: 2rem 0;
}

.article-featured-image {
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    border-radius: 10px;
}

/* Blog post movie entry card */
.blog-movie-entry {
    display: flex;
    gap: 20px;
    margin: 1.5rem 0 2rem;
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid #2A2A36;
    border-radius: 12px;
}
.blog-movie-entry .blog-movie-poster {
    flex-shrink: 0;
    width: 120px;
}
.blog-movie-entry .blog-movie-poster img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0;
}
.blog-movie-entry .blog-movie-body {
    flex: 1;
    min-width: 0;
}
.blog-movie-entry .blog-movie-body h3 {
    margin: 0 0 4px;
    font-size: 1.15rem;
}
.blog-movie-entry .blog-movie-platform {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #1D9E75;
    background: rgba(29,158,117,0.1);
    border: 1px solid rgba(29,158,117,0.2);
    margin-bottom: 10px;
}
.blog-movie-entry .blog-movie-body p {
    margin: 0;
    color: #B0AFC4;
    font-size: 0.94rem;
    line-height: 1.75;
}
@media (max-width: 600px) {
    .blog-movie-entry { flex-direction: column; align-items: center; text-align: center; }
    .blog-movie-entry .blog-movie-poster { width: 140px; }
}

/* Blog FAQ accordion */
.article-content details {
    background: #13131B;
    border: 1px solid #2A2A36;
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
}
.article-content summary {
    padding: 14px 18px;
    cursor: pointer;
    font-weight: 600;
    color: #F0EFF8;
    font-size: 0.92rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.article-content summary::after {
    content: '+';
    font-size: 1.1rem;
    color: #7C5CFC;
    flex-shrink: 0;
    margin-left: 12px;
}
.article-content details[open] summary::after { content: '\2212'; }
.article-content details > div {
    padding: 0 18px 14px;
    color: #8A89A0;
    line-height: 1.7;
    font-size: 0.88rem;
}

/* Blog streaming table */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}
.article-content th {
    background: rgba(124,92,252,0.1);
    color: #C5C4D6;
    font-weight: 600;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 2px solid #2A2A36;
}
.article-content td {
    padding: 10px 14px;
    border-bottom: 1px solid #1E1E2A;
    color: #B0AFC4;
}
.article-content tr:last-child td { border-bottom: none; }

/* Hero image for blog posts */
.blog-hero-image {
    margin: -1rem 0 2rem;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 21/9;
}
.blog-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
}

.article-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #2A2A36;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.article-tags a {
    background: #22222E;
    color: #8A89A0;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    transition: all 0.2s ease;
}

.article-tags a:hover {
    background: #7C5CFC;
    color: #F0EFF8;
}

/* ==========================================================================
   SECTION HEADINGS
   ========================================================================== */

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #2A2A36;
}

.section-header h2 {
    margin-bottom: 0;
    font-size: 1.5rem;
}

.section-header a {
    color: #8A89A0;
    font-size: 0.875rem;
    font-weight: 500;
}

.section-header a:hover {
    color: #7C5CFC;
}

.section-title-bar {
    border-left: 4px solid #7C5CFC;
    padding-left: 0.75rem;
}

/* ==========================================================================
   INFO BOXES / CALLOUTS
   ========================================================================== */

.info-box {
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.info-box--warning {
    background: #2A1F0F;
    border: 1px solid #5A3F0F;
}

.info-box--success {
    background: #0F1F1A;
    border: 1px solid #00C896;
}

.info-box--info {
    background: #16102A;
    border: 1px solid #7C5CFC;
}

.info-box--danger {
    background: #2A1410;
    border: 1px solid #E2533A;
}

.info-box-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #F0EFF8;
}

/* ==========================================================================
   ALTERNATIVES LIST
   ========================================================================== */

.alt-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.alt-item {
    background: #1A1A22;
    border: 1px solid #2A2A36;
    border-radius: 10px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1.25rem;
    align-items: center;
    transition: border-color 0.2s ease;
}

.alt-item:hover {
    border-color: #7C5CFC;
}

.alt-item-rank {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #7C5CFC, #5A3FD6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    color: #F0EFF8;
    flex-shrink: 0;
}

.alt-item-content h3 {
    margin-bottom: 0.375rem;
}

.alt-item-content p {
    color: #8A89A0;
    font-size: 0.9375rem;
    margin-bottom: 0;
}

.alt-item-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.alt-item-features span {
    background: #22222E;
    color: #8A89A0;
    padding: 0.1875rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.alt-item-cta {
    flex-shrink: 0;
}

.btn {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-align: center;
}

.btn--primary {
    background: #7C5CFC;
    color: #F0EFF8;
}

.btn--primary:hover {
    background: #9B80FD;
    color: #F0EFF8;
}

.btn--secondary {
    background: #22222E;
    color: #F0EFF8;
    border: 1px solid #2A2A36;
}

.btn--secondary:hover {
    background: #2A2A36;
    color: #F0EFF8;
}

.btn--small {
    padding: 0.375rem 1rem;
    font-size: 0.8125rem;
}

/* ==========================================================================
   FAQ / ACCORDION
   ========================================================================== */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: #1A1A22;
    border: 1px solid #2A2A36;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: #F0EFF8;
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: #22222E;
}

.faq-question::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 400;
    color: #7C5CFC;
    transition: transform 0.2s ease;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    display: none;
    padding: 0 1.5rem 1.25rem;
    color: #8A89A0;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.site-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background: #1A1A22;
    border: 1px solid #2A2A36;
    border-radius: 10px;
    padding: 1.25rem;
}

.widget-title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.625rem;
    border-bottom: 2px solid #7C5CFC;
    color: #F0EFF8;
}

.widget ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.widget ul li a {
    color: #8A89A0;
    font-size: 0.9375rem;
    padding: 0.375rem 0;
    display: flex;
    justify-content: space-between;
    transition: color 0.2s ease;
}

.widget ul li a:hover {
    color: #7C5CFC;
}

.widget ul li a .count {
    color: #4A4960;
    font-size: 0.8125rem;
}

/* Trending widget */
.trending-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.trending-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.trending-number {
    font-size: 1.375rem;
    font-weight: 800;
    color: #7C5CFC;
    line-height: 1;
    min-width: 1.5rem;
}

.trending-item-content {
    min-width: 0;
}

.trending-item-content a {
    color: #F0EFF8;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
}

.trending-item-content a:hover {
    color: #7C5CFC;
}

.trending-item-meta {
    font-size: 0.75rem;
    color: #6B6A80;
    margin-top: 0.125rem;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.375rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination a {
    background: #1A1A22;
    border: 1px solid #2A2A36;
    color: #8A89A0;
}

.pagination a:hover {
    background: #22222E;
    color: #F0EFF8;
    border-color: #7C5CFC;
}

.pagination .current {
    background: #7C5CFC;
    color: #F0EFF8;
    border: 1px solid #7C5CFC;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background: #0F0F13;
    border-top: 1px solid #22222E;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    padding: 3rem 0;
}

.footer-col h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #F0EFF8;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col ul li a {
    color: #6B6A80;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: #7C5CFC;
}

.footer-col p {
    color: #6B6A80;
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    padding: 1.25rem 0 0.5rem;
}

.footer-social a {
    color: #6B6A80;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}

.footer-social a:hover {
    color: #7C5CFC;
}

.footer-bottom {
    border-top: 1px solid #22222E;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #4A4960;
    font-size: 0.8125rem;
}

.footer-bottom a {
    color: #6B6A80;
}

.footer-bottom a:hover {
    color: #7C5CFC;
}

/* ==========================================================================
   SEARCH RESULTS
   ========================================================================== */

.search-results-header {
    padding: 2rem 0 0;
}

.search-results-header h1 {
    font-size: 1.75rem;
}

.search-results-header p {
    color: #6B6A80;
}

.search-result-item {
    background: #1A1A22;
    border: 1px solid #2A2A36;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    transition: border-color 0.2s ease;
}

.search-result-item:hover {
    border-color: #7C5CFC;
}

.search-result-item h2 {
    font-size: 1.25rem;
    margin-bottom: 0.375rem;
}

.search-result-item h2 a {
    color: #F0EFF8;
}

.search-result-item h2 a:hover {
    color: #7C5CFC;
}

.search-result-meta {
    color: #6B6A80;
    font-size: 0.8125rem;
    margin-bottom: 0.625rem;
}

.search-result-excerpt {
    color: #8A89A0;
    font-size: 0.9375rem;
}

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

.error-404 {
    text-align: center;
    padding: 5rem 0;
}

.error-404 h1 {
    font-size: 6rem;
    color: #7C5CFC;
    margin-bottom: 0.5rem;
}

.error-404 h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.error-404 p {
    color: #6B6A80;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.error-404 .search-form {
    max-width: 400px;
    margin: 0 auto;
}

/* ==========================================================================
   TOC - TABLE OF CONTENTS
   ========================================================================== */

.toc {
    background: #1A1A22;
    border: 1px solid #2A2A36;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0 2rem;
}

.toc-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #F0EFF8;
}

.toc ol {
    list-style: decimal;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.toc ol li a {
    color: #8A89A0;
    font-size: 0.9375rem;
}

.toc ol li a:hover {
    color: #7C5CFC;
}

.toc ol ol {
    margin-top: 0.375rem;
    padding-left: 1.25rem;
    gap: 0.25rem;
}

.toc ol ol li a {
    font-size: 0.875rem;
}

/* ==========================================================================
   RELATED POSTS / INTERNAL LINKING
   ========================================================================== */

.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #2A2A36;
}

.related-posts h2 {
    margin-bottom: 1.25rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* ==========================================================================
   CLUSTER NAVIGATION
   ========================================================================== */

.cluster-nav {
    background: #1A1A22;
    border: 1px solid #2A2A36;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}

.cluster-nav-title {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #F0EFF8;
}

.cluster-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cluster-nav ul li a {
    background: #22222E;
    color: #8A89A0;
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    display: inline-block;
    transition: all 0.2s ease;
}

.cluster-nav ul li a:hover {
    background: #7C5CFC;
    color: #F0EFF8;
}

/* ==========================================================================
   AUTHOR BOX
   ========================================================================== */

.author-box {
    background: #1A1A22;
    border: 1px solid #2A2A36;
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    margin: 2rem 0;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

.author-info h4 {
    margin-bottom: 0.375rem;
}

.author-info p {
    color: #8A89A0;
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* ==========================================================================
   SP AUTHOR CARD — editorial byline (inspired by markoochirma.se)
   ========================================================================== */

.sp-author-card {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    background: #13141f;
    border: 2px solid #7C5CFC;
    border-radius: 12px;
    padding: 1.8rem;
    margin: 2rem 0 1.5rem;
    box-shadow: 0 4px 20px rgba(124, 92, 252, 0.12);
}

.sp-author-card-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 3px solid #7C5CFC;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    box-shadow: 0 0 15px rgba(124, 92, 252, 0.3);
}

.sp-author-card-content {
    flex: 1;
    min-width: 0;
}

.sp-author-card-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #7C5CFC;
    margin-bottom: 0.3rem;
}

.sp-author-card-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #F0EFF8;
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-decoration: none;
}

.sp-author-card-name:hover {
    color: #9B80FD;
}

.sp-author-card-bio {
    font-size: 0.875rem;
    color: #9AA5B4;
    line-height: 1.65;
    margin: 0 0 0.6rem;
}

.sp-author-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: #6B6A80;
}

.sp-author-card-sep {
    opacity: 0.5;
}

@media (max-width: 480px) {
    .sp-author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.3rem;
        gap: 1rem;
    }
    .sp-author-card-meta {
        justify-content: center;
        flex-wrap: wrap;
    }
    .sp-author-card-avatar {
        width: 72px;
        height: 72px;
    }
}

/* ==========================================================================
   POST NAVIGATION (PREV/NEXT)
   ========================================================================== */

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin: 2.5rem 0;
}

.post-navigation a {
    background: #1A1A22;
    border: 1px solid #2A2A36;
    border-radius: 8px;
    padding: 1.25rem;
    transition: border-color 0.2s ease;
    display: block;
}

.post-navigation a:hover {
    border-color: #7C5CFC;
}

.post-navigation .nav-label {
    font-size: 0.75rem;
    color: #6B6A80;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
    display: block;
}

.post-navigation .nav-title {
    color: #F0EFF8;
    font-weight: 600;
    font-size: 0.9375rem;
}

.post-navigation .nav-next {
    text-align: right;
}

/* ==========================================================================
   COMPARISON TABLE
   ========================================================================== */

.comparison-table {
    overflow-x: auto;
    margin: 2rem 0;
}

.comparison-table table {
    min-width: 600px;
}

.comparison-table th {
    background: #7C5CFC;
    color: #F0EFF8;
    font-weight: 600;
}

.comparison-table td {
    background: #1A1A22;
}

.check-yes {
    color: #00C896;
    font-weight: 700;
}

.check-no {
    color: #E2533A;
    font-weight: 700;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .content-area,
    .content-area--with-toc {
        grid-template-columns: 1fr;
    }

    .toc-sidebar {
        display: none;
    }

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

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .alt-item {
        grid-template-columns: 60px 1fr;
    }

    .alt-item-cta {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    html { font-size: 15px; }

    .header-inner {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
        order: 1;
    }

    .site-branding {
        order: 0;
    }

    .header-search {
        order: 2;
        width: 100%;
    }

    .header-search input[type="search"] {
        width: 100%;
    }

    .main-navigation {
        display: none;
        order: 3;
        width: 100%;
    }

    .main-navigation.toggled {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
    }

    .main-navigation .sub-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
    }

    .main-navigation li:hover > .sub-menu {
        display: flex;
    }

    .hero {
        padding: 2.5rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .article-header h1 {
        font-size: 1.75rem;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.375rem; }

    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .card-grid--movies {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

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

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

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

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

    .error-404 h1 {
        font-size: 4rem;
    }

    .comparison-table {
        margin: 1.5rem -1.25rem;
        padding: 0 1.25rem;
    }
}

@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .card-grid--movies {
        grid-template-columns: repeat(2, 1fr);
    }

    .alt-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .alt-item-rank {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin: 0 auto;
    }
}

/* ==========================================================================
   TOC STICKY SIDEBAR (single posts 800+ words)
   ========================================================================== */

.content-area--with-toc {
    grid-template-columns: 220px 1fr 340px;
}

.toc-sidebar {
    position: relative;
}

.toc-sticky {
    position: sticky;
    top: 5rem;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    padding-right: 1rem;
}

.toc-sticky__title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7C5CFC;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #2A2A36;
}

.toc-sticky__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.toc-sticky__list li a {
    display: block;
    font-size: 0.8125rem;
    color: #6B6A80;
    padding: 0.25rem 0;
    border-left: 2px solid transparent;
    padding-left: 0.75rem;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.toc-sticky__list li a:hover {
    color: #F0EFF8;
    border-left-color: #7C5CFC;
}

.toc-sticky__list li.toc-sticky__sub a {
    padding-left: 1.5rem;
    font-size: 0.75rem;
}

/* ==========================================================================
   ARTICLE HEADER BADGES
   ========================================================================== */

.article-header__badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

/* ==========================================================================
   CATEGORY BADGES
   ========================================================================== */

.badge {
    display: inline-block;
    padding: 0.1875rem 0.625rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge--alternatives { background: rgba(124, 92, 252, 0.15); color: #7C5CFC; }
.badge--news { background: rgba(0, 200, 150, 0.15); color: #00C896; }
.badge--free-movies { background: rgba(226, 83, 58, 0.15); color: #E2533A; }
.badge--guides { background: rgba(138, 137, 160, 0.15); color: #8A89A0; }

/* ==========================================================================
   SEE ALSO / CALLOUT BOXES
   ========================================================================== */

.see-also {
    background: #1A1A22;
    border-left: 4px solid #7C5CFC;
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}

.see-also::before {
    content: '\2192  See also';
    display: block;
    font-weight: 700;
    font-size: 0.8125rem;
    color: #7C5CFC;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.see-also a {
    color: #F0EFF8;
    text-decoration: none;
}

.see-also a:hover {
    color: #9B80FD;
}

/* ==========================================================================
   MONOSPACE FOR URLS / DOMAINS
   ========================================================================== */

.domain-url,
code,
.article-content code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.875em;
    background: #22222E;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    color: #9B80FD;
}

/* ==========================================================================
   CARD META: READING TIME & LAST UPDATED
   ========================================================================== */

.card-meta .reading-time,
.card-meta .last-updated {
    font-size: 0.75rem;
    color: #6B6A80;
}

.card-meta .last-updated::before {
    content: 'Updated ';
    color: #00C896;
    font-weight: 600;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #7C5CFC;
    color: #F0EFF8;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(124, 92, 252, 0.35);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #9B80FD;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 92, 252, 0.5);
}

.text-center { text-align: center; }
.text-muted { color: #6B6A80; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ==========================================================================
   WORDPRESS CORE CLASSES
   ========================================================================== */

.alignleft {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

.aligncenter {
    display: block;
    margin: 1.5rem auto;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1rem;
}

.wp-caption-text {
    font-size: 0.8125rem;
    color: #6B6A80;
    text-align: center;
    padding: 0.5rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.gallery-item {
    margin: 0;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sticky .card {
    border-color: #7C5CFC;
}

.bypostauthor {
    border-left: 3px solid #7C5CFC;
}

/* ==========================================================================
   COOKIE CONSENT BANNER & MODAL
   ========================================================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: #1A1A22;
    border-top: 1px solid #2A2A36;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.6);
    animation: cookieSlideUp 0.4s ease;
}

@keyframes cookieSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cookie-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.cookie-banner__content {
    flex: 1;
}

.cookie-banner__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #F0EFF8;
    margin-bottom: 0.5rem;
}

.cookie-banner__text {
    font-size: 0.875rem;
    color: #8A89A0;
    line-height: 1.6;
    margin-bottom: 0;
}

.cookie-banner__text a {
    color: #7C5CFC;
    text-decoration: none;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.625rem;
    flex-shrink: 0;
}

.cookie-btn {
    white-space: nowrap;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.cookie-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.cookie-modal__dialog {
    position: relative;
    background: #1A1A22;
    border: 1px solid #2A2A36;
    border-radius: 12px;
    max-width: 640px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    animation: cookieModalIn 0.3s ease;
}

@keyframes cookieModalIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.cookie-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #2A2A36;
}

.cookie-modal__header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #F0EFF8;
    margin-bottom: 0;
}

.cookie-modal__close {
    background: none;
    border: none;
    color: #6B6A80;
    font-size: 1.75rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.cookie-modal__close:hover {
    color: #F0EFF8;
}

.cookie-modal__body {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.cookie-modal__intro {
    font-size: 0.875rem;
    color: #8A89A0;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.cookie-modal__intro a {
    color: #7C5CFC;
    text-decoration: none;
}

.cookie-category {
    background: #22222E;
    border: 1px solid #2A2A36;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}

.cookie-category--ccpa {
    border-color: #E2533A;
    background: #2A1410;
}

.cookie-category__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
}

.cookie-category__info {
    flex: 1;
}

.cookie-category__info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #F0EFF8;
    margin-bottom: 0.375rem;
}

.cookie-category__info p {
    font-size: 0.8125rem;
    color: #6B6A80;
    line-height: 1.6;
    margin-bottom: 0;
}

.cookie-toggle {
    flex-shrink: 0;
    padding-top: 0.125rem;
}

.cookie-toggle--disabled .cookie-toggle__label {
    font-size: 0.75rem;
    color: #00C896;
    font-weight: 600;
    white-space: nowrap;
}

/* Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    cursor: pointer;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-switch__slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #2A2A36;
    border-radius: 26px;
    transition: background 0.2s ease;
}

.cookie-switch__slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #F0EFF8;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.cookie-switch input:checked + .cookie-switch__slider {
    background: #7C5CFC;
}

.cookie-switch input:checked + .cookie-switch__slider::before {
    transform: translateX(22px);
}

.cookie-switch input:focus + .cookie-switch__slider {
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.3);
}

.cookie-modal__footer {
    display: flex;
    gap: 0.625rem;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    border-top: 1px solid #2A2A36;
}

/* Responsive cookie banner */
@media (max-width: 768px) {
    .cookie-banner__inner {
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-banner__actions {
        width: 100%;
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }

    .cookie-modal__dialog {
        max-height: 90vh;
    }

    .cookie-category__header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cookie-modal__footer {
        flex-direction: column;
    }
}

/* ==========================================================================
   PRINT
   ========================================================================== */

@media print {
    body {
        background: #F0EFF8;
        color: #000000;
    }

    .site-header,
    .site-footer,
    .site-sidebar,
    .related-posts,
    .post-navigation,
    .hero-search,
    .header-search,
    .cookie-banner,
    .cookie-modal {
        display: none;
    }

    .content-area {
        grid-template-columns: 1fr;
    }

    a {
        color: #000000;
        text-decoration: none;
    }

    h1, h2, h3, h4, h5, h6 {
        color: #000000;
    }
}

/* ==========================================================================
   HOMEPAGE CONTENT
   ========================================================================== */

.page-content {
    max-width: 100%;
}

.page-content h2 {
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
}

.page-content h3 {
    margin-top: 1.5rem;
}

.alert-box {
    border-radius: 8px;
    padding: 16px 20px;
    margin: 24px 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.alert-box--warning {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #FFC107;
    color: var(--color-text);
}

.alert-box a {
    color: var(--color-primary);
    font-weight: 600;
}

/* Domain table */
.domain-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    border-radius: 8px;
    overflow: hidden;
}

.domain-table thead tr {
    background: var(--color-surface) !important;
}

.domain-table th {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    border-bottom: 2px solid var(--color-border);
}

.domain-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
}

/* FAQ items */
.faq-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 12px;
}

.faq-item h3 {
    margin: 0 0 8px 0;
    font-size: 1.05rem;
    color: var(--color-primary);
    border: none;
    padding: 0;
}

.faq-item p {
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ==========================================================================
   SINGLE POST (sp-* classes)
   ========================================================================== */

.sp-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.25rem 3rem;
}

/* Breadcrumb */
.sp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem 0;
    font-size: 0.8125rem;
    color: #6B6A80;
    flex-wrap: wrap;
}

.sp-breadcrumb a {
    color: #8A89A0;
    text-decoration: none;
}

.sp-breadcrumb a:hover {
    color: #7C5CFC;
}

.sp-breadcrumb .current {
    color: #F0EFF8;
}

.sp-breadcrumb .sep {
    width: 14px;
    height: 14px;
    stroke: #4A4960;
    flex-shrink: 0;
}

/* Title Block */
.sp-title-block {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #2A2A36;
}

.sp-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.sp-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sp-badge-purple {
    background: rgba(124, 92, 252, 0.12);
    color: #9B80FD;
}

.sp-badge-neutral {
    background: rgba(138, 137, 160, 0.1);
    color: #8A89A0;
}

.sp-title-block h1 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.sp-subtitle {
    font-size: 1.0625rem;
    color: #8A89A0;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.sp-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    color: #6B6A80;
}

.sp-meta svg {
    flex-shrink: 0;
}

.sp-meta-sep {
    margin: 0 0.25rem;
}

/* Section Labels */
.sp-section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7C5CFC;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2A2A36;
}

/* About / Content Section */
.sp-about-section {
    margin-bottom: 2.5rem;
}

.sp-about-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #C5C4D6;
}

.sp-about-text h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #2A2A36;
    color: #F0EFF8;
}

.sp-about-text h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #F0EFF8;
}

.sp-about-text ul,
.sp-about-text ol {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
}

.sp-about-text ul { list-style: disc; }
.sp-about-text ol { list-style: decimal; }

.sp-about-text li {
    margin-bottom: 0.5rem;
}

.sp-about-text a {
    color: #7C5CFC;
    text-decoration: none;
}

.sp-about-text a:hover {
    color: #9B80FD;
}

.sp-about-text img {
    border-radius: 8px;
    margin: 1.5rem 0;
}

.sp-about-text p {
    margin-bottom: 1.25rem;
}

/* Genre / Tags */
.sp-genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.sp-genre-tags a {
    background: #22222E;
    color: #8A89A0;
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.sp-genre-tags a:hover {
    background: #2A2A3A;
    color: #F0EFF8;
}

/* Related Guides */
.sp-related-section {
    margin-bottom: 2.5rem;
}

.sp-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.sp-related-card {
    display: block;
    background: #18181F;
    border: 1px solid #2A2A36;
    border-radius: 10px;
    padding: 1.25rem;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sp-related-card:hover {
    border-color: #7C5CFC;
    box-shadow: 0 4px 20px rgba(124, 92, 252, 0.08);
}

.sp-rc-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9B80FD;
    background: rgba(124, 92, 252, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.625rem;
}

.sp-rc-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #F0EFF8;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.sp-rc-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: #6B6A80;
}

.sp-rc-meta svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    flex-shrink: 0;
}

/* Prev / Next Navigation */
.sp-pn-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #2A2A36;
}

.sp-pn-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #18181F;
    border: 1px solid #2A2A36;
    border-radius: 10px;
    text-decoration: none;
    transition: border-color 0.2s;
}

.sp-pn-card:hover {
    border-color: #7C5CFC;
}

.sp-pn-card svg {
    width: 18px;
    height: 18px;
    stroke: #6B6A80;
    flex-shrink: 0;
}

.sp-pn-next {
    justify-content: flex-end;
    text-align: right;
}

.sp-pn-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6B6A80;
    margin-bottom: 0.2rem;
}

.sp-pn-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #F0EFF8;
    line-height: 1.3;
}

/* Single Post Mobile */
@media (max-width: 768px) {
    .sp-page {
        padding: 0 1rem 2rem;
    }

    .sp-title-block h1 {
        font-size: 1.625rem;
    }

    .sp-subtitle {
        font-size: 0.9375rem;
    }

    .sp-related-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .sp-pn-nav {
        grid-template-columns: 1fr;
    }

    .sp-about-text {
        font-size: 1rem;
    }
}

/* ==========================================================================
   GUIDE CARDS — Latest Guides redesign (front page)
   ========================================================================== */

.guide-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 2.5rem;
}

.guide-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #2A2A36;
    display: block;
    min-height: 170px;
    text-decoration: none;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    background: #16161C;
}

.guide-card:hover {
    transform: translateY(-5px);
    border-color: #7C5CFC;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(124,92,252,0.15);
    color: inherit;
}

.guide-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.guide-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.55;
    transition: opacity 0.22s ease, transform 0.4s ease;
}

.guide-card:hover .guide-card-bg img {
    opacity: 0.7;
    transform: scale(1.04);
}

.guide-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(10,10,16,0.97) 0%,
        rgba(10,10,16,0.7) 45%,
        rgba(10,10,16,0.15) 100%);
    z-index: 1;
}

.guide-card-content {
    position: relative;
    z-index: 2;
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 170px;
}

.guide-card-badge {
    display: inline-flex;
    align-self: flex-start;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid;
    margin-bottom: 9px;
}

.guide-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: #F0EFF8;
    line-height: 1.3;
    margin-bottom: 7px;
    letter-spacing: -0.01em;
}

.guide-card-meta {
    font-size: 11px;
    font-weight: 600;
    color: rgba(240,239,248,0.45);
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.guide-card-meta svg {
    opacity: 0.6;
}

.guide-card-arrow {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 30px;
    height: 30px;
    background: rgba(124,92,252,0.15);
    border: 1px solid rgba(124,92,252,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7C5CFC;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.guide-card:hover .guide-card-arrow {
    opacity: 1;
    background: rgba(124,92,252,0.25);
}

/* No-image fallback */
.guide-card-bg-gradient {
    position: absolute;
    inset: 0;
    z-index: 0;
}

@media (max-width: 900px) {
    .guide-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .guide-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .guide-card {
        min-height: 140px;
    }
    .guide-card-content {
        min-height: 140px;
        padding: 12px;
    }
}

/* ==========================================================================
   BLOG PAGE
   ========================================================================== */

.blog-page {
    min-height: 60vh;
}

/* Header */
.blog-header {
    background: linear-gradient(180deg, #13131A 0%, #0F0F13 100%);
    border-bottom: 1px solid #1E1E28;
    padding: 3.5rem 1.25rem 3rem;
    text-align: center;
}

.blog-header-inner {
    max-width: 600px;
    margin: 0 auto;
}

.blog-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #7C5CFC;
    background: rgba(124,92,252,0.1);
    border: 1px solid rgba(124,92,252,0.25);
    border-radius: 999px;
    padding: 5px 14px;
    margin-bottom: 1.1rem;
}

.blog-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #F0EFF8;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.blog-header p {
    font-size: 1.05rem;
    color: #8A89A0;
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto;
}

/* Container */
.blog-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
}

/* Category filter pills */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2rem;
}

.blog-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #8A89A0;
    background: #16161C;
    border: 1px solid #2A2A36;
    text-decoration: none;
    transition: color 0.18s, border-color 0.18s, background 0.18s;
    white-space: nowrap;
}

.blog-filter-pill:hover {
    color: #F0EFF8;
    border-color: #7C5CFC;
    background: rgba(124,92,252,0.08);
}

.blog-filter-pill.active {
    color: #7C5CFC;
    border-color: #7C5CFC;
    background: rgba(124,92,252,0.1);
}

.blog-filter-count {
    font-size: 0.7rem;
    font-weight: 700;
    background: #22222E;
    color: #6B6A80;
    border-radius: 999px;
    padding: 1px 7px;
    line-height: 1.6;
}

.blog-filter-pill.active .blog-filter-count,
.blog-filter-pill:hover .blog-filter-count {
    background: rgba(124,92,252,0.15);
    color: #b49fff;
}

/* Pagination */
.blog-pagination {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.blog-pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #8A89A0;
    background: #16161C;
    border: 1px solid #2A2A36;
    text-decoration: none;
    transition: color 0.18s, border-color 0.18s, background 0.18s;
}

.blog-pagination .page-numbers:hover {
    color: #F0EFF8;
    border-color: #7C5CFC;
    background: rgba(124,92,252,0.08);
}

.blog-pagination .page-numbers.current {
    color: #fff;
    background: #7C5CFC;
    border-color: #7C5CFC;
}

.blog-pagination .page-numbers.dots {
    background: none;
    border: none;
    color: #4A4960;
}

@media (max-width: 640px) {
    .blog-header {
        padding: 2.5rem 1rem 2rem;
    }
    .blog-container {
        padding: 1.75rem 1rem 3rem;
    }
}
