/* ==========================================================================
   teknolojisondakika.com — Ana Stil Dosyası
   Tasarım: Back Stage Technology
   ========================================================================== */

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

/* ===== LIGHT THEME (Varsayılan) ===== */
:root, [data-theme="light"] {
    --bg-body: #f0f2f5;
    --bg-header: #ffffff;
    --bg-nav: #1b2030;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f9fb;
    --bg-widget: #ffffff;
    --bg-input: #f0f2f5;
    --bg-footer: #1b2030;
    --text-primary: #1a1d26;
    --text-secondary: #4a5068;
    --text-muted: #8892a4;
    --accent: #2c5faa;
    --accent-hover: #234d8e;
    --accent-light: #3B7DDB;
    --accent-soft: rgba(44,95,170,0.08);
    --border: #e2e5ea;
    --border-light: #eef0f3;
    --card-shadow: 0 1px 4px rgba(0,0,0,0.06);
    --card-shadow-hover: 0 6px 20px rgba(0,0,0,0.1);
    --red: #dc3545;
}

/* ===== DARK THEME ===== */
[data-theme="dark"] {
    --bg-body: #121417;
    --bg-header: #0d0f12;
    --bg-nav: #1a1d24;
    --bg-card: #1e2128;
    --bg-card-hover: #252830;
    --bg-widget: #1a1d24;
    --bg-input: #252830;
    --bg-footer: #0d0f12;
    --text-primary: #e8eaef;
    --text-secondary: #9ca3b4;
    --text-muted: #6b7280;
    --accent: #3B7DDB;
    --accent-hover: #2c5faa;
    --accent-light: #5a9ae6;
    --accent-soft: rgba(59,125,219,0.12);
    --border: #2a2d35;
    --border-light: #22252c;
    --card-shadow: 0 1px 4px rgba(0,0,0,0.2);
    --card-shadow-hover: 0 6px 20px rgba(0,0,0,0.4);
    --red: #dc3545;
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-body); color: var(--text-primary);
    line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { max-width: 1260px; margin: 0 auto; padding: 0 16px; }

