/*
Theme Name: CreativeBolt
Theme URI: https://alephcreative.com/
Author: Danial
Author URI: https://alephcreative.com/
Description: A lightweight editorial magazine theme for AlephCreative (Gutenberg-friendly), inspired by modern tech publishers.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: creativebolt
Tags: blog, news, custom-logo, two-columns, sticky-post, responsive-layout
*/

:root {
            /* Dark Theme (Default) */
            --bg-primary: #0a0a0f;
            --bg-secondary: #101018;
            --bg-tertiary: #16161f;
            --bg-card: #12121a;
            --text-primary: #fafafa;
            --text-secondary: #a1a1aa;
            --text-muted: #71717a;
            --border-color: #1f1f2a;
            --border-light: #18181f;
            --accent-primary: #00ffff;
            --accent-secondary: #ff00ff;
            --accent-tertiary: #00ff88;
            --accent-warning: #f59e0b;
            --accent-success: #00ff88;
            --accent-red: #ff0055;
            --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
            --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4);
            --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5);
            --overlay: rgba(0,0,0,0.7);
            --glow-cyan: rgba(0, 255, 255, 0.15);
            --glow-magenta: rgba(255, 0, 255, 0.15);
        }

        [data-theme="light"] {
            --bg-primary: #ffffff;
            --bg-secondary: #f8f9fa;
            --bg-tertiary: #f1f3f4;
            --bg-card: #ffffff;
            --text-primary: #1a1a1a;
            --text-secondary: #5f6368;
            --text-muted: #80868b;
            --border-color: #e8eaed;
            --border-light: #f1f3f4;
            --accent-primary: #5046e5;
            --accent-secondary: #7c3aed;
            --accent-tertiary: #10b981;
            --accent-warning: #f59e0b;
            --accent-success: #10b981;
            --accent-red: #ef4444;
            --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
            --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
            --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
            --overlay: rgba(0,0,0,0.5);
            --glow-cyan: transparent;
            --glow-magenta: transparent;
        }

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

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            line-height: 1.6;
            transition: background 0.3s ease, color 0.3s ease;
            /* Cyberpunk grid background - default dark */
            background-image: 
                repeating-linear-gradient(
                    0deg,
                    transparent,
                    transparent 50px,
                    rgba(0, 255, 255, 0.015) 50px,
                    rgba(0, 255, 255, 0.015) 51px
                ),
                repeating-linear-gradient(
                    90deg,
                    transparent,
                    transparent 50px,
                    rgba(255, 0, 255, 0.015) 50px,
                    rgba(255, 0, 255, 0.015) 51px
                );
            background-attachment: fixed;
        }

        [data-theme="light"] body {
            background-image: none;
        }

        /* Typography */
        .font-serif {
            font-family: 'Newsreader', Georgia, serif;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        /* Container */
        .container {
            max-width: 1320px;
            margin: 0 auto;
            padding: 0 1.5rem;
        }

        /* Header - Cyberpunk Translucent (Default Dark) */
        .header {
            position: sticky;
            top: 0;
            z-index: 100;
            background: rgba(10, 10, 15, 0.8);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(0, 255, 255, 0.1);
            transition: all 0.3s ease;
        }

        [data-theme="light"] .header {
            background: rgba(255, 255, 255, 0.85);
            border-bottom: 1px solid rgba(80, 70, 229, 0.15);
        }

        /* Cyberpunk glow line - default */
        .header::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(0, 255, 255, 0.6) 20%, 
                rgba(255, 0, 255, 0.6) 50%, 
                rgba(0, 255, 255, 0.6) 80%, 
                transparent 100%);
            animation: glowPulse 3s ease-in-out infinite;
        }

        [data-theme="light"] .header::before {
            background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(80, 70, 229, 0.4) 20%, 
                rgba(124, 58, 237, 0.4) 50%, 
                rgba(80, 70, 229, 0.4) 80%, 
                transparent 100%);
            animation: none;
        }

        @keyframes glowPulse {
            0%, 100% { opacity: 0.6; }
            50% { opacity: 1; }
        }

        /* Subtle scan line effect - default */
        .header::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: repeating-linear-gradient(
                0deg,
                transparent,
                transparent 2px,
                rgba(0, 255, 255, 0.015) 2px,
                rgba(0, 255, 255, 0.015) 4px
            );
            pointer-events: none;
            opacity: 0.5;
        }

        [data-theme="light"] .header::after {
            background: none;
        }

        .header-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.75rem 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            position: relative;
            z-index: 1;
        }

        [data-theme="light"] .header-top {
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

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

        .logo-icon {
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .logo-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5)) drop-shadow(0 0 20px rgba(255, 0, 255, 0.3));
            transition: filter 0.3s ease;
        }

        .logo:hover .logo-icon img {
            filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.7)) drop-shadow(0 0 30px rgba(255, 0, 255, 0.5));
        }

        /* Show/hide logos based on theme - dark is default */
        .logo-dark { display: block; }
        .logo-light { display: none; }

        [data-theme="light"] .logo-dark { display: none; }
        [data-theme="light"] .logo-light { display: block; }

        [data-theme="light"] .logo-icon img {
            filter: drop-shadow(0 0 6px rgba(80, 70, 229, 0.3));
        }

        [data-theme="light"] .logo:hover .logo-icon img {
            filter: drop-shadow(0 0 10px rgba(80, 70, 229, 0.5));
        }

        .logo-text {
            font-family: 'Newsreader', serif;
            font-size: 1.5rem;
            font-weight: 600;
            letter-spacing: -0.02em;
            text-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
        }

        [data-theme="light"] .logo-text {
            text-shadow: none;
        }

        .logo-text span {
            background: linear-gradient(135deg, #00ffff, #ff00ff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        [data-theme="light"] .logo-text span {
            background: linear-gradient(135deg, #5046e5, #7c3aed);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .search-btn, .theme-toggle {
            width: 40px;
            height: 40px;
            border: 1px solid rgba(0, 255, 255, 0.2);
            border-radius: 8px;
            background: rgba(0, 255, 255, 0.05);
            color: var(--text-secondary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        [data-theme="light"] .search-btn,
        [data-theme="light"] .theme-toggle {
            border: 1px solid rgba(80, 70, 229, 0.2);
            background: rgba(80, 70, 229, 0.05);
        }

        .search-btn:hover, .theme-toggle:hover {
            background: rgba(0, 255, 255, 0.15);
            border-color: rgba(0, 255, 255, 0.5);
            color: #00ffff;
            box-shadow: 0 0 20px rgba(0, 255, 255, 0.25), inset 0 0 20px rgba(0, 255, 255, 0.05);
        }

        [data-theme="light"] .search-btn:hover,
        [data-theme="light"] .theme-toggle:hover {
            background: rgba(80, 70, 229, 0.1);
            border-color: rgba(80, 70, 229, 0.4);
            color: #5046e5;
            box-shadow: 0 0 15px rgba(80, 70, 229, 0.15);
        }

        .theme-toggle svg {
            width: 20px;
            height: 20px;
        }

        .subscribe-btn {
            background: linear-gradient(135deg, #00ffff, #ff00ff);
            color: #0a0a0f;
            padding: 0.6rem 1.25rem;
            border-radius: 8px;
            font-weight: 700;
            font-size: 0.875rem;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            box-shadow: 0 0 25px rgba(0, 255, 255, 0.35), 0 0 50px rgba(255, 0, 255, 0.2);
        }

        [data-theme="light"] .subscribe-btn {
            background: linear-gradient(135deg, #5046e5, #7c3aed);
            color: white;
            box-shadow: 0 4px 15px rgba(80, 70, 229, 0.3);
            text-transform: none;
            letter-spacing: normal;
            font-weight: 600;
        }

        .subscribe-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 0 35px rgba(0, 255, 255, 0.5), 0 0 70px rgba(255, 0, 255, 0.3);
        }

        [data-theme="light"] .subscribe-btn:hover {
            box-shadow: 0 6px 25px rgba(80, 70, 229, 0.4);
        }

        /* Navigation */
        .nav-main {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.6rem 0;
            position: relative;
            z-index: 1;
        }

        .nav-links {
            display: flex;
            gap: 0.25rem;
            list-style: none;
        }

        .nav-links a {
            padding: 0.5rem 1rem;
            font-size: 0.85rem;
            font-weight: 500;
            color: var(--text-secondary);
            border-radius: 6px;
            transition: all 0.3s ease;
            position: relative;
        }

        .nav-links a::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, #00ffff, #ff00ff);
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }

        [data-theme="light"] .nav-links a::before {
            background: linear-gradient(90deg, #5046e5, #7c3aed);
        }

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

        .nav-links a:hover::before {
            width: 80%;
        }

        .nav-links a.active {
            color: #00ffff;
            text-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
        }

        [data-theme="light"] .nav-links a.active {
            color: #5046e5;
            text-shadow: none;
        }

        .nav-links a.active::before {
            width: 80%;
        }

        .social-links {
            display: flex;
            gap: 0.5rem;
        }

        .social-links a {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            border-radius: 6px;
            border: 1px solid transparent;
            transition: all 0.3s ease;
        }

        .social-links a:hover {
            color: #00ffff;
            border-color: rgba(0, 255, 255, 0.3);
            background: rgba(0, 255, 255, 0.1);
            box-shadow: 0 0 15px rgba(0, 255, 255, 0.25);
        }

        [data-theme="light"] .social-links a:hover {
            color: #5046e5;
            border-color: rgba(80, 70, 229, 0.3);
            background: rgba(80, 70, 229, 0.1);
            box-shadow: none;
        }

        .social-links svg {
            width: 18px;
            height: 18px;
        }

        /* Mobile Menu */
        .mobile-menu-btn {
            display: none;
            width: 40px;
            height: 40px;
            border: none;
            background: none;
            cursor: pointer;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 5px;
        }

        .mobile-menu-btn span {
            width: 22px;
            height: 2px;
            background: var(--text-primary);
            transition: all 0.3s ease;
        }

        /* Hero Section */
        .hero-section {
            padding: 2rem 0;
            border-bottom: 1px solid var(--border-color);
        }

        .hero-grid {
            display: grid;
            grid-template-columns: 1.5fr 1fr;
            gap: 1.5rem;
        }

        .hero-main {
            position: relative;
            border-radius: 16px;
            overflow: hidden;
            background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
            min-height: 420px;
        }

        .hero-main-image {
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
        }

        .hero-main-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
        }

        .hero-main-content {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 2rem;
            color: white;
        }

        .hero-category {
            display: inline-block;
            padding: 0.35rem 0.75rem;
            background: linear-gradient(135deg, #00ffff, #ff00ff);
            border-radius: 4px;
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 1rem;
            color: #0a0a0f;
            box-shadow: 0 0 20px rgba(0, 255, 255, 0.4), 0 0 40px rgba(255, 0, 255, 0.2);
        }

        [data-theme="light"] .hero-category {
            background: #5046e5;
            color: white;
            box-shadow: none;
        }

        .hero-main-title {
            font-family: 'Newsreader', serif;
            font-size: 2rem;
            font-weight: 500;
            line-height: 1.25;
            margin-bottom: 0.75rem;
        }

        .hero-meta {
            display: flex;
            align-items: center;
            gap: 1rem;
            font-size: 0.85rem;
            color: rgba(255,255,255,0.8);
        }

        .hero-meta-author {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .author-avatar {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent-warm), var(--accent-red));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            font-weight: 600;
            color: white;
        }

        .hero-sidebar {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .hero-sidebar-card {
            flex: 1;
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            min-height: 200px;
        }

        .hero-sidebar-card .hero-main-image {
            background: linear-gradient(135deg, #2d1b4e 0%, #1a1a2e 100%);
        }

        .hero-sidebar-card:nth-child(2) .hero-main-image {
            background: linear-gradient(135deg, #1e3a5f 0%, #0a1628 100%);
        }

        .hero-sidebar-card .hero-main-content {
            padding: 1.25rem;
        }

        .hero-sidebar-card .hero-main-title {
            font-size: 1.1rem;
        }

        /* Breaking News */
        .breaking-section {
            background: var(--bg-secondary);
            padding: 1rem 0;
            border-bottom: 1px solid var(--border-color);
        }

        .breaking-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 0.75rem;
        }

        .breaking-label {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.35rem 0.75rem;
            background: linear-gradient(135deg, #ff0055, #ff00ff);
            color: white;
            border-radius: 4px;
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            box-shadow: 0 0 20px rgba(255, 0, 85, 0.4);
            animation: breakingPulse 2s ease-in-out infinite;
        }

        [data-theme="light"] .breaking-label {
            background: var(--accent-red);
            box-shadow: none;
            animation: none;
        }

        @keyframes breakingPulse {
            0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 85, 0.4); }
            50% { box-shadow: 0 0 30px rgba(255, 0, 85, 0.6), 0 0 40px rgba(255, 0, 255, 0.3); }
        }

        .breaking-dot {
            width: 8px;
            height: 8px;
            background: white;
            border-radius: 50%;
            animation: blink 1s ease-in-out infinite;
        }

        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.4; }
        }

        .breaking-items {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
        }

        .breaking-item {
            display: flex;
            gap: 0.75rem;
        }

        .breaking-item-title {
            font-size: 0.9rem;
            font-weight: 500;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .breaking-item-title:hover {
            color: var(--accent-primary);
        }

        .breaking-item-meta {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-top: 0.35rem;
        }

        /* Section Headers */
        .section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1.5rem;
            padding-bottom: 0.75rem;
            border-bottom: 2px solid var(--text-primary);
        }

        .section-title {
            font-family: 'Newsreader', serif;
            font-size: 1.5rem;
            font-weight: 600;
        }

        .section-link {
            font-size: 0.85rem;
            font-weight: 600;
            color: #00ffff;
            display: flex;
            align-items: center;
            gap: 0.35rem;
            transition: all 0.2s ease;
        }

        [data-theme="light"] .section-link {
            color: #5046e5;
        }

        .section-link:hover {
            text-decoration: underline;
            text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
        }

        [data-theme="light"] .section-link:hover {
            text-shadow: none;
        }

        /* Content Section */
        .content-section {
            padding: 2.5rem 0;
        }

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

        /* Article Cards */
        .article-card {
            display: grid;
            grid-template-columns: 200px 1fr;
            gap: 1.25rem;
            padding-bottom: 1.5rem;
            margin-bottom: 1.5rem;
            border-bottom: 1px solid var(--border-color);
        }

        .article-card:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        .article-image {
            aspect-ratio: 16/10;
            border-radius: 10px;
            overflow: hidden;
            background: var(--bg-tertiary);
        }

        .article-image-inner {
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
            opacity: 0.2;
        }

        .article-content {
            display: flex;
            flex-direction: column;
        }

        .article-category {
            font-size: 0.75rem;
            font-weight: 600;
            color: #00ffff;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 0.5rem;
        }

        [data-theme="light"] .article-category {
            color: #5046e5;
        }

        .article-title {
            font-family: 'Newsreader', serif;
            font-size: 1.25rem;
            font-weight: 500;
            line-height: 1.35;
            margin-bottom: 0.5rem;
            transition: color 0.2s ease;
        }

        .article-title:hover {
            color: #00ffff;
        }

        [data-theme="light"] .article-title:hover {
            color: #5046e5;
        }

        .article-excerpt {
            font-size: 0.9rem;
            color: var(--text-secondary);
            line-height: 1.6;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-bottom: 0.75rem;
        }

        .article-meta {
            display: flex;
            align-items: center;
            gap: 1rem;
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-top: auto;
        }

        .article-author {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        /* Sidebar */
        .sidebar {
            position: sticky;
            top: 140px;
        }

        .sidebar-section {
            margin-bottom: 2rem;
        }

        .sidebar-title {
            font-family: 'Newsreader', serif;
            font-size: 1.1rem;
            font-weight: 600;
            padding-bottom: 0.75rem;
            border-bottom: 2px solid var(--text-primary);
            margin-bottom: 1rem;
        }

        /* Editor Picks */
        .editor-pick {
            display: flex;
            gap: 1rem;
            padding: 0.75rem 0;
            border-bottom: 1px solid var(--border-light);
        }

        .editor-pick:last-child {
            border-bottom: none;
        }

        .editor-pick-number {
            font-family: 'Newsreader', serif;
            font-size: 2rem;
            font-weight: 600;
            color: var(--border-color);
            line-height: 1;
            min-width: 30px;
        }

        .editor-pick-content {
            flex: 1;
        }

        .editor-pick-category {
            font-size: 0.7rem;
            font-weight: 600;
            color: #00ffff;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 0.25rem;
        }

        [data-theme="light"] .editor-pick-category {
            color: #5046e5;
        }

        .editor-pick-title {
            font-size: 0.9rem;
            font-weight: 500;
            line-height: 1.4;
            transition: color 0.2s ease;
        }

        .editor-pick-title:hover {
            color: #00ffff;
        }

        [data-theme="light"] .editor-pick-title:hover {
            color: #5046e5;
        }

        /* Tools Section */
        .tools-section {
            padding: 3rem 0;
            background: var(--bg-secondary);
            border-top: 1px solid var(--border-color);
            border-bottom: 1px solid var(--border-color);
        }

        .tools-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.5rem;
        }

        .tool-card {
            background: var(--bg-card);
            border: 1px solid rgba(0, 255, 255, 0.1);
            border-radius: 12px;
            padding: 1.5rem;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .tool-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.6), rgba(255, 0, 255, 0.6), transparent);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        [data-theme="light"] .tool-card {
            border: 1px solid var(--border-color);
        }

        [data-theme="light"] .tool-card::before {
            display: none;
        }

        .tool-card:hover {
            transform: translateY(-4px);
            border-color: rgba(0, 255, 255, 0.4);
            box-shadow: 0 0 35px rgba(0, 255, 255, 0.15), 0 15px 50px rgba(0, 0, 0, 0.4);
        }

        [data-theme="light"] .tool-card:hover {
            border-color: #5046e5;
            box-shadow: var(--shadow-lg);
        }

        .tool-card:hover::before {
            opacity: 1;
        }

        .tool-icon {
            width: 48px;
            height: 48px;
            background: linear-gradient(135deg, #00ffff, #ff00ff);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1rem;
            position: relative;
            box-shadow: 0 0 25px rgba(0, 255, 255, 0.35);
        }

        [data-theme="light"] .tool-icon {
            background: linear-gradient(135deg, #5046e5, #7c3aed);
            box-shadow: none;
        }

        .tool-icon svg {
            width: 24px;
            height: 24px;
            color: white;
        }

        .tool-badge {
            display: inline-block;
            padding: 0.25rem 0.5rem;
            background: rgba(0, 255, 136, 0.15);
            color: #00ff88;
            border-radius: 4px;
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            margin-bottom: 0.75rem;
            border: 1px solid rgba(0, 255, 136, 0.3);
        }

        [data-theme="light"] .tool-badge {
            background: rgba(16, 185, 129, 0.1);
            color: #10b981;
            border: none;
        }

        .tool-title {
            font-weight: 600;
            font-size: 1rem;
            margin-bottom: 0.5rem;
        }

        .tool-description {
            font-size: 0.85rem;
            color: var(--text-secondary);
            line-height: 1.5;
            margin-bottom: 1rem;
        }

        .tool-link {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            font-size: 0.85rem;
            font-weight: 600;
            color: #00ffff;
            transition: all 0.2s ease;
        }

        [data-theme="light"] .tool-link {
            color: #5046e5;
        }

        .tool-link:hover {
            text-decoration: underline;
            text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
        }

        [data-theme="light"] .tool-link:hover {
            text-shadow: none;
        }

        /* Deep Dives Section */
        .deep-dives-section {
            padding: 3rem 0;
        }

        .deep-dives-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
        }

        .deep-dive-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .deep-dive-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 0 30px rgba(0, 255, 255, 0.1), var(--shadow-lg);
            border-color: rgba(0, 255, 255, 0.3);
        }

        [data-theme="light"] .deep-dive-card:hover {
            border-color: #5046e5;
            box-shadow: var(--shadow-lg);
        }

        .deep-dive-image {
            aspect-ratio: 16/9;
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
        }

        .deep-dive-content {
            padding: 1.25rem;
        }

        .deep-dive-category {
            font-size: 0.7rem;
            font-weight: 600;
            color: #00ffff;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 0.5rem;
        }

        [data-theme="light"] .deep-dive-category {
            color: #5046e5;
        }

        .deep-dive-title {
            font-family: 'Newsreader', serif;
            font-size: 1.15rem;
            font-weight: 500;
            line-height: 1.35;
            margin-bottom: 0.75rem;
            transition: color 0.2s ease;
        }

        .deep-dive-title:hover {
            color: #00ffff;
        }

        [data-theme="light"] .deep-dive-title:hover {
            color: #5046e5;
        }

        .deep-dive-excerpt {
            font-size: 0.85rem;
            color: var(--text-secondary);
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-bottom: 1rem;
        }

        .deep-dive-meta {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            font-size: 0.8rem;
            color: var(--text-muted);
        }

        /* Newsletter Section */
        .newsletter-section {
            padding: 4rem 0;
            background: linear-gradient(135deg, #0a0a0f 0%, #101020 100%);
            color: white;
            text-align: center;
            position: relative;
            overflow: hidden;
            border-top: 1px solid rgba(0, 255, 255, 0.2);
            border-bottom: 1px solid rgba(255, 0, 255, 0.2);
        }

        .newsletter-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(ellipse at 20% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 50%, rgba(255, 0, 255, 0.1) 0%, transparent 50%);
            pointer-events: none;
        }

        .newsletter-section::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.8), rgba(255, 0, 255, 0.8), transparent);
        }

        [data-theme="light"] .newsletter-section {
            background: linear-gradient(135deg, #5046e5, #7c3aed);
            border: none;
        }

        [data-theme="light"] .newsletter-section::before,
        [data-theme="light"] .newsletter-section::after {
            display: none;
        }

        .newsletter-content {
            max-width: 560px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        .newsletter-title {
            font-family: 'Newsreader', serif;
            font-size: 2rem;
            font-weight: 500;
            margin-bottom: 0.75rem;
            background: linear-gradient(135deg, #00ffff, #ff00ff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        [data-theme="light"] .newsletter-title {
            background: none;
            -webkit-background-clip: unset;
            -webkit-text-fill-color: white;
            background-clip: unset;
        }

        .newsletter-description {
            font-size: 1rem;
            opacity: 0.9;
            margin-bottom: 1.5rem;
        }

        .newsletter-form {
            display: flex;
            gap: 0.75rem;
            max-width: 440px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        .newsletter-input {
            flex: 1;
            padding: 0.875rem 1rem;
            border: 1px solid rgba(0, 255, 255, 0.3);
            border-radius: 8px;
            font-size: 0.95rem;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            transition: all 0.2s ease;
        }

        .newsletter-input:focus {
            outline: none;
            border-color: rgba(0, 255, 255, 0.6);
            box-shadow: 0 0 25px rgba(0, 255, 255, 0.25);
        }

        .newsletter-input::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }

        [data-theme="light"] .newsletter-input {
            background: rgba(255, 255, 255, 0.95);
            border: none;
            color: #1a1a1a;
        }

        [data-theme="light"] .newsletter-input:focus {
            box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
        }

        [data-theme="light"] .newsletter-input::placeholder {
            color: #80868b;
        }

        .newsletter-submit {
            padding: 0.875rem 1.5rem;
            background: linear-gradient(135deg, #00ffff, #00ff88);
            color: #0a0a0f;
            border: none;
            border-radius: 8px;
            font-weight: 700;
            font-size: 0.95rem;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 0 25px rgba(0, 255, 255, 0.4);
        }

        .newsletter-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 0 40px rgba(0, 255, 255, 0.6), 0 0 60px rgba(0, 255, 136, 0.3);
        }

        [data-theme="light"] .newsletter-submit {
            background: #1a1a1a;
            color: white;
            box-shadow: none;
            font-weight: 600;
        }

        [data-theme="light"] .newsletter-submit:hover {
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }

        /* Guest Posts Section */
        .guest-posts-section {
            padding: 3rem 0;
            border-bottom: 1px solid var(--border-color);
        }

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

        .guest-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            overflow: hidden;
            transition: all 0.2s ease;
        }

        .guest-card:hover {
            border-color: rgba(0, 255, 255, 0.4);
            box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
        }

        [data-theme="light"] .guest-card:hover {
            border-color: #5046e5;
            box-shadow: none;
        }

        .guest-image {
            aspect-ratio: 1;
            background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
        }

        .guest-content {
            padding: 1rem;
        }

        .guest-title {
            font-size: 0.9rem;
            font-weight: 500;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-bottom: 0.5rem;
        }

        .guest-title:hover {
            color: #00ffff;
        }

        [data-theme="light"] .guest-title:hover {
            color: #5046e5;
        }

        .guest-meta {
            font-size: 0.75rem;
            color: var(--text-muted);
        }

        /* Footer */
        .footer {
            background: var(--bg-secondary);
            padding: 3rem 0 1.5rem;
            border-top: 1px solid var(--border-color);
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 2fr repeat(3, 1fr);
            gap: 3rem;
            margin-bottom: 2rem;
        }

        .footer-brand-description {
            font-size: 0.9rem;
            color: var(--text-secondary);
            line-height: 1.6;
            margin: 1rem 0;
        }

        .footer-social {
            display: flex;
            gap: 0.5rem;
        }

        .footer-social a {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--bg-tertiary);
            border-radius: 8px;
            color: var(--text-secondary);
            transition: all 0.3s ease;
            border: 1px solid transparent;
        }

        .footer-social a:hover {
            background: rgba(0, 255, 255, 0.15);
            color: #00ffff;
            border-color: rgba(0, 255, 255, 0.3);
            box-shadow: 0 0 15px rgba(0, 255, 255, 0.25);
        }

        [data-theme="light"] .footer-social a:hover {
            background: #5046e5;
            color: white;
            border-color: transparent;
            box-shadow: none;
        }

        .footer-title {
            font-weight: 600;
            margin-bottom: 1rem;
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 0.5rem;
        }

        .footer-links a {
            font-size: 0.9rem;
            color: var(--text-secondary);
            transition: color 0.2s ease;
        }

        .footer-links a:hover {
            color: #00ffff;
        }

        [data-theme="light"] .footer-links a:hover {
            color: #5046e5;
        }

        .footer-bottom {
            padding-top: 1.5rem;
            border-top: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        .footer-legal-links {
            display: flex;
            gap: 1.5rem;
        }

        .footer-legal-links a {
            color: var(--text-muted);
            transition: color 0.2s ease;
        }

        .footer-legal-links a:hover {
            color: var(--text-primary);
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .hero-grid {
                grid-template-columns: 1fr;
            }

            .hero-sidebar {
                flex-direction: row;
            }

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

            .sidebar {
                position: static;
            }

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

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

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

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

        @media (max-width: 768px) {
            .mobile-menu-btn {
                display: flex;
            }

            .nav-main {
                display: none;
            }

            .header-actions .subscribe-btn {
                display: none;
            }

            .hero-main {
                min-height: 320px;
            }

            .hero-main-title {
                font-size: 1.5rem;
            }

            .hero-sidebar {
                flex-direction: column;
            }

            .breaking-items {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            .article-card {
                grid-template-columns: 1fr;
            }

            .article-image {
                aspect-ratio: 16/9;
            }

            .tools-grid,
            .deep-dives-grid {
                grid-template-columns: 1fr;
            }

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

            .newsletter-form {
                flex-direction: column;
            }

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

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

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

        .animate-fade-in {
            animation: fadeIn 0.5s ease forwards;
        }
/* ===== WordPress integration helpers ===== */

/* Let WP current menu item look like .active */
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a {
    color: #00ffff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
}
[data-theme="light"] .nav-links .current-menu-item > a,
[data-theme="light"] .nav-links .current_page_item > a {
    color: #5046e5;
    text-shadow: none;
}
.nav-links .current-menu-item > a::before,
.nav-links .current_page_item > a::before {
    width: 80%;
}

/* Mobile menu open state */
@media (max-width: 768px) {
  .nav-main.is-open {
    display: block;
    padding-top: 0.75rem;
  }
  .nav-main.is-open .nav-links {
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 0;
  }
  .nav-main.is-open .social-links {
    padding-bottom: 0.75rem;
  }
}

/* Topic chips (replaces inline styles) */
.topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.topic-chip {
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all 0.2s;
  border: 1px solid transparent;
}
.topic-chip:hover {
  color: var(--text-primary);
  border-color: rgba(0, 255, 255, 0.25);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.12);
}
[data-theme="light"] .topic-chip:hover {
  border-color: rgba(80, 70, 229, 0.25);
  box-shadow: none;
}

/* Post content typography (single + page) */
.cb-prose {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}
.cb-prose > * + * { margin-top: 1rem; }
.cb-prose h1,
.cb-prose h2,
.cb-prose h3 {
  color: var(--text-primary);
  font-family: 'Newsreader', serif;
  line-height: 1.25;
}
.cb-prose h2 { font-size: 1.6rem; margin-top: 2rem; }
.cb-prose h3 { font-size: 1.25rem; margin-top: 1.75rem; }
.cb-prose a { color: #00ffff; }
[data-theme="light"] .cb-prose a { color: #5046e5; }
.cb-prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid rgba(0, 255, 255, 0.5);
  background: rgba(0, 255, 255, 0.06);
  border-radius: 10px;
  color: var(--text-primary);
}
[data-theme="light"] .cb-prose blockquote {
  border-left-color: rgba(80, 70, 229, 0.6);
  background: rgba(80, 70, 229, 0.06);
}
.cb-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.cb-prose ul, .cb-prose ol { padding-left: 1.25rem; }

/* Make featured images use the existing card image styles */
.cb-bg-cover {
  background-size: cover !important;
  background-position: center !important;
}


/* ================================================
   ADDITIONAL STYLES FOR NEW TEMPLATES
   ================================================ */

/* About Page Styles */
.about-hero {
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.5), rgba(255, 0, 255, 0.5), transparent);
}

[data-theme="light"] .about-hero::before {
    background: linear-gradient(90deg, transparent, rgba(80, 70, 229, 0.3), transparent);
}

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

.about-hero-title {
    font-family: 'Newsreader', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 500;
    line-height: 1.2;
    margin: 1rem 0;
}

.about-hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

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

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

.about-block {
    margin-bottom: 3rem;
}

.mission-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.mission-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ffff, #ff00ff);
}

[data-theme="light"] .mission-block::before {
    background: linear-gradient(90deg, #5046e5, #7c3aed);
}

.mission-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(255, 0, 255, 0.15));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #00ffff;
}

[data-theme="light"] .mission-icon {
    background: linear-gradient(135deg, rgba(80, 70, 229, 0.1), rgba(124, 58, 237, 0.1));
    color: #5046e5;
}

.mission-block h3 {
    font-family: 'Newsreader', serif;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.mission-block p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

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

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.value-card:hover {
    border-color: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}

[data-theme="light"] .value-card:hover {
    border-color: rgba(80, 70, 229, 0.3);
    box-shadow: var(--shadow-md);
}

.value-icon {
    width: 44px;
    height: 44px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #00ffff;
}

[data-theme="light"] .value-icon {
    background: rgba(80, 70, 229, 0.1);
    color: #5046e5;
}

.value-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Quick Facts */
.quick-facts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-fact {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 10px;
}

.fact-number {
    font-family: 'Newsreader', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #00ffff;
}

[data-theme="light"] .fact-number {
    color: #5046e5;
}

.fact-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Connect Links */
.connect-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.connect-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.connect-link:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.3);
    color: #00ffff;
}

