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

:root {
    --bg-main: #f8fafc;
    --bg-sec: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.75);
    --border-color: rgba(15, 23, 42, 0.08);
    --border-glow: rgba(139, 92, 246, 0.15);
    
    --primary: #7c3aed; /* Slightly darker purple for contrast */
    --secondary: #0891b2; /* Slightly darker cyan */
    --accent: #c084fc;
    
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-highlight: #000000;
    
    --grad-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --grad-text: linear-gradient(135deg, #0f172a 30%, var(--secondary) 100%);
    --grad-accent: linear-gradient(135deg, var(--primary), var(--accent));
    
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glow-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    
    --bg-header: rgba(248, 250, 252, 0.8);
    --bg-input: rgba(15, 23, 42, 0.04);
    --logo-color-1: #0f172a;
    --hero-text-1: #0f172a;
    --hero-text-2: #6d28d9;
    --btn-sec-bg: rgba(15, 23, 42, 0.04);
}

body.dark-theme {
    --bg-main: #060913;
    --bg-sec: #0c1122;
    --bg-card: rgba(17, 24, 43, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(139, 92, 246, 0.2);
    
    --primary: #8b5cf6; /* Electric Purple */
    --secondary: #06b6d4; /* Neon Cyan */
    --accent: #d946ef; /* Neon Pink */
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-highlight: #ffffff;
    
    --grad-text: linear-gradient(135deg, #ffffff 30%, var(--secondary) 100%);
    --grad-accent: linear-gradient(135deg, var(--primary), var(--accent));
    --glow-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
    
    --bg-header: rgba(6, 9, 19, 0.8);
    --bg-input: rgba(255, 255, 255, 0.03);
    --logo-color-1: #ffffff;
    --hero-text-1: #ffffff;
    --hero-text-2: #a78bfa;
    --btn-sec-bg: rgba(255, 255, 255, 0.03);
}



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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-sec);
    border: 2px solid var(--bg-main);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--logo-color-1) 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-primary);
    transition: var(--transition-smooth);
}

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

.theme-toggle-btn {
    background: var(--btn-sec-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
    border-color: var(--secondary);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
    transform: scale(1.05);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}


/* Interactive Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

#canvas-neural-net {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: all;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    width: 100%;
    position: relative;
    z-index: 2;
    pointer-events: none;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
}

.hero-text {
    pointer-events: auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
    animation: pulseGlow 3s infinite;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--hero-text-1) 40%, var(--hero-text-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--grad-primary);
    color: #060913;
    border: none;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
    color: #ffffff;
}

.btn-secondary {
    background: var(--btn-sec-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--border-color);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.hero-graphics {
    position: relative;
    pointer-events: auto;
}

.hero-img-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-glow);
    box-shadow: var(--glow-shadow);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: var(--transition-smooth);
}

.hero-img-container:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
}

/* Category Filter Bar */
.filter-section {
    max-width: 1200px;
    margin: -30px auto 3rem;
    padding: 0 2rem;
    position: relative;
    z-index: 5;
}

.filter-bar {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: var(--glow-shadow);
}

.filter-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--grad-primary);
    border-color: transparent;
    color: #060913;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.search-box {
    position: relative;
    width: 250px;
}

.search-box input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1rem 0.6rem 2.2rem;
    border-radius: 6px;
    color: var(--text-main);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-smooth);
}

.search-box input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.search-box i {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}


/* Blog Content Layout */
.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 5rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Post Card */
.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.1);
}

.post-img {
    position: relative;
    overflow: hidden;
}

.post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.post-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.post-category {
    background: rgba(6, 182, 212, 0.1);
    color: var(--secondary);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
}

.post-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.post-title:hover {
    color: var(--secondary);
}

.post-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: auto;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #060913;
    font-weight: 700;
    font-size: 0.75rem;
}

.read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: auto;
}

.read-more:hover {
    color: var(--accent);
}