/* ===== TOP BAR ===== */
.top-bar { background: var(--bg-nav); height: 36px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.top-bar-left { display: flex; align-items: center; gap: 14px; font-size: 0.73rem; color: rgba(255,255,255,0.55); }
.top-bar-right { display: flex; align-items: center; gap: 4px; }
.top-bar-right a {
    width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.5); font-size: 12px; border-radius: 4px; transition: all 0.2s;
}
.top-bar-right a:hover { color: #fff; background: rgba(255,255,255,0.1); }

/* ===== HEADER ===== */
.header { background: var(--bg-header); padding: 10px 0; border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
    width: 42px; height: 42px; background: var(--accent); border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 900; color: #fff;
}
.logo-text { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.5px; color: var(--text-primary); line-height: 1.1; }
.logo-text small { display: block; font-size: 0.6rem; font-weight: 600; color: var(--accent); letter-spacing: 2.5px; text-transform: uppercase; }

/* Search - Modern */
.header-search {
    display: flex; align-items: center; flex: 1; max-width: 380px;
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: 10px; overflow: hidden; transition: border-color 0.2s;
}
.header-search:focus-within { border-color: var(--accent); }
.header-search input {
    flex: 1; background: transparent; border: none; outline: none;
    padding: 10px 14px; color: var(--text-primary); font-family: inherit; font-size: 0.84rem;
}
.header-search input::placeholder { color: var(--text-muted); }
.search-icon {
    padding: 8px 14px; color: var(--text-muted); cursor: pointer;
    transition: color 0.2s; display: flex; align-items: center;
}
.header-search:focus-within .search-icon { color: var(--accent); }

/* Header Right Actions */
.header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Theme Toggle - Modern Switch */
.theme-switch {
    width: 44px; height: 24px; background: var(--bg-input); border: 1px solid var(--border);
    border-radius: 12px; cursor: pointer; position: relative; transition: all 0.3s;
    display: flex; align-items: center; padding: 0 3px; flex-shrink: 0;
}
.theme-switch::before {
    content: '☀️'; font-size: 12px; width: 18px; height: 18px;
    background: var(--accent); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s; line-height: 1;
}
[data-theme="dark"] .theme-switch::before {
    content: '🌙'; transform: translateX(18px);
}
.theme-switch:hover { border-color: var(--accent); }

/* Auth Buttons */
.btn-login {
    padding: 7px 16px; border-radius: 8px; font-size: 0.8rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s; border: 1px solid var(--border);
    background: transparent; color: var(--text-primary); white-space: nowrap;
}
.btn-login:hover { border-color: var(--accent); color: var(--accent); }
.btn-register {
    padding: 7px 16px; border-radius: 8px; font-size: 0.8rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s; border: 1px solid var(--accent);
    background: var(--accent); color: #fff; white-space: nowrap;
}
.btn-register:hover { background: var(--accent-hover); }

.mobile-menu-btn {
    display: none; width: 40px; height: 40px; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: 8px; background: transparent;
    color: var(--text-primary); cursor: pointer; font-size: 18px;
}

/* ===== NAVIGATION ===== */
.main-nav { background: var(--bg-nav); border-bottom: 3px solid var(--accent); position: sticky; top: 0; z-index: 100; }
.nav-inner { display: flex; align-items: center; height: 46px; overflow-x: auto; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner a {
    padding: 0 18px; height: 100%; display: flex; align-items: center;
    font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.8);
    white-space: nowrap; position: relative; transition: all 0.2s;
    text-transform: uppercase; letter-spacing: 0.3px;
}
.nav-inner a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-inner a.active { color: #fff; }
.nav-inner a.active::after { content:''; position:absolute; bottom:0; left:0; right:0; height:3px; background:var(--accent-light); }
.nav-inner a.son-dakika { color: var(--red); }
.nav-inner a.son-dakika:hover { color: #ff4d5e; }

/* ===== TICKER ===== */
.ticker { background: var(--bg-card); border-bottom: 1px solid var(--border); height: 40px; display: flex; align-items: center; overflow: hidden; }
.ticker-label {
    background: var(--red); color: #fff; padding: 0 14px; height: 100%;
    display: flex; align-items: center; gap: 6px; font-size: 0.72rem;
    font-weight: 700; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.5px;
}
.ticker-dot { width: 8px; height: 8px; background: #fff; border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.3;} }
.ticker-track { flex: 1; overflow: hidden; }
.ticker-content { display: flex; animation: tickerScroll 40s linear infinite; white-space: nowrap; }
.ticker-content a { padding: 0 30px; font-size: 0.82rem; color: var(--text-secondary); font-weight: 500; transition: color 0.2s; }
.ticker-content a:hover { color: var(--accent); }
@keyframes tickerScroll { 0%{transform:translateX(0);} 100%{transform:translateX(-50%);} }

/* ===== HEADLINE AREA ===== */
.headline-section { padding: 16px 0 8px; }
.headline-grid {
    display: grid; grid-template-columns: 1fr 360px;
    border-radius: 10px; overflow: hidden; box-shadow: var(--card-shadow);
    height: 520px;
}

/* Slider */
.main-slider { position: relative; height: 100%; background: #111; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s ease; pointer-events: none; }
.slide.active { opacity: 1; pointer-events: auto; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.5) 30%, rgba(0,0,0,0.12) 60%, rgba(0,0,0,0.05) 100%);
}
.slide-content { position: absolute; bottom: 60px; left: 0; right: 0; padding: 0 30px; z-index: 2; }
.slide-category {
    display: inline-block; background: var(--accent); color: #fff;
    font-size: 0.65rem; font-weight: 700; padding: 4px 12px; border-radius: 3px;
    margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.6px;
}
.slide h2 {
    color: #fff; font-size: 1.5rem; font-weight: 800; line-height: 1.32;
    margin-bottom: 10px; max-width: 90%; text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.slide-meta { display: flex; align-items: center; gap: 16px; color: rgba(255,255,255,0.6); font-size: 0.78rem; font-weight: 500; }

/* Arrows */
.slider-arrow {
    position: absolute; top: calc(50% - 22px); transform: translateY(-50%);
    width: 42px; height: 42px; background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.12); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 16px; cursor: pointer; transition: all 0.2s; z-index: 10;
}
.slider-arrow:hover { background: var(--accent); border-color: var(--accent); }
.arrow-prev { left: 14px; }
.arrow-next { right: 14px; }

/* Pagination Bar - 8 items */
.slider-pager {
    position: absolute; bottom: 0; left: 0; right: 0;
    display: flex; height: 42px; background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px); z-index: 10;
}
.pager-item {
    flex: 1; display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.45); font-size: 0.82rem; font-weight: 700;
    cursor: pointer; transition: all 0.2s;
    border-right: 1px solid rgba(255,255,255,0.06); position: relative;
}
.pager-item:last-child { border-right: none; }
.pager-item.active { background: var(--accent); color: #fff; }
.pager-item:not(.active):hover { color: #fff; background: rgba(255,255,255,0.08); }

/* Side Headlines - 8 items, fits slider height */
.side-headlines {
    display: flex; flex-direction: column; background: var(--bg-card);
    border-left: 1px solid var(--border); height: 100%; overflow: hidden;
}
.side-item {
    flex: 1; display: flex; gap: 10px; padding: 5px 10px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer; transition: background 0.2s; align-items: center;
    min-height: 0;
}
.side-item:last-child { border-bottom: none; }
.side-item:hover { background: var(--bg-card-hover); }
.side-item .s-thumb {
    width: 88px; min-width: 88px; height: 52px; border-radius: 5px; overflow: hidden; flex-shrink: 0;
}
.side-item .s-thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-item h4 {
    font-size: 0.76rem; font-weight: 600; line-height: 1.3; color: var(--text-primary);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color 0.2s;
}
.side-item:hover h4 { color: var(--accent); }

/* ===== AD SLOTS ===== */
/* Gercek reklam icin sade konteyner (helper ad_slot() bunu uretir) */
.ad-block {
    margin: 14px 0;
    text-align: center;
    line-height: 0; /* image arasinda bos satir kalmasin */
}
.ad-block img,
.ad-block ins.adsbygoogle {
    max-width: 100%;
    height: auto;
    display: inline-block;
}
.ad-block a { display: inline-block; line-height: 0; }
.ad-block-sidebar { margin-bottom: 16px; }
.ad-block-article_middle { margin: 24px 0; }

/* Placeholder/yer tutucu — helper bos donerse veya admin tasarim varsa */
.ad-slot {
    background: var(--bg-card); border: 1px dashed var(--border); border-radius: 6px;
    display: flex; align-items: center; justify-content: center; flex-direction: column;
    color: var(--text-muted); font-size: 0.7rem; font-weight: 500; gap: 4px;
    transition: background 0.2s;
}
.ad-slot .ad-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.5; }
.ad-leaderboard { height: 90px; margin: 14px 0; }
.ad-sidebar-rect { height: 250px; margin-bottom: 16px; }
.ad-sidebar-tall { height: 600px; }
.ad-in-content { height: 100px; margin: 14px 0; grid-column: 1 / -1; }
.ad-after-headline { height: 90px; margin: 8px 0 14px; }

/* ===== MAIN LAYOUT ===== */
.main-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; padding-bottom: 36px; }

/* Section Header */
.section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px; padding-bottom: 10px; border-bottom: 3px solid var(--accent);
}
.section-header h2 { font-size: 1rem; font-weight: 800; color: var(--text-primary); text-transform: uppercase; letter-spacing: 0.3px; }
.more-link { font-size: 0.78rem; color: var(--accent); font-weight: 600; }
.more-link:hover { text-decoration: underline; }

