/* Velotechna Frontend Custom Styles */

:root {
    --brand-green: #7ed957;
    --brand-green-dark: #2da640;
    --brand-green-darker: #1f8a30;
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-muted: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #0f172a;
    --bg-dark-secondary: #1e293b;
    --border-color: #e5e7eb;
    --border-dark: #1e293b;
    --shadow-card: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-card-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-card-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-glow: 0 0 30px rgba(126, 217, 87, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

.dark {
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --border-color: #334155;
    --border-dark: #475569;
    --shadow-card: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --shadow-card-lg: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -2px rgba(0,0,0,0.3);
    --shadow-card-xl: 0 20px 25px -5px rgba(0,0,0,0.4), 0 10px 10px -5px rgba(0,0,0,0.3);
}

/* Global Body */
body {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

/* Selection */
::selection {
    background-color: var(--brand-green);
    color: #000;
}

/* Brand Color Utilities */
.text-brand { color: var(--brand-green) !important; }
.text-brand-dark { color: var(--brand-green-dark) !important; }
.bg-brand { background-color: var(--brand-green) !important; }
.bg-brand-dark { background-color: var(--brand-green-dark) !important; }
.border-brand { border-color: var(--brand-green) !important; }
.hover-bg-brand:hover { background-color: var(--brand-green) !important; }
.hover-text-brand:hover { color: var(--brand-green) !important; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--brand-green); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-green-dark); }

/* Sticky Share Bar */
@media (min-width: 768px) {
    .sticky-share { top: 80px; }
}

/* Container */
.container { max-width: 80rem; }

/* Breadcrumb */
.breadcrumb { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1rem; }
.breadcrumb a:hover { color: var(--brand-green); }
.dark .breadcrumb { color: #94a3b8; }
.dark .breadcrumb a:hover { color: var(--brand-green); }

/* ========================================
   NAVBAR STYLES
   ======================================== */
.velo-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 64px;
}

.dark .velo-navbar {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: var(--border-dark);
}

.velo-navbar.scrolled {
    box-shadow: var(--shadow-card-lg);
}

.velo-navbar .nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.velo-navbar .nav-link:hover {
    color: var(--brand-green-dark);
    background: rgba(126, 217, 87, 0.08);
}

.velo-navbar .nav-link.active {
    color: var(--brand-green-dark);
    background: rgba(126, 217, 87, 0.12);
    font-weight: 600;
}

.velo-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--brand-green);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.velo-navbar .nav-link:hover::after,
.velo-navbar .nav-link.active::after {
    width: 60%;
}

/* Mobile hamburger */
.hamburger-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    position: relative;
    z-index: 1100;
}

.hamburger-btn:hover { background: var(--bg-secondary); }
.hamburger-btn:focus-visible { outline: 2px solid var(--brand-green); outline-offset: 2px; }

/* Search Modal */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active { opacity: 1; visibility: visible; }

.search-modal {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 640px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: var(--shadow-card-xl);
    border: 1px solid var(--border-color);
    transform: translateY(-20px) scale(0.97);
    transition: transform 0.3s ease;
}

.search-overlay.active .search-modal { transform: translateY(0) scale(1); }

.search-modal input[type="text"] {
    width: 100%;
    padding: 1.25rem 1.5rem;
    font-size: 1.125rem;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
}

.search-modal input[type="text"]::placeholder { color: var(--text-muted); }

/* ========================================
   HERO / BREAKING NEWS SLIDER
   ======================================== */
.hero-slider {
    margin-bottom: 2rem;
}

.hero-slider-inner {
    position: relative;
    height: 520px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--bg-secondary);
    box-shadow: var(--shadow-card-xl);
}

.hero-slider .swiper-wrapper { height: auto; }

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    display: block; /* Keep in DOM but hidden */
    z-index: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 5;
}

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-slide:hover img { transform: scale(1.03); }

.hero-slide .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    pointer-events: none;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 10;
}

@media (max-width: 768px) {
    .hero-slider { height: 420px !important; }
    .hero-content-grid { padding-top: 3.5rem; gap: 1rem; }
    .hero-main-copy h2 { font-size: 1.5rem; }
}

@media (min-width: 768px) {
    .hero-content { padding: 3rem; }
}