.read-more i {
    transition: var(--transition-smooth);
}

.read-more:hover i {
    transform: translateX(4px);
}

/* Sidebar Widgets */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.8rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.6rem;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--grad-primary);
}

/* Popular Posts Widget */
.popular-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-post-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.popular-post-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.popular-post-info {
    display: flex;
    flex-direction: column;
}

.popular-post-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.3rem;
}

.popular-post-title:hover {
    color: var(--secondary);
}

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

/* Newsletter Widget */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.newsletter-form p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.newsletter-form input {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-smooth);
}

.newsletter-form input:focus {
    border-color: var(--secondary);
}

.newsletter-form .btn {
    padding: 0.75rem;
}

/* Single Post Page Details */
.post-header {
    padding-top: 140px;
    padding-bottom: 3rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding-left: 2rem;
    padding-right: 2rem;
}

.post-header-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.post-header h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.post-hero-image {
    max-width: 1000px;
    margin: 0 auto 3rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--glow-shadow);
    border: 1px solid var(--border-glow);
    padding: 0 2rem;
}

.post-hero-image img {
    width: 100%;
    border-radius: 12px;
}

.post-content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 5rem;
}

.post-body {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.8;
}


.post-body p {
    margin-bottom: 1.8rem;
}

.post-body h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1.2rem;
    color: var(--text-highlight);
    background: linear-gradient(135deg, var(--hero-text-1) 60%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.post-body blockquote {
    border-left: 4px solid var(--primary);
    background: rgba(139, 92, 246, 0.05);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
}

.post-body blockquote p {
    margin-bottom: 0;
    color: var(--text-muted);
}

.post-body ul, .post-body ol {
    margin: 0 0 1.8rem 2rem;
}

.post-body li {
    margin-bottom: 0.6rem;
}

.post-share {
    display: flex;
    gap: 1rem;
    align-items: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.2rem 0;
    margin: 3rem 0;
}

.share-links {
    display: flex;
    gap: 0.8rem;
}

.share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.share-btn:hover {
    background: var(--primary);
    color: #060913;
    border-color: transparent;
    transform: translateY(-2px);
}

/* Comments Section */
.comments-section {
    margin-top: 4rem;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.comment-form .full-width {
    grid-column: span 2;
}

.comment-form input, .comment-form textarea {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}

.comment-form input:focus, .comment-form textarea:focus {
    border-color: var(--secondary);
}

.comment-form textarea {
    height: 120px;
    resize: vertical;
}


/* Footer Section */
footer {
    background: var(--bg-sec);
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.footer-links h4 {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

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

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 4px;
}

.footer-newsletter h4 {
    margin-bottom: 1.2rem;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.social-icons a:hover {
    color: var(--secondary);
}

/* Animations */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
        border-color: rgba(6, 182, 212, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(139, 92, 246, 0.3);
        border-color: rgba(139, 92, 246, 0.5);
    }
}

/* Fade in class */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .content-section {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-badge, .hero h1, .hero p, .hero-cta {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-img-container {
        transform: none;
        max-width: 500px;
        margin: 2rem auto 0;
    }
    
    .hero-img-container:hover {
        transform: scale(1.02);
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-sec);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero-content {
        padding: 3rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.9rem; /* Much better fit for long Russian words */
        line-height: 1.25;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .post-card {
        grid-template-columns: 1fr;
    }
    
    .post-img {
        height: 200px;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-tags {
        justify-content: center;
    }
    
    .search-box {
        width: 100%;
    }
    
    .comment-form {
        grid-template-columns: 1fr;
    }
    
    .comment-form .full-width {
        grid-column: span 1;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* Feedback Form Widget */
.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.feedback-form input, .feedback-form textarea {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-smooth);
}

.feedback-form input:focus, .feedback-form textarea:focus {
    border-color: var(--secondary);
}

.feedback-form textarea {
    height: 80px;
    resize: none;
    font-family: inherit;
}

/* ==========================================
   COMMENTS LIST & CARD STYLE
   ========================================== */
.comment-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.comment-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    display: flex;
    gap: 1.2rem;
    animation: fadeIn 0.5s ease-out;
}

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

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.2);
}

.comment-content {
    flex-grow: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--text-main);
    font-size: 1rem;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-text {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.5;
    word-break: break-word;
}

/* ==========================================
   AUTH INLINE PROMPT & FORMS (COMMENTS)
   ========================================== */
.auth-prompt {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: var(--glow-shadow);
}

.auth-prompt p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.auth-switch-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.auth-tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    position: relative;
    transition: var(--transition-smooth);
}

.auth-tab-btn.active {
    color: var(--primary);
}

.auth-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.auth-form-container {
    max-width: 400px;
    margin: 0 auto;
}

.auth-inline-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.auth-inline-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.auth-inline-form label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.auth-inline-form input {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}

.auth-inline-form input:focus {
    border-color: var(--secondary);
}

.auth-inline-form .btn {
    margin-top: 0.5rem;
    border: none;
}

.user-logged-in-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-sec);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.user-logged-in-bar span strong {
    color: var(--primary);
}

.btn-logout-link {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
}

.btn-logout-link:hover {
    text-decoration: underline;
}

/* ==========================================
   ADMIN BANS & COMMENT MODERATION STYLING
   ========================================== */
.admin-tabs-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.admin-tab-nav-btn {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.admin-tab-nav-btn.active {
    background: var(--grad-primary);
    color: white;
    border-color: transparent;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.admin-comment-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01);
}

.admin-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.admin-comment-userinfo {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.admin-comment-userinfo strong {
    color: var(--text-main);
    font-size: 0.95rem;
}

.admin-comment-actions {
    display: flex;
    gap: 0.5rem;
}

.admin-comment-postname {
    font-size: 0.8rem;
    background: var(--bg-sec);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: var(--primary);
    margin-top: 0.4rem;
    display: inline-block;
}

.admin-comment-text {
    font-size: 0.95rem;
    color: var(--text-main);
    border-left: 3px solid var(--secondary);
    padding-left: 0.8rem;
    margin-top: 0.5rem;
}

.btn-ban {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-ban:hover {
    background: #f59e0b;
    color: white;
    transform: translateY(-2px);
}

.ban-form-inline {
    background: var(--bg-sec);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.ban-form-inline h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.ban-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ban-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 0.8rem;
}

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

.ban-details strong {
    color: var(--text-main);
}

/* ==========================================
   MOBILE VIEWPORT FIXES & ADJUSTMENTS
   ========================================== */
@media (max-width: 768px) {
    /* Header nav layout container padding */
    .nav-container {
        padding: 1rem 1.2rem;
    }
    
    /* Post page details adjustments */
    .post-header {
        padding-top: 100px;
        padding-bottom: 1.8rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .post-header h1 {
        font-size: 1.95rem; /* Better wrapping and fit */
        margin-bottom: 1rem;
    }
    
    .post-header-meta {
        font-size: 0.8rem;
        gap: 0.8rem;
        flex-wrap: wrap;
        margin-bottom: 1rem;
    }
    
    .post-hero-image {
        padding: 0;
        margin-bottom: 1.5rem;
        border-radius: 12px;
    }
    
    .post-hero-image img {
        border-radius: 0;
    }
    
    .post-content-container {
        padding: 0 1.2rem 3rem;
    }
    
    .post-body {
        font-size: 1rem;
    }
    
    .post-share {
        margin: 1.8rem 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .comments-section {
        margin-top: 2.5rem;
    }
    
    /* Auth tabs adjust */
    .auth-switch-tabs {
        gap: 0.5rem;
    }
    
    .auth-tab-btn {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    /* Login card pad */
    .login-card {
        padding: 1.5rem;
    }
}

