/* ============================================================
   artigos.tecnexo.org — Design System Stylesheet
   Visual parity with tecnexo.org
   ============================================================ */

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

:root {
    --bg-dark: #070B14;
    --bg-darker: #04060A;
    --bg-card: rgba(17, 24, 39, 0.6);
    --accent: #F59E0B;
    --accent-hover: #D97706;
    --primary: #2563EB;
    --primary-glow: rgba(37, 99, 235, 0.2);
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(255, 255, 255, 0.15);

    /* Supplementary tokens */
    --radius: 4px;
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px var(--primary-glow);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-main);
    background: var(--bg-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--accent);
}

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

ul, ol {
    list-style: none;
}

button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input, textarea, select {
    font-family: var(--font-body);
    color: var(--text-main);
}

::selection {
    background: var(--primary);
    color: #fff;
}


/* ----------------------------------------------------------
   2. Typography
   ---------------------------------------------------------- */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.section-title span {
    color: var(--accent);
}

.lead-text {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 680px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--text-main);
}

h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 700; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.1rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}


/* ----------------------------------------------------------
   3. Layout
   ---------------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .lead-text {
    margin: 0 auto;
}


/* ----------------------------------------------------------
   4. Glassmorphism
   ---------------------------------------------------------- */
.glass {
    background: rgba(7, 11, 20, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.glass-card:hover {
    border-color: var(--border-glass-hover);
    box-shadow: var(--shadow-card);
}


/* ----------------------------------------------------------
   5. Buttons
   ---------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-glass);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}


/* ----------------------------------------------------------
   6. Navbar
   ---------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(7, 11, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

.navbar.scrolled {
    background: rgba(4, 6, 10, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 1px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--accent);
}

.logo:hover {
    color: var(--text-main);
}

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

.nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-base);
}

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

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

.nav-links a.active {
    color: var(--accent);
}

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

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all var(--transition-base);
}


/* ----------------------------------------------------------
   7. Hero Section
   ---------------------------------------------------------- */
.hero-bg-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.hero-bg-fixed img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.25);
}

.hero-bg-fixed::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(7, 11, 20, 0.3) 0%,
        rgba(7, 11, 20, 0.6) 50%,
        var(--bg-dark) 100%
    );
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 72px; /* navbar height */
}

.hero-split {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-image-card {
    flex: 1;
    max-width: 500px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-card), var(--shadow-glow);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hero-image-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card), 0 0 50px var(--primary-glow);
}

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

.site-title-hero {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.site-title-hero span {
    color: var(--accent);
}

.hero-content .lead-text {
    margin-bottom: 2rem;
}

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


/* ----------------------------------------------------------
   8. Badge
   ---------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--primary);
    border-radius: var(--radius);
}

.badge.badge-amber {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--accent);
}


/* ----------------------------------------------------------
   9. Scroll Indicator
   ---------------------------------------------------------- */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

.scroll-indicator i,
.scroll-indicator svg {
    font-size: 1.25rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-12px);
    }
    60% {
        transform: translateX(-50%) translateY(-6px);
    }
}


/* ----------------------------------------------------------
   10. Topic Cards
   ---------------------------------------------------------- */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.topic-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all var(--transition-base);
    cursor: pointer;
    text-decoration: none;
}

.topic-card:hover {
    border-color: var(--border-glass-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.topic-card .icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.topic-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.topic-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.topic-card .card-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-glass);
}


/* ----------------------------------------------------------
   11. Article List
   ---------------------------------------------------------- */
.articles-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.article-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all var(--transition-base);
    width: 100%;
}

.article-card:hover {
    border-color: var(--border-glass-hover);
    box-shadow: var(--shadow-card);
}

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

.article-meta .cat {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary);
    font-size: 0.7rem;
}

.article-meta .date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.article-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

.article-card h3 a {
    color: var(--text-main);
    transition: color var(--transition-fast);
}

.article-card h3 a:hover {
    color: var(--accent);
}

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

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

.card-stat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-stat i,
.card-stat svg {
    font-size: 0.9rem;
    opacity: 0.7;
}

.card-stats {
    display: flex;
    gap: 1.25rem;
}

.read-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    transition: gap var(--transition-base), color var(--transition-fast);
}

.read-link:hover {
    gap: 0.7rem;
    color: var(--accent-hover);
}


/* ----------------------------------------------------------
   12. Article Detail
   ---------------------------------------------------------- */
.art-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.art-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-glass);
}

.art-body h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.art-body p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.art-body ul,
.art-body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.art-body li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    list-style: disc;
}

.art-body ol li {
    list-style: decimal;
}

