/*
Theme Name: Epfortal Pro
Theme URI: https://epfortal.in/
Template: generatepress
Author: Antigravity
Description: A high-end, professional AI prompt portal theme.
Version: 5.0
Text Domain: epfortal
*/

/* ─── Design System — DARK IS THE BASE ──────────────────────────── */
/* Dark values are in :root — no class needed, always applied first  */
:root {
    --accent:          #00d2ff;
    --accent-alt:      #3a7bd5;
    --accent-gradient: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);

    /* DARK THEME — these are the defaults, no class required */
    --bg-main:     #020617;
    --bg-card:     rgba(15, 23, 42, 0.65);
    --bg-nav:      rgba(2, 6, 23, 0.88);
    --text-main:   #f8fafc;
    --text-muted:  #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.55);
    --search-bg:   rgba(15, 23, 42, 0.7);
    --search-border: rgba(255, 255, 255, 0.12);
    --input-color: #f8fafc;

    --font-heading: 'Outfit', sans-serif;
    --font-ui:      'Inter', sans-serif;
    --radius-lg:    20px;
    --radius-md:    12px;
    --transition-pro: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --m-x: 0px;
    --m-y: 0px;
}

/* ─── Light Mode — ONLY when .light-theme is added ──────────────── */
body.light-theme {
    --bg-main:     #f0f4f8;
    --bg-card:     #ffffff;
    --bg-nav:      rgba(255, 255, 255, 0.92);
    --text-main:   #0f172a;
    --text-muted:  #64748b;
    --glass-border: rgba(0, 0, 0, 0.07);
    --glass-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.12);
    --search-bg:   rgba(255, 255, 255, 0.8);
    --search-border: rgba(0, 0, 0, 0.1);
    --input-color: #0f172a;
}

/* ─── Global Reset ──────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0; padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-ui);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* ─── Ambient Mesh ───────────────────────────────────────────────── */
.bg-mesh {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 20%, rgba(0, 210, 255, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(58, 123, 213, 0.07) 0%, transparent 40%);
}
.dark-theme .bg-mesh {
    background:
        radial-gradient(circle at 10% 20%, rgba(0, 210, 255, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(58, 123, 213, 0.12) 0%, transparent 40%);
}

/* ─── Navbar ─────────────────────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0; z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.85rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none !important;
    color: var(--text-main) !important;
    transition: opacity 0.3s;
}
.brand-logo:hover { opacity: 0.8; }

.logo-text { display: flex; flex-direction: column; }
.main-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    line-height: 1;
}
.sub-text {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    transition: color 0.3s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-main); }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* ─── Nav Actions ────────────────────────────────────────────────── */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Theme Toggle — icon visibility driven by CSS body class */
.theme-toggle {
    width: 38px; height: 38px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-main);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition-pro);
}
.theme-toggle:hover {
    background: var(--accent);
    color: #fff;
    transform: rotate(15deg);
    border-color: transparent;
}

