/* ===================================
   Crypto AI Loan - Cryptocurrency News
   Dark/Purple Modern Theme
   =================================== */

:root {
    --bg-primary: #0A0E27;
    --bg-secondary: #111633;
    --bg-card: #161B3A;
    --bg-card-hover: #1C2248;
    --bg-input: #1A1F3D;
    --text-primary: #E8EAF0;
    --text-secondary: #9CA3B8;
    --text-muted: #6B7288;
    --accent: #6C5CE7;
    --accent-light: #8B7CF6;
    --accent-glow: rgba(108, 92, 231, 0.3);
    --cyan: #00D2FF;
    --cyan-glow: rgba(0, 210, 255, 0.3);
    --gold: #F9A825;
    --gold-glow: rgba(249, 168, 37, 0.3);
    --green: #00E676;
    --green-glow: rgba(0, 230, 118, 0.3);
    --red: #FF1744;
    --red-glow: rgba(255, 23, 68, 0.3);
    --border: #252A4A;
    --border-light: #2D3360;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --transition: all 0.25s ease;
    --max-width: 1280px;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }

/* ===================================
   HEADER
   =================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.5); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 24px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.logo-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #fff;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name {
    font-size: 18px; font-weight: 800; color: var(--text-primary);
    letter-spacing: -0.3px; line-height: 1.2;
}
.logo-tagline { font-size: 11px; color: var(--text-muted); letter-spacing: 0.5px; }

/* Navigation */
.nav { flex: 1; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu > li > a {
    display: block;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--text-primary);
    background: var(--bg-card);
}

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}
.btn-icon:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.mobile-toggle { display: none; }

/* Search Dropdown */
.search-dropdown {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--bg-secondary);
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}
.search-dropdown.active { transform: translateY(0); opacity: 1; visibility: visible; }
.search-form { display: flex; gap: 12px; max-width: 700px; margin: 0 auto; }
.search-form input {
    flex: 1;
    padding: 14px 20px;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}
.search-form input:focus { border-color: var(--accent); }
.search-form input::placeholder { color: var(--text-muted); }
.search-form button {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    border: none; border-radius: var(--radius);
    color: #fff; font-size: 15px; font-weight: 600;
    cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.search-form button:hover { box-shadow: 0 4px 16px var(--accent-glow); transform: translateY(-1px); }

/* Ticker Bar */
.ticker-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.ticker-bar .container { display: flex; align-items: center; gap: 16px; height: 38px; }
.ticker-label {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700; color: var(--accent-light);
    text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; flex-shrink: 0;
}
.ticker-news {
    flex: 1; overflow: hidden; position: relative; height: 100%;
    display: flex; align-items: center;
}
.ticker-news a {
    display: inline-block;
    padding: 0 24px;
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
}
.ticker-news a:hover { color: var(--accent-light); animation-play-state: paused; }
.ticker-news a::after { content: '  \2022  '; color: var(--accent); margin: 0 8px; opacity: 0.5; }

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ===================================
   MAIN CONTENT
   =================================== */
.main { min-height: 60vh; padding-bottom: 60px; }

/* ===================================
   HERO / PAGE HEADER
   =================================== */
.page-header {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    border-bottom: 1px solid var(--border);
    padding: 48px 0;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    pointer-events: none;
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: -50%; left: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--cyan-glow), transparent 70%);
    pointer-events: none;
}
.page-header-content { position: relative; z-index: 1; }
.page-header h1 { font-size: 36px; font-weight: 900; margin-bottom: 8px; }
.page-header p { font-size: 16px; color: var(--text-secondary); max-width: 600px; }

.breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--text-muted); margin-bottom: 12px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--accent-light); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb span { color: var(--text-muted); }

/* ===================================
   CONTENT LAYOUT
   =================================== */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    padding-top: 32px;
}
.main-content-area { min-width: 0; }

/* ===================================
   HERO POST
   =================================== */
