/* ═══════════════════════════════════════════════════
   NETRINIX ACADEMY — BLOG & DOCUMENTATION STYLES
   Premium Cyberpunk Dark Theme
   ═══════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
    --color-magenta: #ff00ff;
    --color-blue: #0077ff;
    --color-cyan: #00f2ea;
    --bg-primary: #0a0a0a;
    --bg-surface: #111111;
    --bg-card: rgba(17, 17, 17, 0.7);
    --bg-glass: rgba(10, 10, 10, 0.5);
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 119, 255, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow-blue: 0 0 30px rgba(0, 119, 255, 0.15);
    --shadow-glow-magenta: 0 0 30px rgba(255, 0, 255, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Roboto', 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.7;
}

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

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

/* ─── Typography ─── */
.font-orbitron {
    font-family: 'Orbitron', sans-serif;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-magenta), var(--color-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-cyan {
    background: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Background Animations ─── */
.animated-gradient-bg {
    background: linear-gradient(-45deg, #0a0a0a, #0d1a26, #0a0a0a, #1a0d1a);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating particles background */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--color-blue);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle linear infinite;
}

.particle:nth-child(odd) {
    background: var(--color-magenta);
}

.particle:nth-child(3n) {
    background: var(--color-cyan);
    width: 3px;
    height: 3px;
}

@keyframes floatParticle {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-20vh) scale(1); }
}

/* ─── Glass Effect ─── */
.glass-effect {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
}

.glass-card {
    background: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--transition-medium);
}

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

/* ─── Header / Navbar ─── */
.blog-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: all var(--transition-fast);
}

.blog-header.scrolled {
    padding: 0.5rem 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

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

.nav-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo .dot {
    background: linear-gradient(135deg, var(--color-magenta), var(--color-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
    position: relative;
    transition: color var(--transition-fast);
    padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-magenta), var(--color-blue));
    transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: white;
    transition: all var(--transition-fast);
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ─── Hero Section ─── */
.blog-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(255, 0, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(0, 119, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(0, 242, 234, 0.05) 0%, transparent 50%);
    z-index: 1;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 0, 255, 0.3);
    background: rgba(255, 0, 255, 0.06);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-magenta);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease;
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-magenta);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.blog-hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.blog-hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* Search bar in hero */
.hero-search {
    max-width: 560px;
    margin: 0 auto;
    position: relative;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-search input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3.5rem;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.4);
    border-radius: 999px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all var(--transition-fast);
    backdrop-filter: blur(8px);
}

.hero-search input:focus {
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.15), var(--shadow-glow-blue);
}

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

.hero-search .search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* ─── Category Filter ─── */
.category-bar {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 2rem 2rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.category-pill {
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.category-pill:hover {
    border-color: var(--color-blue);
    color: white;
    background: rgba(0, 119, 255, 0.08);
}

.category-pill.active {
    background: linear-gradient(135deg, var(--color-magenta), var(--color-blue));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 119, 255, 0.3);
}

/* ─── Blog Cards Grid ─── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.blog-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-medium);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        var(--shadow-glow-blue);
}

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

.blog-card:hover .card-image .overlay {
    opacity: 1;
}

.card-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card-image .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.2), rgba(0, 119, 255, 0.2));
    opacity: 0;
    transition: opacity var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image .overlay svg {
    width: 48px;
    height: 48px;
    color: white;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.badge-cybersecurity {
    background: rgba(255, 0, 255, 0.85);
    color: white;
}

.badge-ai {
    background: rgba(0, 242, 234, 0.85);
    color: #0a0a0a;
}

.badge-cloud {
    background: rgba(0, 119, 255, 0.85);
    color: white;
}

.badge-career {
    background: rgba(249, 115, 22, 0.85);
    color: white;
}

.card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.card-meta .read-time {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: color var(--transition-fast);
}

.blog-card:hover .card-title {
    color: var(--color-cyan);
}

.card-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

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

.card-author .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-magenta), var(--color-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.card-author .author-name {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.card-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.blog-card:hover .card-arrow {
    background: linear-gradient(135deg, var(--color-magenta), var(--color-blue));
    border-color: transparent;
    color: white;
    transform: translateX(4px);
}

/* ─── Featured Post ─── */
.featured-post {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 2rem 0;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-medium);
    position: relative;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--color-magenta), var(--color-blue), var(--color-cyan));
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.featured-card:hover::before {
    opacity: 0.5;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), var(--shadow-glow-blue);
}

.featured-image {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.featured-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-magenta);
    margin-bottom: 1.5rem;
}

.featured-label svg {
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.featured-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: white;
}

.featured-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* ─── CTA Button ─── */
.btn-gradient {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-magenta), var(--color-blue));
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

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

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

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 119, 255, 0.4);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-outline:hover {
    border-color: var(--color-blue);
    color: white;
    background: rgba(0, 119, 255, 0.08);
}

/* ─── Newsletter Section ─── */
.newsletter-section {
    max-width: 700px;
    margin: 4rem auto;
    padding: 3rem;
    text-align: center;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.06), rgba(0, 119, 255, 0.06));
    border: 1px solid rgba(255, 0, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 0, 255, 0.03) 60deg, transparent 120deg);
    animation: rotateBg 20s linear infinite;
}

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

.newsletter-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    position: relative;
}

.newsletter-section p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    position: relative;
}

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

.newsletter-form input {
    flex: 1;
    padding: 0.85rem 1.25rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: rgba(17, 17, 17, 0.8);
    color: white;
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition-fast);
}

.newsletter-form input:focus {
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.1);
}

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