/* Theme Toggle Icons - Bulletproof Visibility */
.theme-toggle svg {
    width: 20px !important;
    height: 20px !important;
    stroke-width: 2px !important;
    fill: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.theme-toggle .icon-sun {
    display: block !important;
    stroke: #ffffff !important;
}
.theme-toggle .icon-sun, .theme-toggle .icon-sun * { stroke: #ffffff !important; }

.theme-toggle .icon-moon {
    display: none !important;
}

/* Light mode: show moon */
body.light-theme .theme-toggle .icon-sun {
    display: none !important;
}

body.light-theme .theme-toggle .icon-moon {
    display: block !important;
    stroke: #0f172a !important;
}
body.light-theme .theme-toggle .icon-moon,
body.light-theme .theme-toggle .icon-moon * {
    stroke: #0f172a !important;
}

/* Make toggle icon perfectly bright on hover */
.theme-toggle:hover svg, .theme-toggle:hover svg * { 
    stroke: #ffffff !important; 
}

/* Mobile hamburger — HIDDEN on desktop */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 4px;
}

/* ─── Hero Section ────────────────────────────────────────────────── */
.hero {
    padding: 4rem 2rem 1.5rem;
    text-align: center;
}

.hero-heading {
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.05;
    margin-bottom: 2rem;
    color: #ffffff;
}

/* "Find" and "Easily" plain white */
.hero-heading { color: #fff; }

/* Typewriter wrapper keeps gradient text inline */
.typewriter-wrap {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

/* The animated gradient text — the centrepiece */
.typewriter-text {
    background: linear-gradient(135deg, #00d2ff 0%, #7b2fff 50%, #ff61d2 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shiftGradient 4s linear infinite;
    font-weight: 800;
    text-shadow: none;
    filter: drop-shadow(0 0 16px rgba(0,210,255,0.4));
}

@keyframes shiftGradient {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-subtext {
    color: rgba(148, 163, 184, 0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0.5rem auto 0;
    letter-spacing: 0.01em;
}


/* ─── Search Bar — Dark Glass (forced over GP defaults) ───────────── */
.search-container {
    max-width: 640px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    background: rgba(10, 15, 35, 0.75) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1.5px solid rgba(0, 210, 255, 0.25) !important;
    border-radius: 100px !important;
    padding: 6px !important;
    box-shadow: 0 16px 48px -8px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,210,255,0.08), inset 0 1px 0 rgba(255,255,255,0.05) !important;
    transition: var(--transition-pro);
}

/* Light mode override */
body.light-theme .search-container {
    background: rgba(240, 244, 248, 0.85) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 8px 30px -8px rgba(0,0,0,0.15) !important;
}

.search-container:focus-within {
    border-color: var(--accent) !important;
    transform: translateY(-3px);
    box-shadow: 0 20px 60px -10px rgba(0, 210, 255, 0.35) !important;
}

.search-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0.85rem 1.5rem;
    color: #f8fafc !important;
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 500;
    outline: none;
}
.search-input::placeholder { color: var(--text-muted); opacity: 1; }

.search-btn {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--accent-gradient);
    color: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.25);
    flex-shrink: 0;
}
.search-btn:hover { transform: scale(1.08); }

/* ─── Filter Bar ──────────────────────────────────────────────────── */
.filter-bar {
    padding: 0 2rem 2.5rem;
}
.filter-container {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}
.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-pro);
}
.filter-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}
.filter-btn.active {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
}

/* ─── Grid & Cards ────────────────────────────────────────────────── */
.grid-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translate(var(--m-x), var(--m-y));
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translate(var(--m-x), var(--m-y)) translateY(-10px);
    border-color: rgba(0, 210, 255, 0.4);
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,210,255,0.1);
}
.card.filtered-out { display: none !important; }

.card-image-container {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(0,0,0,0.2);
    position: relative;
}
.card-image-container img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.card:hover .card-image-container img { transform: scale(1.08); }

/* Overlay on hover */
.card-image-container::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.45) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.card:hover .card-image-container::after { opacity: 1; }

/* Card Link Overlay */
.card-link {
    display: block;
    text-decoration: none !important;
    color: var(--text-main) !important;
    height: 100%;
    width: 100%;
    transition: color 0.3s ease;
}

.card:hover .card-link,
.card:hover .card-title {
    color: #ffffff !important;
}

.card-title {
    padding: 1.25rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.4;
    text-align: center;
}

/* Global Magnetic Light Cursor */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: radial-gradient(500px circle at var(--mouse-x) var(--mouse-y), rgba(0, 210, 255, 0.08), transparent 40%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
}



/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ─── Footer ──────────────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--glass-border);
    padding: 3.5rem 2rem;
    background: var(--bg-nav);
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--accent); }
.footer-copyright { color: var(--text-muted); font-size: 0.8rem; }

