/*
Theme Name: NetzKompass
Theme URI: https://netzkompass.de
Description: Internet & Mobilfunk Ratgeber – News-Magazin WordPress Theme
Version: 2.0.0
Author: NetzKompass
Author URI: https://netzkompass.de
Tags: internet, mobilfunk, breitband, news, magazine, responsive
Text Domain: netzkompass
*/

/* ============================================================
   CSS Variables
   ============================================================ */
:root {
    /* Brand Colors */
    --bb:        #0056D2;   /* Breitband – Blau */
    --bb-dark:   #0040A0;
    --mf:        #00A86B;   /* Mobilfunk – Grün */
    --mf-dark:   #008A56;
    --accent:    #E8192C;   /* Breaking/Red accent */
    --dark:      #14213D;
    --dark2:     #1E2D4A;
    --mid:       #3D5A80;
    --gray:      #6B7280;
    --light:     #F4F6FA;
    --border:    #E2E8F0;
    --white:     #FFFFFF;

    /* Typography */
    --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --radius:    8px;
    --radius-sm: 4px;
    --shadow:    0 2px 12px rgba(20,33,61,0.08);
    --shadow-md: 0 4px 20px rgba(20,33,61,0.12);
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--bb); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   Top Bar
   ============================================================ */
.topbar {
    background: var(--dark);
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.topbar-date { font-weight: 500; }
.topbar-social { display: flex; gap: 8px; }
.topbar-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: rgba(255,255,255,0.7);
    transition: background 0.2s, color 0.2s;
}
.topbar-social-link:hover {
    background: var(--bb);
    color: #fff;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
    background: var(--dark2);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(20,33,61,0.25);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0 20px;
    height: 64px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-icon {
    font-size: 1.6rem;
    line-height: 1;
}
.logo-text {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}
.logo-text::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
    margin-bottom: 2px;
}

/* Navigation */
.main-nav { flex: 1; }
.nav-links {
    display: flex;
    gap: 0;
    list-style: none;
}
.nav-links > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 20px;
    height: 64px;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s, background 0.2s;
    letter-spacing: 0.3px;
}
.nav-links > li > a:hover { color: #fff; }
.nav-item-breitband > a:hover,
.nav-item-breitband > a:focus { background: var(--bb); color: #fff; }
.nav-item-mobilfunk > a:hover,
.nav-item-mobilfunk > a:focus { background: var(--mf); color: #fff; }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.search-toggle,
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.8);
    padding: 8px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    transition: color 0.2s, background 0.2s;
}
.search-toggle:hover,
.menu-toggle:hover { background: rgba(255,255,255,0.1); color: #fff; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,0.8); border-radius: 2px; transition: all 0.3s; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Search Bar */
.header-search {
    background: var(--dark);
    border-top: 1px solid rgba(255,255,255,0.05);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.header-search.open { max-height: 100px; padding: 12px 0; }
.header-search-form {
    display: flex;
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
}
.header-search-form input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-radius: var(--radius);
    font-size: 14px;
    font-family: var(--font);
    outline: none;
    transition: border-color 0.2s;
}
.header-search-form input:focus { border-color: var(--bb); }
.header-search-form input::placeholder { color: rgba(255,255,255,0.4); }
.header-search-form button {
    padding: 10px 20px;
    background: var(--bb);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}
.header-search-form button:hover { background: var(--bb-dark); }

/* ============================================================
   News Ticker
   ============================================================ */
.news-ticker {
    background: #fff;
    border-bottom: 2px solid var(--bb);
    padding: 0;
    overflow: hidden;
}
.ticker-inner {
    display: flex;
    align-items: stretch;
    height: 38px;
}
.ticker-label {
    flex-shrink: 0;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.ticker-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}
.ticker-track {
    display: flex;
    gap: 0;
    white-space: nowrap;
    will-change: transform;
}
.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 32px 0 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--dark);
    white-space: nowrap;
}
.ticker-item::after {
    content: '•';
    margin-left: 32px;
    color: var(--bb);
    font-weight: 700;
}
.ticker-item:hover { color: var(--bb); }

/* ============================================================
   Homepage Layout – Three Columns
   ============================================================ */
.homepage-wrap { padding: 24px 0 40px; }
.home-layout {
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    gap: 24px;
    align-items: start;
}

/* ============================================================
   Widget Box (shared)
   ============================================================ */
