/*
Theme Name: FreeForex Master
Author: Akila
Description: Fast, minimal theme for download pages.
Version: 2.0
*/

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

/* ========== Unique Color Palette: Purple + Cyan ========== */
:root {
    /* Dark Theme Base */
    --bg-primary: #09090f;
    --bg-secondary: #0f0f18;
    --bg-card: rgba(255, 255, 255, 0.02);
    --bg-card-hover: rgba(255, 255, 255, 0.05);

    /* Primary: Deep Purple */
    --purple-400: #a78bfa;
    --purple-500: #8b5cf6;
    --purple-600: #7c3aed;

    /* Secondary: Electric Cyan */
    --cyan-400: #22d3ee;
    --cyan-500: #06b6d4;
    --cyan-600: #0891b2;

    /* Accent Gradients */
    --gradient-primary: linear-gradient(135deg, var(--purple-500), var(--cyan-400));
    --gradient-purple: linear-gradient(135deg, var(--purple-600), var(--purple-400));
    --gradient-glow: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(34, 211, 238, 0.2));

    /* Text */
    --text-primary: #f1f5f9;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-glow: rgba(139, 92, 246, 0.4);
    --border-cyan: rgba(34, 211, 238, 0.3);

    /* Effects */
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-purple: 0 0 50px rgba(139, 92, 246, 0.2);
    --shadow-cyan: 0 0 40px rgba(34, 211, 238, 0.15);
    --blur: blur(20px);

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 16px;
    --radius-sm: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--cyan-400);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--purple-400);
}

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