/* ─── Elite Pages ─────────────────────────────────────────────────── */
.ep-page-container {
    max-width: 960px;
    margin: 4rem auto;
    padding: 0 2rem;
}
.page-header-refined {
    text-align: center;
    margin-bottom: 2.5rem;
}
.page-title-elite {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ep-document-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 3.5rem 4rem;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}
.ep-document-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--accent-gradient);
}
.entry-content-elite {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-main);
}
.entry-content-elite h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.02em;
}
.entry-content-elite p { margin-bottom: 1.4rem; opacity: 0.9; }
.entry-content-elite ul,
.entry-content-elite ol {
    list-style: none;
    margin: 1.25rem 0 1.25rem 0.5rem;
}
.entry-content-elite li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.85rem;
}
.entry-content-elite ul li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.55em;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}
.entry-content-elite ol { counter-reset: clause; }
.entry-content-elite ol li { counter-increment: clause; }
.entry-content-elite ol li::before {
    content: counter(clause) ".";
    position: absolute;
    left: 0;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--accent);
    font-size: 0.88rem;
}

/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
    /* Show hamburger on mobile */
    .mobile-menu-btn { display: block; }

    /* Hide nav links by default on mobile */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; width: 100%;
        flex-direction: column;
        background: var(--bg-nav);
        backdrop-filter: blur(14px);
        padding: 1.5rem 2rem;
        gap: 1.25rem;
        border-bottom: 1px solid var(--glass-border);
    }
    /* Show when JS adds 'open' class */
    .nav-links.open { display: flex; }

    .navbar { position: relative; }

    .hero { padding: 4rem 1.5rem 2rem; }
    .grid-container { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
    .ep-document-card { padding: 2rem 1.75rem; }
}

@media (max-width: 580px) {
    .grid-container { grid-template-columns: 1fr; }
    .page-title-elite { font-size: 2rem; }
}

/* ─── Category / Archive Hero Banner ────────────────────────────── */
.cat-hero {
    position: relative;
    padding: 5rem 2rem 4rem;
    text-align: center;
    overflow: hidden;
}

.cat-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cat-hero-glow {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--cat-gradient, linear-gradient(135deg,#00d2ff,#3a7bd5));
    opacity: 0.08;
    filter: blur(60px);
    transform: scale(1.3);
}

.cat-badge {
    display: inline-block;
    background: var(--cat-gradient, linear-gradient(135deg,#00d2ff,#3a7bd5));
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
}

.cat-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    background: var(--cat-gradient, linear-gradient(135deg,#00d2ff,#3a7bd5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.cat-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Search bar inside category page */
.cat-search-bar {
    padding: 0 2rem 2.5rem;
}

/* Card title links */
.card-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}
.card-title a:hover { color: var(--accent); }

/* ─── Empty State ────────────────────────────────────────────────── */
.ep-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-muted);
}
.ep-empty-state svg {
    margin-bottom: 1.5rem;
    opacity: 0.4;
}
.ep-empty-state h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}
.ep-empty-state p { margin-bottom: 2rem; }

/* ─── CTA Button ─────────────────────────────────────────────────── */
.ep-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-gradient);
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1.75rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition-pro);
}
.ep-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,210,255,0.3); }

/* ─── Pagination ─────────────────────────────────────────────────── */
.ep-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 2rem 4rem;
    flex-wrap: wrap;
}
.ep-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-pro);
}
.ep-pagination .page-numbers:hover { color: var(--accent); border-color: var(--accent); }
.ep-pagination .page-numbers.current {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
}

@media (max-width: 900px) {
    .cat-hero { padding: 3.5rem 1.5rem 2.5rem; }
}

/* ─── Premium Article Layout (Single Post) ────────────────────────── */
.ep-single-article {
    max-width: 800px;
    margin: 3rem auto 6rem;
    padding: 0 1.5rem;
}

/* Header & Meta */
.ep-article-header {
    margin-bottom: 3.5rem;
}
.ep-article-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin: 0 0 1.5rem 0;
}

.ep-article-meta-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.ep-author-img img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.1);
}
.ep-meta-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.ep-author-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
}
.ep-time-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.ep-meta-sep { opacity: 0.5; }

/* Base Content Typography */
.ep-article-content {
    font-family: var(--font-ui);
    font-size: 1.125rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.85); /* Highly readable off-white */
}

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