[data-theme="light"] .connect-link:hover {
    background: rgba(80, 70, 229, 0.1);
    border-color: rgba(80, 70, 229, 0.3);
    color: #5046e5;
}

/* Founders Section */
.founders-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

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

.founder-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.founder-card:hover {
    border-color: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.1);
}

[data-theme="light"] .founder-card:hover {
    border-color: rgba(80, 70, 229, 0.3);
    box-shadow: var(--shadow-lg);
}

.founder-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(0, 255, 255, 0.3);
}

[data-theme="light"] .founder-image {
    border-color: rgba(80, 70, 229, 0.3);
}

.founder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.founder-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00ffff, #ff00ff);
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="light"] .founder-placeholder {
    background: linear-gradient(135deg, #5046e5, #7c3aed);
}

.founder-placeholder span {
    font-family: 'Newsreader', serif;
    font-size: 3rem;
    color: #0a0a0f;
    font-weight: 600;
}

[data-theme="light"] .founder-placeholder span {
    color: white;
}

.founder-name {
    font-family: 'Newsreader', serif;
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
}

.founder-role {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.founder-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 100px;
    color: #00ffff;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.founder-linkedin:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

[data-theme="light"] .founder-linkedin {
    background: rgba(80, 70, 229, 0.1);
    border-color: rgba(80, 70, 229, 0.2);
    color: #5046e5;
}

[data-theme="light"] .founder-linkedin:hover {
    background: rgba(80, 70, 229, 0.2);
    box-shadow: none;
}

/* Legal Page (Privacy Policy) */
.legal-page {
    padding: 3rem 0;
}

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

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, #00ffff, #ff00ff);
    color: #0a0a0f;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

[data-theme="light"] .legal-badge {
    background: #5046e5;
    color: white;
}

.legal-title {
    font-family: 'Newsreader', serif;
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.legal-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.legal-body {
    margin-bottom: 3rem;
}

.legal-body h2 {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.legal-body h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-footer {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
}

.legal-footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Category Tags in Sidebar */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.category-tag:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.3);
    color: #00ffff;
}

[data-theme="light"] .category-tag:hover {
    background: rgba(80, 70, 229, 0.1);
    border-color: rgba(80, 70, 229, 0.3);
    color: #5046e5;
}

.category-count {
    background: var(--bg-secondary);
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
    font-size: 0.7rem;
}

/* Twitter Feed Section */
.twitter-feed-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    overflow: hidden;
}

.twitter-feed-section .sidebar-title {
    padding: 0 0.5rem 0.75rem;
}

/* Pagination Styles */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination-wrapper .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.pagination-wrapper .page-numbers:hover,
.pagination-wrapper .page-numbers.current {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.3);
    color: #00ffff;
}