/* ========== Animated Background ========== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(34, 211, 238, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ========== Header ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-branding {
    display: flex;
    flex-direction: column;
}

.site-logo {
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.site-logo:hover {
    opacity: 0.9;
    text-decoration: none;
}

.site-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

.main-nav .nav-menu {
    list-style: none;
    display: flex;
    gap: 8px;
}

.main-nav .nav-menu li a {
    display: block;
    padding: 10px 18px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.main-nav .nav-menu li a:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

/* Search */
.header-search form {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.header-search form:focus-within {
    border-color: var(--purple-400);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.header-search input {
    background: transparent;
    border: none;
    padding: 10px 16px;
    color: var(--text-primary);
    font-size: 0.9rem;
    width: 220px;
    outline: none;
}

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

.header-search button {
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}

.header-search button:hover {
    color: var(--cyan-400);
}

/* Header Ad */
.header-ad-area {
    background: var(--bg-secondary);
    text-align: center;
    padding: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

/* ========== Hero Section ========== */
.homepage-hero {
    position: relative;
    padding: 100px 24px 80px;
    text-align: center;
    overflow: hidden;
}

.homepage-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: var(--gradient-glow);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    pointer-events: none;
}

.homepage-hero h1 {
    position: relative;
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.homepage-hero p {
    position: relative;
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ========== Container ========== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* ========== Section Titles ========== */
.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* ========== Posts Grid ========== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.post-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-purple);
}

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

.post-card-link {
    display: block;
    color: var(--text-primary);
}

.post-card-link:hover {
    text-decoration: none;
}

.post-card-image {
    height: 180px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.post-card-image.placeholder {
    font-size: 3rem;
    opacity: 0.3;
}

.post-card-title {
    font-size: 1rem;
    font-weight: 600;
    padding: 20px;
    line-height: 1.4;
}

/* ========== Archive Layout ========== */
.archive-page,
.search-page {
    padding-top: 20px;
}

.archive-header,
.search-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.archive-title,
.search-header h1 {
    font-size: 2rem;
    font-weight: 700;
}

.archive-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

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

.search-header h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.widget {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

/* ========== Ad Slots ========== */
.ad-slot {
    text-align: center;
    padding: 20px;
    margin: 32px 0;
    background: var(--bg-card);
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius);
}

.ad-inline {
    grid-column: 1 / -1;
}

/* ========== Single Post / Download Page ========== */
.main-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 24px;
}

.entry-header {
    text-align: center;
    margin-bottom: 40px;
}

.entry-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
}

.post-thumbnail {
    margin-bottom: 40px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.post-thumbnail img {
    width: 100%;
}

/* Download Section - Premium Style */
.download-section {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 48px 32px;
    text-align: center;
    margin: 48px 0;
    overflow: hidden;
}

.download-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.download-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: var(--gradient-glow);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
}

.btn-download {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 18px 48px;
    border-radius: 100px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-download:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(34, 211, 238, 0.4);
    color: white;
    text-decoration: none;
}

.download-note {
    position: relative;
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.entry-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 48px 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content ul,
.entry-content ol {
    margin: 20px 0;
    padding-left: 24px;
}

.entry-content li {
    margin-bottom: 8px;
}

/* ========== Footer ========== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 60px 24px 40px;
    margin-top: 80px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    margin-bottom: 24px;
}

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

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

.footer-copyright p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ========== Pagination ========== */
.pagination {
    margin-top: 48px;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    color: var(--text-primary);
    text-decoration: none;
}

.pagination .current {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

/* ========== 404 Page ========== */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-content {
    text-align: center;
}

.error-content h1 {
    font-size: 8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.error-content h2 {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin: 16px 0 32px;
}

/* ========== No Posts ========== */
.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: var(--text-muted);
}

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

    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .main-nav {
        order: 3;
        width: 100%;
    }

    .main-nav .nav-menu {
        justify-content: center;
        flex-wrap: wrap;
    }

    .header-search {
        width: 100%;
    }

    .header-search input {
        width: 100%;
    }

    .homepage-hero {
        padding: 60px 20px 50px;
    }

    .homepage-hero h1 {
        font-size: 2.2rem;
    }

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

    .entry-title {
        font-size: 1.8rem;
    }

    .btn-download {
        padding: 16px 32px;
        font-size: 1rem;
    }
}

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

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

.post-card {
    animation: fadeInUp 0.4s ease backwards;
}

.post-card:nth-child(1) {
    animation-delay: 0.05s;
}

.post-card:nth-child(2) {
    animation-delay: 0.1s;
}

.post-card:nth-child(3) {
    animation-delay: 0.15s;
}

.post-card:nth-child(4) {
    animation-delay: 0.2s;
}

.post-card:nth-child(5) {
    animation-delay: 0.25s;
}

.post-card:nth-child(6) {
    animation-delay: 0.3s;
}

/* ========== NEW HEADER STYLES ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(9, 9, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.5));
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.primary-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    display: block;
    padding: 10px 18px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-links li a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-form input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    padding: 10px 16px 10px 42px;
    color: var(--text-primary);
    font-size: 0.9rem;
    width: 200px;
    outline: none;
    transition: all 0.2s ease;
}

.search-form input:focus {
    border-color: var(--purple-500);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    width: 260px;
}

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

.btn-header {
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 100px;
    transition: all 0.2s ease;
}

.btn-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
    color: white;
    text-decoration: none;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
}

.header-ad-banner {
    background: var(--bg-secondary);
    text-align: center;
    padding: 12px;
    margin-top: 64px;
}

/* Body offset for fixed header */
body {
    padding-top: 64px;
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(139, 92, 246, 0.3);
    top: -150px;
    left: -100px;
    animation: float 8s ease-in-out infinite;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(34, 211, 238, 0.2);
    bottom: -100px;
    right: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {

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

    50% {
        transform: translate(30px, -30px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--purple-400);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--gradient-primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 100px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--purple-500);
    background: rgba(139, 92, 246, 0.1);
    text-decoration: none;
}

.hero-trust {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hero-trust span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ========== SECTIONS ========== */
.downloads-section,
.categories-section {
    padding: 80px 24px;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 48px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.title-icon {
    font-size: 1.5rem;
}

.section-desc {
    color: var(--text-muted);
}

/* ========== DOWNLOAD CARDS ========== */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.4s ease backwards;
}

.download-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-purple);
}

.card-link {
    display: block;
    color: var(--text-primary);
}

.card-link:hover {
    text-decoration: none;
}

.card-image {
    position: relative;
    height: 180px;
    background: var(--bg-secondary);
    overflow: hidden;
}

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

.download-card:hover .card-image img {
    transform: scale(1.08);
}

.card-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.3;
}

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

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

.card-action {
    padding: 10px 24px;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    border-radius: 100px;
    font-size: 0.9rem;
}

.card-content {
    padding: 20px;
}

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

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-cat {
    background: rgba(139, 92, 246, 0.1);
    color: var(--purple-400);
    padding: 4px 10px;
    border-radius: 100px;
}

/* ========== CATEGORY CARDS ========== */
.categories-section {
    background: var(--bg-secondary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 32px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: var(--cyan-400);
    background: rgba(34, 211, 238, 0.05);
    transform: translateY(-4px);
    text-decoration: none;
}

.cat-icon {
    font-size: 2rem;
}

.cat-name {
    font-weight: 600;
    color: var(--text-primary);
}

.cat-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========== NEW FOOTER ========== */
.site-footer {
    position: relative;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 80px 24px 40px;
    margin-top: 0;
}

.footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 200px;
    background: var(--gradient-glow);
    filter: blur(100px);
    opacity: 0.3;
    pointer-events: none;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-logo:hover {
    text-decoration: none;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.footer-stats {
    display: flex;
    gap: 32px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links-group h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.footer-links-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-group li {
    margin-bottom: 12px;
}

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

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

.footer-cta h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.footer-cta p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.footer-subscribe {
    display: flex;
    gap: 8px;
}

.footer-subscribe input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
}

.footer-subscribe input:focus {
    border-color: var(--purple-500);
}

.footer-subscribe button {
    padding: 12px 18px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.footer-subscribe button:hover {
    transform: scale(1.05);
}

.footer-bottom {
    max-width: 1400px;
    margin: 48px auto 0;
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

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

.footer-disclaimer {
    font-style: italic;
}

/* ========== AD CONTAINER ========== */
.ad-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 24px;
    text-align: center;
}

/* ========== RESPONSIVE UPDATES ========== */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .primary-nav,
    .header-actions {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-stats {
        justify-content: center;
    }

    .footer-subscribe {
        max-width: 300px;
        margin: 0 auto;
    }

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

/* ========== SINGLE POST STYLES ========== */
.single-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -64px;
    padding-top: 64px;
}

.single-hero-bg {
    position: absolute;
    inset: 0;
}

.single-hero-bg .hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(9, 9, 15, 0.7), rgba(9, 9, 15, 0.95));
}

.single-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 24px;
    max-width: 900px;
}

.single-category {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--purple-400);
    margin-bottom: 20px;
}