.hero-content .category-badge {
    display: inline-block;
    background: var(--brand-green);
    color: #000;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.375rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.hero-content h2 {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

.hero-content p {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 1.25rem;
}

.hero-content .read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    background: var(--brand-green);
    color: #000;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-content .read-more-btn:hover {
    background: var(--brand-green-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(126, 217, 87, 0.3);
}

/* Hero Navigation Arrows */
.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    z-index: 50;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-nav-btn:hover {
    background: var(--brand-green);
    border-color: var(--brand-green);
    color: #000;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(126, 217, 87, 0.4);
}

.hero-nav-btn.prev { left: 1rem; }
.hero-nav-btn.next { right: 1rem; }

/* Hero Pagination */
.hero-pagination {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.hero-pagination .bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.hero-pagination .bullet.active {
    background: var(--brand-green);
    width: 24px;
    border-radius: 4px;
}

.hero-top-strip,
.hero-menu-strip {
    position: relative;
    z-index: 12;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1.25rem;
    background: rgba(8, 12, 18, 0.72);
    backdrop-filter: blur(8px);
    border-radius: 8px;
}

.hero-top-strip {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.hero-strip-left,
.hero-strip-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-menu-strip {
    justify-content: flex-start;
    gap: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-menu-strip a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.hero-menu-strip a:hover { color: var(--brand-green); }

.hero-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 2rem;
    padding-top: 6rem;
    position: relative;
}

.hero-main-copy { min-width: 0; }

.hero-substory-panel {
    align-self: end;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.hero-substory-card {
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(6, 8, 14, 0.55);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.hero-substory-card:hover {
    transform: translateY(-2px);
    border-color: rgba(126, 217, 87, 0.55);
}

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

.hero-substory-meta {
    padding: 0.55rem 0.65rem 0.65rem;
}

.hero-substory-meta span {
    display: inline-block;
    font-size: 0.6rem;
    color: var(--brand-green);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.hero-substory-meta h3 {
    font-size: 0.75rem;
    line-height: 1.35;
    color: #fff;
    font-weight: 700;
    margin: 0;
}

/* ========================================
   ARTICLE CARDS
   ======================================== */
.article-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
    height: 100%;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1024px) {
    .hero-slide {
        min-height: 460px;
        height: auto;
    }
    .hero-content-grid {
        grid-template-columns: 1fr;
    }
    .hero-substory-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hero-top-strip,
    .hero-menu-strip {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }
    .hero-menu-strip {
        gap: 0.7rem;
        overflow-x: auto;
        white-space: nowrap;
    }
    .hero-content-grid {
        padding-top: 4.8rem;
    }
    .hero-substory-panel {
        grid-template-columns: 1fr;
    }
    .hero-substory-card img {
        height: 96px;
    }
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-xl);
    border-color: rgba(126, 217, 87, 0.3);
}

.article-card .card-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.article-card .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.article-card .card-thumb .category-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: inline-block;
    background: var(--brand-green);
    color: #000;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    z-index: 2;
}

.article-card .card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.article-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card:hover .card-title { color: var(--brand-green-dark); }

.article-card .card-excerpt {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card .card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    margin-top: 0.75rem;
}

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

.article-card .card-meta .read-time {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-muted);
}

/* Featured Card (Larger) */
.article-card.featured {
    grid-column: span 2;
}

.article-card.featured .card-body { padding: 1.5rem; }
.article-card.featured .card-title { font-size: 1.25rem; }

/* ========================================
   SIDEBAR STYLES
   ======================================== */
.sidebar-widget {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-card);
}

.sidebar-widget h3 {
    font-size: 0.8125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--brand-green);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Category List */
.category-list { list-style: none; }

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

.category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.category-list a:hover {
    background: rgba(126, 217, 87, 0.08);
    color: var(--brand-green-dark);
}

.category-list a.active {
    background: rgba(126, 217, 87, 0.12);
    color: var(--brand-green-dark);
    font-weight: 600;
    border: 1px solid rgba(126, 217, 87, 0.28);
}

.category-list .count {
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
}

.dark .category-list .count { background: var(--border-dark); color: var(--text-muted); }

/* Trending Posts */
.trending-post {
    display: flex;
    gap: 0.75rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
    text-decoration: none;
}

.trending-post:last-child { border-bottom: none; }

.trending-post:hover .trending-title { color: var(--brand-green); }

.trending-post .trending-thumb {
    width: 64px;
    height: 48px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

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

.trending-post .trending-info { flex: 1; min-width: 0; }

.trending-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.trending-date {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

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

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
}

.newsletter-form input[type="email"]:focus { border-color: var(--brand-green); }

.newsletter-form button {
    padding: 0.625rem 1.25rem;
    background: var(--brand-green);
    color: #000;
    font-size: 0.8125rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.newsletter-form button:hover { background: var(--brand-green-dark); }

/* Tag Cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tag-cloud a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.tag-cloud a:hover {
    background: var(--brand-green);
    color: #000;
    border-color: var(--brand-green);
}

/* Ad Unit */
.ad-unit {
    background: var(--bg-secondary);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.dark .ad-unit { background: var(--bg-dark-secondary); border-color: var(--border-dark); }

/* ========================================
   ARTICLE DETAIL PAGE
   ======================================== */
.article-header {
    margin-bottom: 2rem;
}

.article-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 900;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

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

.article-meta .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

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

.article-body {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.article-body h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--brand-green);
    display: inline-block;
    letter-spacing: -0.01em;
}

.article-body h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2rem 0 0.75rem;
}

.article-body p {
    margin-bottom: 1.25rem;
    text-align: justify;
}

.article-body img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-card-lg);
}