[data-theme="light"] .pagination-wrapper .page-numbers:hover,
[data-theme="light"] .pagination-wrapper .page-numbers.current {
    background: rgba(80, 70, 229, 0.1);
    border-color: rgba(80, 70, 229, 0.3);
    color: #5046e5;
}

/* Newsletter form in footer improvements */
.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.newsletter-input:focus {
    outline: none;
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

[data-theme="light"] .newsletter-input {
    background: white;
    border-color: var(--border-color);
}

[data-theme="light"] .newsletter-input:focus {
    border-color: #5046e5;
    box-shadow: 0 0 0 3px rgba(80, 70, 229, 0.1);
}

.newsletter-btn {
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #00ffff, #00ff88);
    color: #0a0a0f;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.newsletter-btn:hover {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

[data-theme="light"] .newsletter-btn {
    background: #5046e5;
    color: white;
}

[data-theme="light"] .newsletter-btn:hover {
    background: #3730a3;
}

/* Hero Section Improvements for Blog Template */
.hero-main {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    display: block;
}

.hero-main-image {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.hero-main-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
}

.hero-main-content {
    position: relative;
    padding: 2rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100%;
}

.hero-main-title {
    font-family: 'Newsreader', serif;
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.hero-category {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, #00ffff, #ff00ff);
    color: #0a0a0f;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    width: fit-content;
}

[data-theme="light"] .hero-category {
    background: #5046e5;
    color: white;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-meta-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


/* ================================================
   READING PROGRESS BAR
   ================================================ */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ffff, #ff00ff);
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

[data-theme="light"] .reading-progress-bar {
    background: linear-gradient(90deg, #5046e5, #7c3aed);
    box-shadow: none;
}

/* ================================================
   TABLE OF CONTENTS
   ================================================ */
.toc-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.toc-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.toc-icon {
    color: #00ffff;
}

[data-theme="light"] .toc-icon {
    color: #5046e5;
}

.toc-toggle {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    transition: transform 0.3s ease;
}

.toc-toggle.rotated {
    transform: rotate(180deg);
}

.toc-nav {
    padding: 1rem 1.25rem;
    max-height: 400px;
    overflow-y: auto;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
}

.toc-nav.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 0.5rem;
}

.toc-item a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.toc-item a:hover {
    background: var(--bg-secondary);
    color: #00ffff;
    border-left-color: #00ffff;
}

[data-theme="light"] .toc-item a:hover {
    color: #5046e5;
    border-left-color: #5046e5;
}

.toc-h3 {
    padding-left: 1rem;
}

.toc-h3 a {
    font-size: 0.85rem;
}

/* Sidebar TOC */
.sidebar-toc-nav {
    max-height: 300px;
    overflow-y: auto;
}

.sidebar-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-toc-list li {
    margin-bottom: 0.25rem;
}

.sidebar-toc-list a {
    display: block;
    padding: 0.4rem 0.75rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    border-radius: 4px;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}

.sidebar-toc-list a:hover,
.sidebar-toc-list a.active {
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    border-left-color: #00ffff;
}

[data-theme="light"] .sidebar-toc-list a:hover,
[data-theme="light"] .sidebar-toc-list a.active {
    background: rgba(80, 70, 229, 0.1);
    color: #5046e5;
    border-left-color: #5046e5;
}

.sidebar-toc-list .toc-h3 a {
    padding-left: 1.5rem;
    font-size: 0.75rem;
}

/* ================================================
   SHARE BUTTONS
   ================================================ */
.share-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.share-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.share-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.3);
    color: #00ffff;
}

[data-theme="light"] .share-btn:hover {
    background: rgba(80, 70, 229, 0.1);
    border-color: rgba(80, 70, 229, 0.3);
    color: #5046e5;
}

.share-copy.copied {
    background: rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.4);
    color: #00ff88;
}

/* ================================================
   POST NAVIGATION
   ================================================ */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.post-nav-link:hover {
    border-color: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}

[data-theme="light"] .post-nav-link:hover {
    border-color: rgba(80, 70, 229, 0.3);
    box-shadow: var(--shadow-md);
}

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

.post-nav-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.post-nav-next .post-nav-label {
    justify-content: flex-end;
}

.post-nav-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* ================================================
   RELATED POSTS WITH THUMBNAILS
   ================================================ */
.related-posts-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-post-card {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.related-post-card:hover {
    background: rgba(0, 255, 255, 0.1);
}

[data-theme="light"] .related-post-card:hover {
    background: rgba(80, 70, 229, 0.1);
}

.related-post-image {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
}

.related-post-content {
    flex: 1;
    min-width: 0;
}

.related-post-category {
    font-size: 0.65rem;
    font-weight: 600;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

[data-theme="light"] .related-post-category {
    color: #5046e5;
}

.related-post-title {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
    margin-top: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ================================================
   SEARCH MODAL
   ================================================ */
.search-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.search-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.search-modal-content {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.search-modal.is-open .search-modal-content {
    transform: translateY(0);
}

.search-modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.search-input-wrapper:focus-within {
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.1);
}

[data-theme="light"] .search-input-wrapper:focus-within {
    border-color: rgba(80, 70, 229, 0.5);
    box-shadow: 0 0 0 3px rgba(80, 70, 229, 0.1);
}

.search-input-icon {
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-modal-input {
    flex: 1;
    background: none;
    border: none;
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
}

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

.search-kbd {
    padding: 0.25rem 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: monospace;
    color: var(--text-muted);
}

.search-modal-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.search-modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.search-modal-results {
    max-height: 60vh;
    overflow-y: auto;
}

.search-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-muted);
    text-align: center;
}

.search-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-muted);
}

.search-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-color);
    border-top-color: #00ffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