.ep-article-content h2,
.ep-article-content h3,
.ep-article-content h4 {
    font-family: var(--font-heading);
    color: #ffffff;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.ep-article-content h2 { font-size: 2rem; }
.ep-article-content h3 { font-size: 1.5rem; }

/* Author Box */
.ep-author-box {
    margin-top: 5rem;
    padding: 2.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.ep-author-avatar-large img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}
.ep-author-info {
    flex: 1;
}
.ep-written-by {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    font-weight: 700;
    display: block;
    margin-bottom: 0.2rem;
}
.ep-author-name-large {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
    color: #fff;
}
.ep-author-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}
@media (max-width: 600px) {
    .ep-author-box {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
}

/* If the user uses blockquotes for prompts */
.ep-article-content blockquote {
    background: var(--search-bg);
    border: 1px solid var(--search-border);
    border-left: 4px solid var(--accent);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-main);
}

/* The dynamic wrapper for prompt blocks */
.ep-prompt-wrapper {
    background: var(--search-bg);
    border: 1px solid var(--search-border);
    border-radius: var(--radius-md);
    margin: 2.5rem 0;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}

/* The header containing the Copy button */
.ep-prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--glass-border);
}

.ep-prompt-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.02em;
}

.ep-prompt-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid transparent;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-pro);
}
.ep-prompt-copy:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-color: var(--glass-border);
}
.ep-prompt-copy.copied {
    color: #10b981; /* Success Green */
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

/* The actual text pre window */
.ep-article-content pre {
    background: transparent;
    padding: 1.5rem;
    margin: 0;
    border: none;
    border-radius: 0;
    white-space: pre-wrap; /* Critical: wraps text so it doesn't overflow horizontally */
    word-break: break-word; /* Prevents long URLs/words from overflowing */
    font-family: var(--font-ui); /* Natural text rendering */
    color: var(--text-main);
    line-height: 1.7;
    font-size: 1.05rem;
}

p code {
    background: rgba(255,255,255,0.06);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: #ff61d2;
}

.ep-article-content ul, .ep-article-content ol {
    margin-bottom: 1.75rem;
    padding-left: 1.5rem;
}

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

/* ─── Premium Footer ──────────────────────────────────────────────── */
.ep-premium-footer {
    background: #0b1121;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 5rem 0 2rem 0;
    margin-top: 6rem;
    position: relative;
    z-index: 10;
}

.ep-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.ep-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.ep-footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    margin-bottom: 1.25rem;
}

.ep-footer-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 320px;
}

.ep-footer-heading {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.ep-footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-gradient);
}

.ep-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.ep-footer-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-pro);
}

.ep-footer-list a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.ep-footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .ep-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}
@media (max-width: 600px) {
    .ep-footer-grid {
        grid-template-columns: 1fr;
    }
}


/* --- ELITE UPGRADES --- */
.nav-dropdown { position: relative; margin-left: 20px; }
.dropdown-trigger { color: #94a3b8; font-size: 0.9rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 5px; }
.dropdown-menu { position: absolute; top: 100%; right: 0; width: 220px; background: rgba(10,15,29,0.95); backdrop-filter: blur(15px); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 10px; opacity: 0; visibility: hidden; transition: 0.3s; z-index: 99999; pointer-events: auto; }
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; }
.dropdown-item { display: block; padding: 10px; color: #94a3b8; text-decoration: none; font-size: 0.85rem; border-radius: 5px; }
.dropdown-item:hover { background: rgba(255,255,255,0.05); color: #00d2ff; }
.tip-box { margin: 2rem 0; padding: 2rem; background: rgba(0, 210, 255, 0.05); border-left: 4px solid #00d2ff; border-radius: 8px; }
.page-title-elite { font-size: 3rem; font-weight: 800; background: linear-gradient(135deg, #00d2ff, #3a7bd5); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 2rem !important; }
.ep-author-box { margin-top: 4rem; padding: 2rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; display: flex; gap: 1.5rem; align-items: center; }