.art-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(245, 158, 11, 0.05);
    border-radius: var(--radius);
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

.art-body code {
    background: rgba(37, 99, 235, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius);
    font-size: 0.9em;
    color: var(--primary);
}

.art-body pre {
    background: var(--bg-darker);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.art-body pre code {
    background: none;
    padding: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.art-body img {
    border-radius: var(--radius);
    margin: 1.5rem 0;
    border: 1px solid var(--border-glass);
}

/* Actions bar */
.actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 0;
    margin: 2rem 0;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    flex-wrap: wrap;
}

.act-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-base);
}

.act-btn:hover {
    color: var(--text-main);
    border-color: var(--border-glass-hover);
    background: rgba(255, 255, 255, 0.03);
}

.act-btn.liked {
    color: var(--accent);
    border-color: rgba(245, 158, 11, 0.3);
}

.divider {
    width: 100%;
    height: 1px;
    background: var(--border-glass);
    margin: 2rem 0;
}


/* ----------------------------------------------------------
   13. Stars Rating
   ---------------------------------------------------------- */
.stars {
    display: inline-flex;
    gap: 0.25rem;
}

.stars .star {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.15);
    transition: color var(--transition-fast), transform var(--transition-fast);
    padding: 0;
    line-height: 1;
}

.stars .star:hover {
    transform: scale(1.2);
}

.stars .star.active,
.stars .star.filled {
    color: var(--accent);
}

.stars .star:hover ~ .star {
    color: rgba(255, 255, 255, 0.15);
}

.stars-display {
    display: inline-flex;
    gap: 0.15rem;
    font-size: 0.85rem;
}

.stars-display .star-filled {
    color: var(--accent);
}

.stars-display .star-empty {
    color: rgba(255, 255, 255, 0.15);
}

.rating-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    margin-left: 0.5rem;
}


/* ----------------------------------------------------------
   14. Review Cards
   ---------------------------------------------------------- */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.rev {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.rev-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

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

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

.rev-stars {
    margin-bottom: 0.75rem;
}

.rev-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0;
}


/* ----------------------------------------------------------
   15. Review Form
   ---------------------------------------------------------- */
.form-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 2rem;
}

.form-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: var(--text-main);
    background: rgba(7, 11, 20, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    outline: none;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(156, 163, 175, 0.5);
}

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

.fields {
    display: grid;
    gap: 1rem;
}

.fields.two {
    grid-template-columns: 1fr 1fr;
}

.fields.three {
    grid-template-columns: repeat(3, 1fr);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}


/* ----------------------------------------------------------
   16. Info Panel
   ---------------------------------------------------------- */
.info-panel {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 2rem;
}

.info-panel h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.info-panel p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.info-row i,
.info-row svg {
    color: var(--primary);
    width: 18px;
    flex-shrink: 0;
}

.tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tags-row .tag {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius);
    color: var(--primary);
    transition: all var(--transition-fast);
}

.tags-row .tag:hover {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.4);
}


/* ----------------------------------------------------------
   17. Contact Section
   ---------------------------------------------------------- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item .icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.contact-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.contact-form {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 2rem;
}

.contact-form h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}


/* ----------------------------------------------------------
   18. Footer
   ---------------------------------------------------------- */
.footer {
    border-top: 1px solid var(--border-glass);
    background: var(--bg-darker);
    padding: 4rem 0 0;
}

.footer-content {
    text-align: center;
    padding-bottom: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
    display: inline-block;
}

.footer-logo span {
    color: var(--accent);
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-quote {
    font-style: italic;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    max-width: 700px;
    margin: 0 auto 0.5rem;
    line-height: 1.6;
}

.quote-author {
    font-style: normal;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    display: block;
    margin-top: 0.25rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

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

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

.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--accent);
}

.footer-bottom a:hover {
    color: var(--accent-hover);
}


/* ----------------------------------------------------------
   19. Share Modal
   ---------------------------------------------------------- */
.modal-ov {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.modal-ov.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-dark);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 480px;
    width: 100%;
    position: relative;
    animation: modalIn 0.3s ease;
}

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

.modal h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    background: none;
    border: none;
    transition: color var(--transition-fast);
    padding: 0.25rem;
}

.modal-close:hover {
    color: var(--text-main);
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.share-grid button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.share-grid button:hover {
    border-color: var(--border-glass-hover);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.share-grid button i,
.share-grid button svg {
    font-size: 1.5rem;
}

.copy-row {
    display: flex;
    gap: 0.5rem;
}

.copy-row input {
    flex: 1;
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    background: rgba(7, 11, 20, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    color: var(--text-muted);
    outline: none;
}

.copy-row button {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition-base);
}

.copy-row button:hover {
    background: #1d4ed8;
}


/* ----------------------------------------------------------
   20. Confirmation Box
   ---------------------------------------------------------- */
.ok-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius);
    color: #10B981;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    animation: fadein 0.3s ease;
}