.hero-post {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    background: var(--bg-card);
}
.hero-post img {
    width: 100%; height: 420px; object-fit: cover;
    filter: brightness(0.7);
}
.hero-post-content {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(10,14,39,0.95));
}
.hero-post-category {
    display: inline-block;
    padding: 4px 14px;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    border-radius: 50px;
    font-size: 12px; font-weight: 700; color: #fff;
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px;
}
.hero-post-title { font-size: 32px; font-weight: 900; line-height: 1.25; margin-bottom: 12px; }
.hero-post-title a { color: #fff; }
.hero-post-title a:hover { color: var(--cyan); }
.hero-post-meta {
    display: flex; align-items: center; gap: 16px;
    font-size: 13px; color: rgba(255,255,255,0.7);
}
.hero-post-meta i { margin-right: 4px; }

/* ===================================
   SECTION TITLE
   =================================== */
.section-title {
    font-size: 22px; font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 60px; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--cyan));
}

/* ===================================
   POST GRID
   =================================== */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.post-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    border-color: var(--accent);
}
.post-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}
.post-card-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.post-card:hover .post-card-image img { transform: scale(1.06); }
.post-card-category {
    position: absolute; top: 12px; left: 12px;
    padding: 4px 10px;
    background: rgba(108,92,231,0.9);
    border-radius: 4px;
    font-size: 11px; font-weight: 600; color: #fff;
}
.post-card-content { padding: 16px; }
.post-card-title {
    font-size: 16px; font-weight: 700; line-height: 1.4; margin-bottom: 10px;
}
.post-card-title a { color: var(--text-primary); }
.post-card-title a:hover { color: var(--accent-light); }
.post-card-meta {
    display: flex; align-items: center; gap: 12px;
    font-size: 12px; color: var(--text-muted);
}

/* ===================================
   ARTICLE LIST (horizontal cards)
   =================================== */