/* News Cards */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.news-card {
    background: var(--bg-card); border-radius: 8px; overflow: hidden;
    border: 1px solid var(--border-light); box-shadow: var(--card-shadow);
    transition: all 0.2s; cursor: pointer;
}
.news-card:hover { transform: translateY(-2px); box-shadow: var(--card-shadow-hover); border-color: var(--border); }
.card-thumb { width: 100%; height: 170px; overflow: hidden; position: relative; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.news-card:hover .card-thumb img { transform: scale(1.04); }
.card-badge {
    position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff;
    font-size: 0.6rem; font-weight: 700; padding: 3px 9px; border-radius: 3px;
    text-transform: uppercase; letter-spacing: 0.4px;
}
.card-body { padding: 12px 14px 14px; }
.card-body h3 {
    font-size: 0.88rem; font-weight: 700; line-height: 1.4; color: var(--text-primary);
    margin-bottom: 5px; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s;
}
.news-card:hover h3 { color: var(--accent); }
.card-excerpt {
    font-size: 0.78rem; color: var(--text-secondary); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin-bottom: 8px;
}
.card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.72rem; color: var(--text-muted); }

/* News List */
.news-list-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-light); cursor: pointer; }
.news-list-item:last-child { border-bottom: none; }
.list-thumb { width: 120px; min-width: 120px; height: 80px; border-radius: 6px; overflow: hidden; }
.list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-info h4 {
    font-size: 0.85rem; font-weight: 600; line-height: 1.4; color: var(--text-primary);
    margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s;
}
.news-list-item:hover h4 { color: var(--accent); }
.list-meta { font-size: 0.72rem; color: var(--text-muted); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 24px; }
.pg-btn {
    padding: 8px 14px; border-radius: 5px; font-size: 0.82rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s; border: 1px solid var(--border);
    background: var(--bg-card); color: var(--text-muted); display: inline-block;
}
.pg-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.pg-btn:hover:not(.active) { border-color: var(--accent); color: var(--accent); }

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.widget { background: var(--bg-widget); border: 1px solid var(--border-light); border-radius: 8px; overflow: hidden; box-shadow: var(--card-shadow); }
.widget-header {
    padding: 12px 16px; border-bottom: 3px solid var(--accent);
    font-size: 0.86rem; font-weight: 800; color: var(--text-primary);
    text-transform: uppercase; letter-spacing: 0.3px;
}
.widget-body { padding: 4px 0; }
.tr-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 16px; cursor: pointer; transition: background 0.2s; }
.tr-item:hover { background: var(--bg-card-hover); }
.tr-num { font-size: 1.3rem; font-weight: 900; color: var(--accent); opacity: 0.4; min-width: 24px; line-height: 1; padding-top: 2px; }
.tr-text h5 { font-size: 0.82rem; font-weight: 600; line-height: 1.35; color: var(--text-primary); margin-bottom: 2px; transition: color 0.2s; }
.tr-item:hover .tr-text h5 { color: var(--accent); }
.tr-meta { font-size: 0.7rem; color: var(--text-muted); }
.cat-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 16px; font-size: 0.84rem; font-weight: 500;
    color: var(--text-primary); cursor: pointer; transition: all 0.2s;
    border-bottom: 1px solid var(--border-light);
}
.cat-item:last-child { border-bottom: none; }
.cat-item:hover { background: var(--bg-card-hover); color: var(--accent); }
.cat-count { background: var(--accent-soft); color: var(--accent); font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 3px; }
.tags-wrap { padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag-item {
    padding: 5px 12px; background: var(--bg-input); border: 1px solid var(--border);
    border-radius: 4px; font-size: 0.75rem; font-weight: 500; color: var(--text-secondary);
    cursor: pointer; transition: all 0.2s;
}
.tag-item:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ===== ARTICLE DETAIL ===== */
.article-header { margin-bottom: 24px; }
.article-header .category-badge {
    display: inline-block; background: var(--accent); color: #fff;
    font-size: 0.68rem; font-weight: 700; padding: 4px 14px; border-radius: 3px;
    text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 12px;
}
.article-header h1 {
    font-size: 1.8rem; font-weight: 800; line-height: 1.35;
    color: var(--text-primary); margin-bottom: 14px;
}
.article-meta {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    font-size: 0.82rem; color: var(--text-muted); padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}
.article-meta span { display: flex; align-items: center; gap: 4px; }
.article-featured-image {
    width: 100%; max-height: 480px; border-radius: 10px; overflow: hidden;
    margin-bottom: 24px;
}
.article-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.article-content {
    font-size: 1rem; line-height: 1.8; color: var(--text-primary);
    margin-bottom: 28px;
}
.article-content p { margin-bottom: 16px; }
.article-content h2 { font-size: 1.35rem; font-weight: 700; margin: 28px 0 12px; }
.article-content h3 { font-size: 1.15rem; font-weight: 700; margin: 24px 0 10px; }
.article-content img { border-radius: 8px; margin: 16px 0; }
.article-content blockquote {
    border-left: 4px solid var(--accent); padding: 12px 20px;
    background: var(--accent-soft); border-radius: 0 6px 6px 0;
    margin: 16px 0; font-style: italic;
}
.article-content ul, .article-content ol { margin: 12px 0; padding-left: 24px; }
.article-content li { margin-bottom: 6px; }
.article-content pre {
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: 8px; padding: 16px; overflow-x: auto;
    font-size: 0.88rem; margin: 16px 0;
}
.article-content code {
    background: var(--bg-input); padding: 2px 6px; border-radius: 3px;
    font-size: 0.88rem;
}
.article-content a { color: var(--accent); }
.article-content a:hover { text-decoration: underline; }

/* Article Tags */
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.article-tags a {
    padding: 5px 14px; background: var(--bg-input); border: 1px solid var(--border);
    border-radius: 4px; font-size: 0.78rem; font-weight: 500; color: var(--text-secondary);
    transition: all 0.2s;
}
.article-tags a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* Share Buttons */
.share-section { margin-bottom: 28px; }
.share-section h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 10px; color: var(--text-primary); }
.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 6px; font-size: 0.8rem; font-weight: 600;
    color: #fff; transition: opacity 0.2s; white-space: nowrap;
}
.share-btn:hover { opacity: 0.85; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.facebook { background: #1877f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.whatsapp { background: #25d366; }

/* Related Articles */
.related-section { margin-top: 32px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* Breadcrumb */
.breadcrumb {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 14px 0; font-size: 0.8rem; color: var(--text-muted);
}
.breadcrumb a { color: var(--text-secondary); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span.sep { color: var(--text-muted); opacity: 0.5; }

/* ===== CATEGORY / SEARCH PAGES ===== */
.page-header {
    padding: 20px 0; margin-bottom: 16px;
    border-bottom: 3px solid var(--accent);
}
.page-header h1 { font-size: 1.5rem; font-weight: 800; color: var(--text-primary); }
.page-header p { font-size: 0.88rem; color: var(--text-secondary); margin-top: 6px; }
.result-count { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 16px; }

/* No Results */
.no-results {
    text-align: center; padding: 60px 20px;
    background: var(--bg-card); border-radius: 10px;
    border: 1px solid var(--border-light);
}
.no-results .icon { font-size: 3rem; margin-bottom: 16px; }
.no-results h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.no-results p { font-size: 0.88rem; color: var(--text-muted); }

/* ===== STATIC PAGES ===== */
.static-page {
    background: var(--bg-card); border-radius: 10px; padding: 32px;
    border: 1px solid var(--border-light); box-shadow: var(--card-shadow);
    margin-bottom: 24px;
}
.static-page h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 20px; color: var(--text-primary); }
.static-page h2 { font-size: 1.2rem; font-weight: 700; margin: 24px 0 10px; color: var(--text-primary); }
.static-page p { font-size: 0.95rem; line-height: 1.7; color: var(--text-secondary); margin-bottom: 14px; }
.static-page ul, .static-page ol { margin: 10px 0; padding-left: 24px; }
.static-page li { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 6px; }

/* Contact Form */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block; font-size: 0.84rem; font-weight: 600;
    margin-bottom: 6px; color: var(--text-primary);
}
.form-group input,
.form-group textarea {
    width: 100%; padding: 10px 14px; background: var(--bg-input);
    border: 1px solid var(--border); border-radius: 8px; font-family: inherit;
    font-size: 0.88rem; color: var(--text-primary); transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); outline: none; }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-submit {
    padding: 10px 24px; background: var(--accent); color: #fff;
    border: none; border-radius: 8px; font-size: 0.88rem; font-weight: 600;
    cursor: pointer; transition: background 0.2s;
}
.form-submit:hover { background: var(--accent-hover); }

/* ===== 404 PAGE ===== */
.error-page {
    text-align: center; padding: 80px 20px;
    max-width: 500px; margin: 40px auto;
}
.error-page .error-code { font-size: 6rem; font-weight: 900; color: var(--accent); line-height: 1; margin-bottom: 16px; }
.error-page h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.error-page p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 24px; }
.error-page .btn-home {
    display: inline-block; padding: 10px 28px; background: var(--accent);
    color: #fff; border-radius: 8px; font-size: 0.88rem; font-weight: 600;
    transition: background 0.2s;
}
.error-page .btn-home:hover { background: var(--accent-hover); }