.widget-box {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 24px;
}
.widget-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.widget-title span { position: relative; z-index: 1; }
.widget-title::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--bb);
}
.widget-title-bb::before { background: var(--bb); }
.widget-title-mf::before { background: var(--mf); }

/* ============================================================
   LEFT: Trending
   ============================================================ */
.col-trending { position: sticky; top: 88px; }
.trending-list { padding: 8px 0; }
.trending-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.trending-item:last-child { border-bottom: none; }
.trending-item:hover { background: var(--light); }
.trending-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    margin-top: 2px;
}
.num-bb { background: var(--bb); }
.num-mf { background: var(--mf); }
.trending-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 42px;
    overflow: hidden;
    border-radius: var(--radius-sm);
}
.trending-thumb img { width: 100%; height: 100%; object-fit: cover; }
.trending-meta { flex: 1; min-width: 0; }
.trending-cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 2px 6px;
    border-radius: 3px;
    color: #fff;
    margin-bottom: 4px;
}
.cat-bb { background: var(--bb); }
.cat-mf { background: var(--mf); }
.trending-title {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
}
.trending-title a { color: var(--dark); }
.trending-title a:hover { color: var(--bb); }
.trending-date { font-size: 11px; color: var(--gray); }

/* ============================================================
   CENTER: Hero Slider
   ============================================================ */