[data-theme="light"] .search-spinner {
    border-top-color: #5046e5;
}

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

.search-results-list {
    padding: 0.5rem;
}

.search-result-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: var(--bg-secondary);
}

.search-result-thumb {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-category {
    font-size: 0.7rem;
    font-weight: 600;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

[data-theme="light"] .search-result-category {
    color: #5046e5;
}

.search-result-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0.25rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-excerpt {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.search-result-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.search-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    margin: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    color: #00ffff;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

[data-theme="light"] .search-view-all {
    color: #5046e5;
}

.search-view-all:hover {
    background: rgba(0, 255, 255, 0.1);
}

[data-theme="light"] .search-view-all:hover {
    background: rgba(80, 70, 229, 0.1);
}

/* ================================================
   COOKIE CONSENT BANNER
   ================================================ */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    padding: 1rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-consent.is-visible {
    transform: translateY(0);
}

.cookie-consent.is-hidden {
    transform: translateY(100%);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-content p {
    flex: 1;
    min-width: 300px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cookie-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: underline;
}

.cookie-link:hover {
    color: var(--text-primary);
}

.cookie-accept {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #00ffff, #ff00ff);
    color: #0a0a0f;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-theme="light"] .cookie-accept {
    background: #5046e5;
    color: white;
}

.cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

[data-theme="light"] .cookie-accept:hover {
    box-shadow: 0 4px 15px rgba(80, 70, 229, 0.3);
}

/* ================================================
   ANIMATION CLASSES
   ================================================ */
.article-card,
.tool-card,
.deep-dive-card,
.founder-card,
.value-card,
.tool-card-large {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.article-card.animate-in,
.tool-card.animate-in,
.deep-dive-card.animate-in,
.founder-card.animate-in,
.value-card.animate-in,
.tool-card-large.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for grids */
.tools-grid .tool-card-large:nth-child(1) { transition-delay: 0s; }
.tools-grid .tool-card-large:nth-child(2) { transition-delay: 0.1s; }
.tools-grid .tool-card-large:nth-child(3) { transition-delay: 0.2s; }
.tools-grid .tool-card-large:nth-child(4) { transition-delay: 0.3s; }

/* ================================================
   SINGLE POST STYLES
   ================================================ */
.single-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.2;
    margin-top: 0.75rem;
}

.featured-image-wrapper {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

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

/* ================================================
   HEADER SCROLLED STATE
   ================================================ */
.header.scrolled {
    box-shadow: var(--shadow-md);
}

/* ================================================
   IMAGE LAZY LOAD FADE IN
   ================================================ */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded,
img.loaded {
    opacity: 1;
}

/* Native lazy loading support */
img:not([loading]) {
    opacity: 1;
}

/* ================================================
   RESPONSIVE ADJUSTMENTS
   ================================================ */
@media (max-width: 768px) {
    .share-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .post-nav-next {
        text-align: left;
    }
    
    .post-nav-next .post-nav-label {
        justify-content: flex-start;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content p {
        min-width: auto;
    }
    
    .search-modal-content {
        margin: 0.5rem;
        max-height: 90vh;
    }
    
    .search-result-item {
        flex-direction: column;
    }
    
    .search-result-thumb {
        width: 100%;
        height: 120px;
    }
}