/* ─── Footer ─── */
.blog-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 3rem 2rem;
    text-align: center;
}

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

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color var(--transition-fast);
}

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

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.footer-socials a:hover {
    border-color: var(--color-blue);
    color: var(--color-blue);
    transform: translateY(-2px);
}

/* ─── Animations ─── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

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

/* Staggered card animations */
.blog-card:nth-child(1) { animation: fadeInUp 0.6s ease 0.1s both; }
.blog-card:nth-child(2) { animation: fadeInUp 0.6s ease 0.2s both; }
.blog-card:nth-child(3) { animation: fadeInUp 0.6s ease 0.3s both; }
.blog-card:nth-child(4) { animation: fadeInUp 0.6s ease 0.4s both; }
.blog-card:nth-child(5) { animation: fadeInUp 0.6s ease 0.5s both; }
.blog-card:nth-child(6) { animation: fadeInUp 0.6s ease 0.6s both; }

/* ═══════════════════════════════════════════════════
   ARTICLE / POST PAGE STYLES
   ═══════════════════════════════════════════════════ */

/* Article Hero */
.article-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: flex-end;
    padding: 0 2rem 3rem;
    overflow: hidden;
}

.article-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.article-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, var(--bg-primary) 0%, rgba(10,10,10,0.5) 50%, rgba(10,10,10,0.3) 100%);
}

.article-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    animation: fadeInUp 0.8s ease;
}

.article-hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.article-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.article-meta .meta-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
}

/* Article Layout */
.article-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 4rem;
}

/* Table of Contents */
.toc-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.toc-widget {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
}

.toc-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.toc-list {
    list-style: none;
}

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

.toc-list a {
    display: block;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    border-left: 2px solid transparent;
    transition: all var(--transition-fast);
}

.toc-list a:hover,
.toc-list a.active {
    color: var(--color-cyan);
    background: rgba(0, 242, 234, 0.05);
    border-left-color: var(--color-cyan);
}

/* Share widget */
.share-widget {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
}

.share-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

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

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.twitter:hover {
    border-color: #1da1f2;
    color: #1da1f2;
    background: rgba(29, 161, 242, 0.1);
}

.share-btn.linkedin:hover {
    border-color: #0077b5;
    color: #0077b5;
    background: rgba(0, 119, 181, 0.1);
}

.share-btn.copy:hover {
    border-color: var(--color-cyan);
    color: var(--color-cyan);
    background: rgba(0, 242, 234, 0.1);
}

/* Article Content */
.article-content {
    max-width: 760px;
}

.article-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: white;
    position: relative;
    padding-left: 1rem;
}

.article-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--color-magenta), var(--color-blue));
}

.article-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
    color: var(--color-cyan);
}

.article-content p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.85;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.article-content li::marker {
    color: var(--color-blue);
}

.article-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 3px solid var(--color-magenta);
    background: rgba(255, 0, 255, 0.04);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.article-content code {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: rgba(0, 119, 255, 0.1);
    color: var(--color-cyan);
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.85em;
}

.article-content pre {
    margin: 1.5rem 0;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    background: #0d1117;
    border: 1px solid var(--border-subtle);
    overflow-x: auto;
    position: relative;
}

.article-content pre code {
    padding: 0;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.article-content img {
    border-radius: var(--radius-md);
    margin: 2rem 0;
    border: 1px solid var(--border-subtle);
}

.article-content strong {
    color: white;
    font-weight: 600;
}

.article-content a {
    color: var(--color-cyan);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}

.article-content a:hover {
    color: var(--color-blue);
}

/* Related Posts */
.related-posts {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 2rem;
    border-top: 1px solid var(--border-subtle);
}

.related-posts h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* ─── Scroll to Top Button ─── */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-magenta), var(--color-blue));
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-fast);
    z-index: 90;
    box-shadow: 0 4px 15px rgba(0, 119, 255, 0.3);
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 119, 255, 0.5);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .featured-image {
        min-height: 250px;
    }

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

    .toc-sidebar {
        position: relative;
        top: 0;
        order: -1;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .blog-hero {
        min-height: 60vh;
        padding: 6rem 1rem 3rem;
    }

    .blog-hero h1 {
        font-size: 1.75rem;
    }

    .featured-content {
        padding: 2rem;
    }

    .featured-content h2 {
        font-size: 1.35rem;
    }

    .newsletter-section {
        margin: 2rem 1rem;
        padding: 2rem 1.5rem;
    }

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

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

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .article-hero {
        min-height: 40vh;
        padding: 0 1rem 2rem;
    }

    .article-layout {
        padding: 2rem 1rem;
        gap: 2rem;
    }

    .article-content h2 {
        font-size: 1.25rem;
    }

    .category-bar {
        padding: 1.5rem 1rem 0;
    }
}

/* ─── Mobile Navigation Overlay ─── */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 99;
    padding: 6rem 2rem 2rem;
}

.mobile-nav-overlay.open {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeIn 0.3s ease;
}

.mobile-nav-overlay a {
    font-size: 1.25rem;
    color: var(--text-secondary);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: color var(--transition-fast);
}

.mobile-nav-overlay a:hover {
    color: white;
}

/* ─── Preloader ─── */
.blog-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.6s ease, visibility 0.6s;
}

.blog-preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 3px solid transparent;
    border-top-color: var(--color-magenta);
    border-right-color: var(--color-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

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

.loader-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--color-magenta), var(--color-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Custom Scrollbar ─── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-magenta), var(--color-blue));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--color-blue), var(--color-cyan));
}

/* ─── Selection ─── */
::selection {
    background: rgba(0, 119, 255, 0.3);
    color: white;
}