.ok-box i,
.ok-box svg {
    font-size: 1.1rem;
    flex-shrink: 0;
}


/* ----------------------------------------------------------
   21. Error Message
   ---------------------------------------------------------- */
.err {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius);
    color: #EF4444;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    animation: fadein 0.3s ease;
}

.err i,
.err svg {
    font-size: 1.1rem;
    flex-shrink: 0;
}


/* ----------------------------------------------------------
   22. Muted Note
   ---------------------------------------------------------- */
.muted-note {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}


/* ----------------------------------------------------------
   23. Back Button
   ---------------------------------------------------------- */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.5rem 0;
    margin-bottom: 1.5rem;
    transition: color var(--transition-fast), gap var(--transition-base);
    cursor: pointer;
    background: none;
    border: none;
    text-decoration: none;
}

.back-btn:hover {
    color: var(--accent);
    gap: 0.7rem;
}


/* ----------------------------------------------------------
   24. Fade Animation
   ---------------------------------------------------------- */
.fadein {
    animation: fadein 0.5s ease;
}

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


/* ----------------------------------------------------------
   25. Responsive
   ---------------------------------------------------------- */
@media (max-width: 992px) {
    .hero-split {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content .lead-text {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image-card {
        max-width: 100%;
    }

    .site-title-hero {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .fields.two {
        grid-template-columns: 1fr;
    }

    .fields.three {
        grid-template-columns: 1fr;
    }

    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        flex-direction: row;
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .lead-text {
        font-size: 1.1rem;
    }

    .navbar .container {
        height: 60px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(4, 6, 10, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-section {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 4rem;
    }

    .site-title-hero {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

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

    .article-card {
        padding: 1.5rem;
    }

    .actions {
        gap: 0.75rem;
    }

    .act-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .modal {
        padding: 1.5rem;
    }

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

    .footer {
        padding: 3rem 0 0;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .scroll-indicator {
        display: none;
    }

    .art-body h2 {
        font-size: 1.35rem;
    }

    .art-body p {
        font-size: 0.95rem;
    }
}


/* ----------------------------------------------------------
   26. Admin-specific Styles
   ---------------------------------------------------------- */
.admin-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 72px;
}

.admin-sidebar {
    width: 260px;
    background: var(--bg-darker);
    border-right: 1px solid var(--border-glass);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: sticky;
    top: 72px;
    height: calc(100vh - 72px);
    overflow-y: auto;
    flex-shrink: 0;
}

.admin-sidebar .sidebar-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    padding: 0.75rem 1rem 0.5rem;
    margin-top: 1rem;
}

.admin-sidebar .sidebar-title:first-child {
    margin-top: 0;
}

.admin-main {
    flex: 1;
    padding: 2rem;
    min-width: 0;
}

.admin-main h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
}

.tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
    color: var(--accent);
    background: rgba(245, 158, 11, 0.08);
    font-weight: 600;
}

.tab-btn i,
.tab-btn svg {
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

/* Admin block items */
.block-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.block-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: border-color var(--transition-base);
}

.block-item:hover {
    border-color: var(--border-glass-hover);
}

.block-item-info {
    flex: 1;
    min-width: 0;
}

.block-item-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.block-item-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.block-item-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Draft cards */
.draft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.draft-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.draft-card:hover {
    border-color: var(--border-glass-hover);
    box-shadow: var(--shadow-card);
}

.draft-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

.draft-card .draft-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.draft-card .draft-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-glass);
}

.draft-card .draft-actions {
    display: flex;
    gap: 0.5rem;
}

/* Admin status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius);
}

.status-badge.published {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10B981;
}

.status-badge.draft {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--accent);
}

.status-badge.archived {
    background: rgba(156, 163, 175, 0.1);
    border: 1px solid rgba(156, 163, 175, 0.3);
    color: var(--text-muted);
}

/* Admin stats widgets */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Admin table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-glass);
}

.admin-table td {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-glass);
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Admin toolbar */
.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.admin-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(7, 11, 20, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    flex: 1;
    max-width: 400px;
}

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

.admin-search input::placeholder {
    color: rgba(156, 163, 175, 0.5);
}

.admin-search i,
.admin-search svg {
    color: var(--text-muted);
    font-size: 0.9rem;
}


/* ----------------------------------------------------------
   Utility Classes
   ---------------------------------------------------------- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