/* ===== FOOTER ===== */
.footer { background: var(--bg-footer); border-top: 3px solid var(--accent); padding: 36px 0 0; color: rgba(255,255,255,0.7); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 28px; }
.f-logo { font-size: 1.15rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.f-logo span { color: var(--accent-light); }
.footer-brand p { font-size: 0.8rem; color: rgba(255,255,255,0.5); line-height: 1.6; margin-bottom: 14px; }
.f-social { display: flex; gap: 6px; }
.f-social a {
    width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px; color: rgba(255,255,255,0.5); font-size: 13px; transition: all 0.2s;
}
.f-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer h4 { font-size: 0.85rem; font-weight: 700; color: #fff; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.3px; }
.f-links { list-style: none; }
.f-links li { padding: 4px 0; }
.f-links a { font-size: 0.8rem; color: rgba(255,255,255,0.45); transition: color 0.2s; }
.f-links a:hover { color: var(--accent-light); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08); padding: 14px 0;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.75rem; color: rgba(255,255,255,0.35);
}
.footer-credit {
    text-align: center; padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.68rem; color: rgba(255,255,255,0.2);
}
.footer-credit a { color: rgba(255,255,255,0.35); transition: color 0.2s; }
.footer-credit a:hover { color: var(--accent-light); }

/* ===== SCROLL TOP ===== */
.scroll-top {
    position: fixed; bottom: 20px; right: 20px; width: 42px; height: 42px;
    background: var(--accent); color: #fff; border: none; border-radius: 8px;
    display: none; align-items: center; justify-content: center;
    cursor: pointer; font-size: 18px; z-index: 50; transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.scroll-top.visible { display: flex; }
.scroll-top:hover { background: var(--accent-hover); transform: translateY(-2px); }

/* ===== MOBILE NAV ===== */
.mobile-nav { display: none; background: var(--bg-nav); border-bottom: 1px solid rgba(255,255,255,0.08); padding: 8px 16px; }
.mobile-nav.active { display: block; }
.mobile-nav a {
    display: block; padding: 10px 0; font-size: 0.88rem; font-weight: 600;
    color: rgba(255,255,255,0.8); border-bottom: 1px solid rgba(255,255,255,0.06); text-transform: uppercase;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--accent-light); }

/* ===== LAZY LOAD ===== */
img[data-src] {
    opacity: 0; transition: opacity 0.4s ease;
}
img[data-src].loaded {
    opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .main-layout { grid-template-columns: 1fr; }
    .headline-grid { grid-template-columns: 1fr; height: auto; }
    .main-slider { height: 380px; }
    .side-headlines { display: grid; grid-template-columns: 1fr 1fr; height: auto; }
    .side-item { padding: 8px 10px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .related-grid { grid-template-columns: 1fr 1fr; }
    .article-header h1 { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    .header-search { display: none; }
    .btn-login, .btn-register, .theme-switch { display: none; }
    .mobile-menu-btn { display: flex; }
    .nav-inner { display: none; }
    .headline-grid { grid-template-columns: 1fr; }
    .side-headlines { grid-template-columns: 1fr; }
    .main-slider { height: 300px; }
    .slide h2 { font-size: 1.15rem; }
    .slide-content { padding: 0 20px; bottom: 50px; }
    .news-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
    .related-grid { grid-template-columns: 1fr; }
    .article-header h1 { font-size: 1.25rem; }
    .static-page { padding: 20px 16px; }
    .share-buttons { flex-direction: column; }
}

@media (max-width: 480px) {
    .main-slider { height: 260px; }
    .slide h2 { font-size: 1rem; }
    .slider-arrow { width: 34px; height: 34px; font-size: 13px; }
    .side-item .s-thumb { width: 70px; min-width: 70px; height: 44px; }
}