.hero-slider {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--dark);
    margin-bottom: 24px;
    aspect-ratio: 16 / 9;
}
.hero-slide {
    display: none;
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-slide.active { display: block; }
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14,20,40,0.9) 0%, rgba(14,20,40,0.3) 60%, transparent 100%);
}
.hero-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 2;
}
.hero-cat-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 3px 10px;
    border-radius: 3px;
    color: #fff;
    margin-bottom: 10px;
}
.badge-bb { background: var(--bb); }
.badge-mf { background: var(--mf); }
.hero-title {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 8px;
    color: #fff;
}
.hero-title a { color: #fff; }
.hero-title a:hover { color: rgba(255,255,255,0.85); }
.hero-meta { font-size: 12px; color: rgba(255,255,255,0.7); }

/* Slider Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
    padding-bottom: 2px;
}
.slider-btn:hover { background: rgba(255,255,255,0.3); }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
.slider-dots {
    position: absolute;
    bottom: 14px;
    right: 16px;
    display: flex;
    gap: 6px;
    z-index: 3;
}
.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.slider-dot.active { background: #fff; transform: scale(1.3); }

/* ============================================================
   CENTER: Latest Grid
   ============================================================ */
.section-heading {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.latest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.latest-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
}
.latest-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.latest-card-img {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.latest-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.latest-card:hover .latest-card-img img { transform: scale(1.04); }
.latest-card-cat {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 3px;
    color: #fff;
}
.latest-card-body { padding: 12px; }
.latest-card-body h4 { font-size: 13px; font-weight: 700; line-height: 1.4; margin-bottom: 6px; }
.latest-card-body h4 a { color: var(--dark); }
.latest-card-body h4 a:hover { color: var(--bb); }
.latest-card-body time { font-size: 11px; color: var(--gray); }

/* ============================================================
   RIGHT: Sidebar Post List
   ============================================================ */
.col-sidebar { position: sticky; top: 88px; }
.sidebar-post-list { padding: 8px 0; }
.sidebar-post-item {
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
    transition: background 0.15s;
}
.sidebar-post-item:last-child { border-bottom: none; }
.sidebar-post-item:hover { background: var(--light); }
.sidebar-post-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 54px;
    overflow: hidden;
    border-radius: var(--radius-sm);
}
.sidebar-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-post-info { flex: 1; min-width: 0; }
.sidebar-post-info h5 { font-size: 12.5px; font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.sidebar-post-info h5 a { color: var(--dark); }
.sidebar-post-info h5 a:hover { color: var(--bb); }
.sidebar-post-info time { font-size: 11px; color: var(--gray); }
.widget-more-link {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top: 1px solid var(--border);
    transition: background 0.2s, color 0.2s;
}
.widget-more-bb { color: var(--bb); }
.widget-more-bb:hover { background: var(--bb); color: #fff; }
.widget-more-mf { color: var(--mf); }
.widget-more-mf:hover { background: var(--mf); color: #fff; }

/* ============================================================
   More Articles (Full Width)
   ============================================================ */
.more-articles-section { margin-top: 32px; }
.more-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.more-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
}
.more-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.more-card-img {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.more-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.more-card:hover .more-card-img img { transform: scale(1.04); }
.more-card-cat {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 3px;
    color: #fff;
}
.more-card-body { padding: 14px; }
.more-card-body h4 { font-size: 14px; font-weight: 700; line-height: 1.4; margin-bottom: 6px; }
.more-card-body h4 a { color: var(--dark); }
.more-card-body h4 a:hover { color: var(--bb); }
.more-card-body p { font-size: 12.5px; color: var(--gray); margin-bottom: 8px; line-height: 1.5; }
.more-card-body time { font-size: 11px; color: var(--gray); }

.btn-load-more {
    display: inline-block;
    padding: 12px 36px;
    background: var(--dark);
    color: #fff;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: background 0.2s;
}
.btn-load-more:hover { background: var(--bb); color: #fff; }

/* ============================================================
   Article (Single Post) Page
   ============================================================ */
.article-main { padding: 30px 0 50px; }
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
}
.article-content {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}
.article-meta-top {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
    font-size: 12px;
    color: var(--gray);
}
.article-category {
    background: var(--bb);
    color: #fff;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.article-content h1 { font-size: 2rem; line-height: 1.25; margin-bottom: 18px; color: var(--dark); }
.article-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--gray);
}
.article-author img { border-radius: 50%; }
.article-featured-image { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; }
.article-featured-image img { width: 100%; border-radius: var(--radius); }
.article-body { font-size: 1rem; line-height: 1.85; }
.article-body h2 { font-size: 1.5rem; margin: 2rem 0 1rem; color: var(--bb); }
.article-body h3 { font-size: 1.25rem; margin: 1.5rem 0 0.75rem; }
.article-body p { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body blockquote { border-left: 4px solid var(--bb); padding: 14px 18px; margin: 1.5rem 0; background: var(--light); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--mid); }
.article-tags { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 6px; }
.article-tags a { background: var(--light); color: var(--dark); padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; transition: background 0.2s, color 0.2s; }
.article-tags a:hover { background: var(--bb); color: #fff; }
.article-share { margin: 24px 0 0; }
.article-share h4 { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn { padding: 7px 18px; border-radius: 6px; font-weight: 600; font-size: 12px; color: #fff; transition: opacity 0.2s; }
.share-btn:hover { opacity: 0.85; color: #fff; }
.share-btn.facebook { background: #1877F2; }
.share-btn.twitter { background: #000; }
.share-btn.linkedin { background: #0A66C2; }
.share-btn.whatsapp { background: #25D366; }

/* Article Sidebar */
.article-sidebar { position: sticky; top: 88px; }
.sidebar-widget {
    background: #fff;
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}
.sidebar-widget h3 {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bb);
    color: var(--dark);
}
.recent-posts li { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.recent-posts li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.recent-posts a { font-size: 13px; font-weight: 600; color: var(--dark); line-height: 1.4; }
.recent-posts a:hover { color: var(--bb); }
.category-list li { margin-bottom: 6px; }
.category-list a { font-size: 13px; color: var(--mid); display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed var(--border); }
.category-list a:hover { color: var(--bb); }
.archive-list { font-size: 13px; }
.archive-list li { margin-bottom: 6px; }
.archive-list a { color: var(--mid); }
.archive-list a:hover { color: var(--bb); }
.sidebar-widget input[type="search"],
.sidebar-widget input[type="email"] {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: var(--font);
    margin-bottom: 8px;
    outline: none;
    transition: border-color 0.2s;
}
.sidebar-widget input:focus { border-color: var(--bb); }
.sidebar-widget .btn { width: 100%; }

/* ============================================================
   Page / Archive
   ============================================================ */
.page-main, .archive-main { padding: 30px 0 50px; }
.page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
}
.page-content {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}
.page-content h1 { font-size: 2rem; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid var(--bb); }
.page-content h2 { font-size: 1.4rem; margin: 2rem 0 1rem; }
.page-content p { margin-bottom: 1.2rem; line-height: 1.8; }
.page-content ul { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.page-content li { margin-bottom: 0.5rem; }
.archive-header { background: #fff; padding: 20px 28px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 24px; display: flex; align-items: center; gap: 16px; }
.archive-header h1 { font-size: 1.5rem; }
.archive-header .cat-badge-large { padding: 6px 16px; border-radius: var(--radius-sm); color: #fff; font-weight: 700; }
.archive-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ============================================================
   404 Page
   ============================================================ */
.not-found-main { padding: 80px 0; text-align: center; }
.not-found-main h1 { font-size: 8rem; font-weight: 900; color: var(--bb); line-height: 1; }
.not-found-main h2 { font-size: 1.8rem; margin: 16px 0 12px; }
.not-found-main p { color: var(--gray); margin-bottom: 24px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}
.btn-primary { background: var(--bb); color: #fff; }
.btn-primary:hover { background: var(--bb-dark); color: #fff; }
.btn-secondary { background: var(--mf); color: #fff; }
.btn-secondary:hover { background: var(--mf-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--bb); border-color: var(--bb); }
.btn-outline:hover { background: var(--bb); color: #fff; }
.btn-sm { padding: 6px 16px; font-size: 12px; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--dark2); color: #fff; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--dark2); color: rgba(255,255,255,0.75); margin-top: 0; }

/* Footer Top */
.footer-top { border-bottom: 1px solid rgba(255,255,255,0.08); padding: 48px 0 36px; }
.footer-top-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-col-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    text-decoration: none;
}
.footer-logo-icon { font-size: 1.4rem; }
.footer-logo-text {
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.3px;
}
.footer-desc { font-size: 13px; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 8px; }
.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    color: rgba(255,255,255,0.6);
    transition: background 0.2s, color 0.2s;
}
.footer-social-link:hover { background: var(--bb); color: #fff; }
.footer-links { }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.footer-links a:hover { color: #fff; }
.footer-links a::before { content: '›'; color: var(--bb); font-weight: 700; }

/* Footer Bottom */
.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 16px 0;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-copyright {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}
.footer-copyright strong { color: rgba(255,255,255,0.8); }
.footer-bottom-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-bottom-nav a {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    transition: color 0.2s;
}
.footer-bottom-nav a:hover { color: rgba(255,255,255,0.9); }

/* ============================================================
   Cookie Consent
   ============================================================ */
.cookie-consent {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: bottom 0.4s ease;
    padding: 0 20px 20px;
    pointer-events: none;
}
.cookie-consent.show { bottom: 0; pointer-events: auto; }
.cookie-inner {
    background: var(--dark);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 -4px 30px rgba(0,0,0,0.3);
    max-width: 900px;
    margin: 0 auto;
}
.cookie-inner p { font-size: 13px; color: rgba(255,255,255,0.75); }
.cookie-inner a { color: var(--bb); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 8px; flex-shrink: 0; }
.btn-cookie-accept {
    padding: 8px 20px;
    background: var(--bb);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-cookie-accept:hover { background: var(--bb-dark); }
.btn-cookie-decline {
    padding: 8px 16px;
    background: transparent;
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-cookie-decline:hover { color: #fff; border-color: rgba(255,255,255,0.5); }

/* ============================================================
   Comments
   ============================================================ */
.article-comments { margin-top: 28px; }
.article-comments h3 { font-size: 1.1rem; margin-bottom: 20px; }
.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    font-family: var(--font);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--bb); }
.comment-form textarea { min-height: 120px; resize: vertical; }

/* ============================================================
   Utilities
   ============================================================ */
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
    .home-layout {
        grid-template-columns: 240px 1fr 260px;
    }
    .more-articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-top-inner {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 900px) {
    .home-layout {
        grid-template-columns: 1fr;
    }
    .col-trending, .col-sidebar { position: static; }
    .article-layout, .page-layout {
        grid-template-columns: 1fr;
    }
    .article-sidebar { position: static; }
    .more-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Header */
    .menu-toggle { display: flex; }
    .main-nav { position: absolute; top: 64px; left: 0; right: 0; background: var(--dark); z-index: 999; border-top: 1px solid rgba(255,255,255,0.1); }
    .nav-links { flex-direction: column; gap: 0; display: none; }
    .nav-links.open { display: flex; }
    .nav-links > li > a { height: 48px; border-bottom: 1px solid rgba(255,255,255,0.05); }

    /* Layout */
    .latest-grid { grid-template-columns: 1fr; }
    .archive-grid { grid-template-columns: 1fr; }
    .more-articles-grid { grid-template-columns: 1fr 1fr; }
    .footer-top-inner { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .footer-bottom-nav { justify-content: center; }
    .hero-title { font-size: 1.1rem; }
    .article-content { padding: 20px; }
    .page-content { padding: 20px; }
}

@media (max-width: 480px) {
    .more-articles-grid { grid-template-columns: 1fr; }
    .share-buttons { flex-direction: column; }
    .cookie-inner { flex-direction: column; align-items: flex-start; }
}