.article-body blockquote {
    border-left: 4px solid var(--brand-green);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--bg-secondary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.dark .article-body blockquote { background: var(--bg-dark-secondary); border-left-color: var(--brand-green); }

.article-body code {
    background: var(--bg-secondary);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.875em;
    font-family: 'Fira Code', 'JetBrains Mono', monospace;
    color: var(--brand-green-dark);
}

.dark .article-body code { background: var(--bg-dark-secondary); color: var(--brand-green); }

.article-body pre {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
}

.dark .article-body pre { background: var(--bg-dark-secondary); border-color: var(--border-dark); }

.article-body pre code {
    background: none;
    padding: 0;
    color: var(--text-primary);
}

/* Social Share */
.social-share { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.social-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.social-share-btn:hover {
    background: var(--brand-green);
    color: #000;
    border-color: var(--brand-green);
    transform: translateY(-2px);
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 64px;
    left: 0;
    height: 3px;
    background: var(--brand-green);
    z-index: 999;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* Related Posts */
.related-post {
    display: block;
    text-decoration: none;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.related-post:hover {
    border-color: var(--brand-green);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.related-post .thumb {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.related-post .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.related-post .title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   FOOTER
   ======================================== */
.velo-footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.dark .velo-footer { border-top-color: var(--border-dark); }

.footer-brand-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

.footer-link:hover { color: var(--brand-green); }

.footer-social {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-social:hover {
    background: var(--brand-green);
    color: #000;
    border-color: var(--brand-green);
}

.footer-newsletter input[type="email"] {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
}

.footer-newsletter input[type="email"]:focus { border-color: var(--brand-green); }

.footer-newsletter button {
    padding: 0.625rem 1.25rem;
    background: var(--brand-green);
    color: #000;
    font-size: 0.8125rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.2s ease;
}

.footer-newsletter button:hover { background: var(--brand-green-dark); }

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

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

.animate-fade-in { animation: fadeIn 0.6s ease-out; }
.animate-fade-up { animation: fadeInUp 0.6s ease-out; }

/* ========================================
   DARK MODE TOGGLE
   ======================================== */
.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 1.125rem;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    border-color: var(--brand-green);
}

/* ========================================
   SKELETON LOADING
   ======================================== */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, rgba(126,217,87,0.08) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:focus-visible {
    outline: 2px solid var(--brand-green);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--brand-green);
    color: #000;
    font-weight: 700;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 99999;
    transition: top 0.2s ease;
    text-decoration: none;
    font-size: 0.875rem;
}

.skip-link:focus { top: 0; }

/* ========================================
   PAGINATION
   ======================================== */
.pagination { display: flex; gap: 0.5rem; align-items: center; justify-content: center; }

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover { border-color: var(--brand-green); color: var(--brand-green-dark); }
.pagination-btn.active { background: var(--brand-green); color: #000; border-color: var(--brand-green); }