.single-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.single-meta {
    display: flex;
    gap: 24px;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Single Container */
.single-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
}

.single-content-wrapper {
    min-width: 0;
}

/* Download Box */
.download-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.download-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.download-box-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.download-icon {
    font-size: 2.5rem;
}

.download-info {
    flex: 1;
    min-width: 200px;
}

.download-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.download-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--gradient-primary);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 100px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    white-space: nowrap;
}

.btn-download:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(34, 211, 238, 0.4);
    color: white;
    text-decoration: none;
}

.download-trust {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.download-box-bottom {
    margin-top: 40px;
    text-align: center;
}

.download-box-bottom .download-box-inner {
    flex-direction: column;
    text-align: center;
}

/* Single Content */
.single-content {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

.single-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 48px 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.single-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 32px 0 16px;
}

.single-content p {
    margin-bottom: 20px;
}

.single-content ul,
.single-content ol {
    margin: 20px 0;
    padding-left: 24px;
}

.single-content li {
    margin-bottom: 10px;
}

.single-content a {
    color: var(--cyan-400);
    text-decoration: underline;
}

.single-content a:hover {
    color: var(--purple-400);
}

.single-content img {
    border-radius: var(--radius-sm);
    margin: 20px 0;
}

.single-content pre,
.single-content code {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-family: 'Fira Code', monospace;
}

.single-content pre {
    padding: 20px;
    overflow-x: auto;
}

.single-content code {
    padding: 2px 6px;
    font-size: 0.9em;
}

/* Tags */
.single-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

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

.tag-item {
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.tag-item:hover {
    border-color: var(--purple-500);
    color: var(--purple-400);
    text-decoration: none;
}

/* Single Sidebar */
.single-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

/* Related Posts */
.related-posts {
    margin-top: 24px;
}

.related-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.related-item:last-child {
    border-bottom: none;
}

.related-item:hover {
    text-decoration: none;
    padding-left: 8px;
}

.related-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.related-thumb-placeholder {
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.related-title {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
}

.ad-placeholder {
    background: var(--bg-secondary);
    padding: 60px 20px;
    text-align: center;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

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

    .single-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .single-hero {
        min-height: 300px;
    }

    .single-title {
        font-size: 1.8rem;
    }

    .single-meta {
        flex-direction: column;
        gap: 8px;
    }

    .download-box-inner {
        flex-direction: column;
        text-align: center;
    }

    .download-trust {
        justify-content: center;
    }
}

/* ========== Filter Bar ========== */
.filter-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 30px;
}

.filter-categories {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-subtle);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 5px;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 25px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.filter-pill:hover {
    background: var(--gradient-glow);
    border-color: var(--border-glow);
    color: var(--text-primary);
}

.filter-pill.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
}

.pill-count {
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
}

.filter-tag {
    padding: 5px 12px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 15px;
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.filter-tag:hover {
    border-color: var(--cyan-400);
    color: var(--cyan-400);
}

.filter-tag.active {
    background: var(--cyan-500);
    border-color: var(--cyan-500);
    color: #fff;
}

.tag-count {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 4px;
}

@media (max-width: 768px) {
    .filter-bar {
        padding: 15px;
    }

    .filter-categories,
    .filter-tags {
        gap: 6px;
    }

    .filter-pill {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .filter-label {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* Filter Rows */
.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.filter-row:last-of-type {
    border-bottom: none;
}

.filter-row.no-border {
    border-bottom: none;
}

/* Search Input in Filter */
.filter-search-input {
    flex: 1;
    max-width: 300px;
    padding: 8px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.filter-search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

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

/* Platform Buttons */
.filter-platform-btn {
    padding: 8px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-platform-btn:hover {
    border-color: var(--purple-400);
    color: var(--purple-400);
}

.filter-platform-btn.active {
    background: var(--gradient-purple);
    border-color: transparent;
    color: #fff;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 15px;
    margin-top: 5px;
    border-top: 1px solid var(--border-subtle);
}

.btn-filter-apply {
    padding: 10px 24px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-filter-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-filter-clear {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-filter-clear:hover {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

#fc-filter-status {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Download Countdown Overlay */
#fc-countdown-overlay {
    margin-top: 20px;
    padding: 30px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-tertiary) 100%);
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--accent-primary);
}

.countdown-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.countdown-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#fc-countdown-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
    animation: pulse-countdown 1s infinite;
}

@keyframes pulse-countdown {

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

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.countdown-text {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.countdown-content>p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.countdown-ad {
    margin-top: 20px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 8px;
    width: 100%;
    max-width: 728px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Countdown Complete / Fallback Link */
.countdown-complete {
    text-align: center;
}

.btn-download-fallback {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent-primary);
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-download-fallback:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}