.article-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.article-item {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.article-item:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.article-image {
    flex-shrink: 0;
    width: 240px;
    overflow: hidden;
}
.article-image img {
    width: 100%; height: 100%; object-fit: cover;
    min-height: 160px;
    transition: transform 0.5s ease;
}
.article-item:hover .article-image img { transform: scale(1.05); }
.article-content { flex: 1; padding: 20px; display: flex; flex-direction: column; justify-content: center; }
.article-meta-top {
    display: flex; align-items: center; gap: 12px;
    font-size: 12px; margin-bottom: 8px;
}
.article-category a {
    padding: 3px 10px;
    background: rgba(108,92,231,0.15);
    border-radius: 4px;
    color: var(--accent-light);
    font-weight: 600; font-size: 11px;
}
.article-date { color: var(--text-muted); }
.article-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; line-height: 1.35; }
.article-title a { color: var(--text-primary); }
.article-title a:hover { color: var(--accent-light); }
.article-excerpt {
    font-size: 14px; color: var(--text-secondary); line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-meta-bottom {
    display: flex; align-items: center; gap: 16px;
    margin-top: auto; padding-top: 12px;
    font-size: 13px; color: var(--text-muted);
}
.read-more {
    display: inline-flex; align-items: center; gap: 4px;
    margin-left: auto;
    color: var(--accent-light); font-weight: 600; font-size: 13px;
}
.read-more:hover { color: var(--cyan); }

/* ===================================
   ARTICLE DETAIL
   =================================== */
.article-detail { background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border); }
.article-detail-header { padding: 32px 32px 0; }
.article-detail-category {
    display: inline-block;
    padding: 4px 14px;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    border-radius: 50px;
    font-size: 12px; font-weight: 700; color: #fff;
    margin-bottom: 16px;
}
.article-detail-title { font-size: 32px; font-weight: 900; line-height: 1.3; margin-bottom: 16px; }
.article-detail-meta {
    display: flex; align-items: center; gap: 16px;
    font-size: 13px; color: var(--text-muted); margin-bottom: 20px;
    flex-wrap: wrap;
}
.article-featured-image { margin-bottom: 24px; border-radius: var(--radius); overflow: hidden; }
.article-featured-image img { width: 100%; max-height: 500px; object-fit: cover; }
.article-body {
    padding: 0 32px 32px;
    font-size: 16px; line-height: 1.8; color: var(--text-secondary);
}
.article-body h2 { font-size: 24px; color: var(--text-primary); margin: 32px 0 16px; }
.article-body h3 { font-size: 20px; color: var(--text-primary); margin: 24px 0 12px; }
.article-body p { margin-bottom: 16px; }
.article-body a { color: var(--cyan); text-decoration: underline; }
.article-body img { border-radius: var(--radius); margin: 20px 0; }
.article-body blockquote {
    border-left: 4px solid var(--accent);
    padding: 16px 24px;
    margin: 20px 0;
    background: var(--bg-secondary);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text-secondary);
    font-style: italic;
}
.article-body ul, .article-body ol { margin: 16px 0; padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.article-summary {
    padding: 20px;
    background: rgba(108,92,231,0.08);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 24px;
    font-size: 14px;
}
.article-tags {
    padding: 20px 32px;
    border-top: 1px solid var(--border);
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.article-tags span { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.tag {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(108,92,231,0.1);
    border-radius: 50px;
    font-size: 12px; color: var(--accent-light);
    transition: var(--transition);
}
.tag:hover { background: var(--accent); color: #fff; }

/* Share */
.article-share-bar {
    padding: 16px 32px;
    border-top: 1px solid var(--border);
    display: flex; align-items: center; gap: 10px;
}
.article-share-bar span { font-size: 14px; color: var(--text-muted); font-weight: 600; }
.share-btn {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    color: #fff; font-size: 14px;
    transition: var(--transition);
}
.share-btn:hover { transform: translateY(-2px); }
.share-btn.fb { background: #1877f2; }
.share-btn.tw { background: #1da1f2; }
.share-btn.li { background: #0077b5; }
.share-btn.em { background: #555; }

/* Prev/Next */
.article-nav {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    margin-top: 24px;
}
.nav-card {
    display: flex; flex-direction: column;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.nav-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.nav-card.disabled { opacity: 0.4; pointer-events: none; }
.nav-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.nav-title { font-size: 15px; font-weight: 600; color: var(--text-primary); line-height: 1.35; }
.nav-next { text-align: right; }

/* ===================================
   SIDEBAR
   =================================== */
.widget {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 20px;
    margin-bottom: 20px;
}
.widget-title {
    font-size: 16px; font-weight: 800; color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    position: relative;
}
.widget-title::after {
    content: '';
    position: absolute; bottom: -2px; left: 0;
    width: 40px; height: 2px;
    background: var(--accent);
}

/* Category List */
.category-list li { border-bottom: 1px solid var(--border); }
.category-list li:last-child { border-bottom: none; }
.category-list a {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 4px;
    font-size: 14px; color: var(--text-secondary);
    transition: var(--transition);
}
.category-list a:hover { color: var(--accent-light); padding-left: 8px; }
.category-list a i { color: var(--accent); width: 18px; text-align: center; }

/* Hot Articles */
.hot-articles li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.hot-articles li:last-child { border-bottom: none; }
.hot-articles a {
    display: flex; align-items: start; gap: 10px;
    font-size: 13px; color: var(--text-secondary); line-height: 1.4;
}
.hot-articles a:hover { color: var(--accent-light); }
.hot-articles .num {
    flex-shrink: 0;
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(108,92,231,0.15);
    border-radius: 4px;
    font-size: 12px; font-weight: 700; color: var(--accent-light);
}

/* Tag Cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud .tag { padding: 5px 12px; font-size: 12px; }

/* Tags Cloud Box (tags list page) */
.tags-cloud-box {
    display: flex; flex-wrap: wrap; gap: 10px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.tag-cloud-btn {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(108,92,231,0.1);
    border: 1px solid rgba(108,92,231,0.2);
    border-radius: 50px;
    font-size: 14px; font-weight: 500; color: var(--accent-light);
    transition: var(--transition);
}
.tag-cloud-btn:hover {
    background: var(--accent); color: #fff;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

/* ===================================
   SEARCH PAGE
   =================================== */
.search-header-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 40px;
    margin-bottom: 24px;
    text-align: center;
}
.search-header-box h1 { margin-bottom: 20px; }
.search-form-large {
    display: flex; gap: 12px; max-width: 600px; margin: 0 auto;
}
.search-form-large input {
    flex: 1;
    padding: 14px 20px;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 15px; outline: none;
}
.search-form-large input:focus { border-color: var(--accent); }
.search-form-large button {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    border: none; border-radius: var(--radius);
    color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
}

/* ===================================
   PAGINATION
   =================================== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px;
    padding: 0 8px;
    border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: var(--transition);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent-light); }
.pagination .active {
    background: var(--accent); border-color: var(--accent); color: #fff;
}
.pagination .disabled { opacity: 0.4; pointer-events: none; }

/* ===================================
   EMPTY / NO RESULTS
   =================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
}
.empty-state i { font-size: 48px; color: var(--text-muted); margin-bottom: 12px; }
.empty-state h3 { color: var(--text-primary); margin-bottom: 8px; }
.empty-state p { color: var(--text-secondary); }

/* ===================================
   FILTER BAR
   =================================== */
.filter-bar {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 18px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 20px; flex-wrap: wrap;
}
.filter-label { font-size: 13px; font-weight: 600; color: var(--text-muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.filter-categories { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
    padding: 5px 14px;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 12px; color: var(--text-secondary);
    transition: var(--transition);
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent-light); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ===================================
   CATEGORY HEADER
   =================================== */
.category-header {
    display: flex; align-items: center; gap: 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 24px;
    margin-bottom: 24px;
}
.category-icon {
    width: 64px; height: 64px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #fff; flex-shrink: 0;
}
.category-info h1 { font-size: 24px; margin-bottom: 4px; }
.category-info p { color: var(--text-secondary); font-size: 14px; }

/* ===================================
   ERROR PAGE
   =================================== */
.error-section {
    display: flex; align-items: center; justify-content: center;
    min-height: 60vh; padding: 80px 0;
}
.error-container { text-align: center; max-width: 500px; }
.error-code {
    font-size: 120px; font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 8px;
}
.error-title { font-size: 28px; margin-bottom: 12px; }
.error-message { color: var(--text-secondary); margin-bottom: 28px; font-size: 15px; }
.error-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 32px; }
.error-suggestions { margin-top: 20px; }
.error-suggestions h3 { font-size: 15px; color: var(--text-muted); margin-bottom: 12px; }
.suggestion-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.suggestion-links a {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px; color: var(--text-secondary);
    transition: var(--transition);
}
.suggestion-links a:hover { border-color: var(--accent); color: var(--accent-light); }

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 22px;
    border-radius: var(--radius);
    font-size: 14px; font-weight: 600;
    cursor: pointer; border: none;
    transition: var(--transition);
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    color: #fff;
}
.btn-primary:hover { box-shadow: 0 4px 16px var(--accent-glow); transform: translateY(-1px); }
.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-secondary);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-light); }
.btn-sm { padding: 6px 14px; font-size: 12px; }

/* ===================================
   SUB CATEGORIES GRID
   =================================== */
.sub-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px; margin-bottom: 28px;
}
.sub-category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.sub-category-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.sub-category-image { height: 150px; overflow: hidden; }
.sub-category-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.sub-category-card:hover .sub-category-image img { transform: scale(1.05); }
.sub-category-content { padding: 16px; }
.sub-category-content h3 { font-size: 16px; margin-bottom: 6px; }
.sub-category-content p { font-size: 13px; color: var(--text-secondary); margin: 0; }

/* ===================================
   MORE ARTICLES SECTION
   =================================== */
.more-articles-section { padding: 40px 0; }
.news-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card-v {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.news-card-v:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.news-card-img { display: block; height: 160px; overflow: hidden; background: var(--bg-secondary); }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.news-card-v:hover .news-card-img img { transform: scale(1.05); }
.news-card-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 36px;
}
.news-card-body { padding: 16px; }
.news-card-top { display: flex; align-items: center; gap: 10px; font-size: 11px; margin-bottom: 8px; }
.news-card-cat { color: var(--accent-light); font-weight: 600; }
.news-card-date { color: var(--text-muted); }
.news-card-body h3 { font-size: 15px; line-height: 1.35; margin-bottom: 6px; }
.news-card-body h3 a { color: var(--text-primary); }
.news-card-body h3 a:hover { color: var(--accent-light); }
.news-card-body p {
    font-size: 13px; color: var(--text-secondary);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-col h4 {
    font-size: 15px; font-weight: 700; color: var(--text-primary);
    margin-bottom: 16px; padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { font-size: 13px; color: var(--text-secondary); }
.footer-col ul a:hover { color: var(--accent-light); }
.footer-logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 20px; font-weight: 800; color: var(--text-primary); margin-bottom: 12px;
}
.footer-logo i { color: var(--accent); font-size: 24px; }
.footer-about p { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.6; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px; transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.footer-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(108,92,231,0.1);
    border: 1px solid rgba(108,92,231,0.15);
    border-radius: 50px;
    font-size: 11px; color: var(--accent-light);
    transition: var(--transition);
}
.tag-pill:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
    font-size: 13px; color: var(--text-muted);
}
.footer-disclaimer { margin-top: 4px; font-size: 12px; opacity: 0.7; }

/* ===================================
   MOBILE MENU
   =================================== */
.mobile-menu {
    position: fixed; top: 0; right: -320px;
    width: 300px; height: 100vh;
    background: var(--bg-card);
    z-index: 1100;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}
.mobile-menu.active { right: 0; }
.mobile-menu-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px; border-bottom: 1px solid var(--border);
}
.mobile-menu-title { font-size: 16px; font-weight: 700; }
.mobile-menu-header button {
    width: 36px; height: 36px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 16px; cursor: pointer;
}
.mobile-nav-list { padding: 12px 0; }
.mobile-nav-list li a {
    display: block;
    padding: 12px 20px;
    font-size: 15px; color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}
.mobile-nav-list li a:hover { background: var(--bg-secondary); color: var(--accent-light); }
.mobile-nav-divider { height: 1px; background: var(--border); margin: 8px 20px; }

.mobile-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1090;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
}
.mobile-overlay.active { opacity: 1; visibility: visible; }

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .news-card-grid { grid-template-columns: repeat(2, 1fr); }
    .content-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header-inner { height: 56px; }
    .nav-menu { display: none; }
    .mobile-toggle { display: flex; }
    .logo-name { font-size: 15px; }
    .logo-tagline { display: none; }
    .logo-icon { width: 34px; height: 34px; font-size: 15px; }

    .hero-post img { height: 240px; }
    .hero-post-content { padding: 20px; }
    .hero-post-title { font-size: 20px; }

    .post-grid { grid-template-columns: 1fr; }
    .news-card-grid { grid-template-columns: 1fr; }

    .article-item { flex-direction: column; }
    .article-image { width: 100%; height: 180px; }

    .page-header { padding: 32px 0; }
    .page-header h1 { font-size: 24px; }

    .article-detail-header { padding: 20px 20px 0; }
    .article-detail-title { font-size: 22px; }
    .article-body { padding: 0 20px 20px; }
    .article-tags, .article-share-bar { padding: 16px 20px; }

    .article-nav { grid-template-columns: 1fr; }
    .nav-next { text-align: left; }

    .search-header-box { padding: 24px; }
    .search-form-large { flex-direction: column; }
    .search-form { flex-direction: column; }

    .category-header { flex-direction: column; text-align: center; }
    .sub-categories-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer { padding: 40px 0 0; }
}
