﻿/* 
   Articles System - Premium Dark Theme
   Matches AdriaSka Tour Design Language
*/

:root {
    --site-gold: #FFD700;
    --site-gold-dark: #DAA520;
    --site-gold-glow: rgba(255, 215, 0, 0.25);
    --site-bg: #000000;
    --site-card: rgba(20, 20, 20, 0.85);
    --site-card-hover: rgba(30, 30, 30, 0.95);
    --site-border: rgba(255, 255, 255, 0.1);
    --site-border-gold: rgba(255, 215, 0, 0.25);
    --site-radius: 14px;
    --site-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-subtle: rgba(255, 255, 255, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }

body.articles-body {
    background: var(--site-bg);
    color: var(--text-main);
    font-family: "Tajawal", sans-serif;
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Controls */
.articles-controls {
    max-width: 1200px;
    margin: 20px auto 50px;
    padding: 0 20px;
}
.search-container { max-width: 600px; margin: 0 auto 30px; }
.search-box {
    display: flex;
    background: rgba(20,20,20,0.85);
    border: 2px solid var(--site-border-gold);
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.search-box:focus-within { border-color: var(--site-gold); box-shadow: 0 0 25px rgba(255,215,0,0.35); }
.search-box input {
    flex: 1; border: none; background: transparent;
    padding: 15px 24px; outline: none; font-size: 1rem;
    color: #fff; font-family: inherit;
}
.search-box input::placeholder { color: rgba(255,255,255,0.5); }
.search-box button {
    background: var(--site-gold); color: #000;
    border: none; padding: 0 35px; font-weight: 700;
    font-family: inherit; font-size: 1rem; cursor: pointer;
    transition: background 0.3s;
}
.search-box button:hover { background: var(--site-gold-dark); }

.category-chips { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.chip {
    padding: 10px 25px;
    background: rgba(20,20,20,0.8);
    border: 1px solid var(--site-border);
    border-radius: 50px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}
.chip:hover, .chip.active {
    background: var(--site-gold); color: #000;
    border-color: var(--site-gold);
    box-shadow: 0 5px 15px rgba(255,215,0,0.3);
}

/* Layout */
.articles-layout {
    flex: 1 0 auto;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 80px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    width: 100%;
}
footer.global-footer { flex-shrink: 0; margin-top: auto !important; }

/* Featured Card */
.featured-card {
    background: var(--site-card);
    border-radius: var(--site-radius);
    border: 1px solid var(--site-border-gold);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: var(--site-shadow);
    margin-bottom: 50px;
    position: relative;
    transition: all 0.4s ease;
}
.featured-card:hover { border-color: var(--site-gold); box-shadow: 0 20px 50px var(--site-gold-glow); transform: translateY(-4px); }
.featured-img { height: 420px; overflow: hidden; }
.featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.featured-card:hover .featured-img img { transform: scale(1.04); }
.featured-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.cat-label { display: inline-block; color: var(--site-gold); font-weight: 800; font-size: 0.85rem; text-transform: uppercase; margin-bottom: 15px; }
.featured-body h2 { font-size: 2rem; color: var(--text-main); margin-bottom: 18px; line-height: 1.4; font-weight: 800; }
.featured-body p { color: var(--text-muted); line-height: 1.8; margin-bottom: 30px; font-size: 1rem; }

.btn-read-more {
    display: inline-block; padding: 14px 35px;
    background: var(--site-gold); color: #000;
    text-decoration: none; border-radius: 8px;
    font-weight: 700; width: fit-content; transition: all 0.3s; font-family: inherit;
}
.btn-read-more:hover { background: var(--site-gold-dark); color: #000; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(255,215,0,0.3); }

/* Articles Grid */
.articles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.article-card {
    background: var(--site-card);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex; flex-direction: column;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.article-card:hover { transform: translateY(-8px); border-color: var(--site-gold); box-shadow: 0 15px 40px var(--site-gold-glow); background: var(--site-card-hover); }
.card-img { height: 220px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.article-card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 25px; flex: 1; }
.card-body h3 { font-size: 1.2rem; color: var(--text-main); margin-bottom: 12px; font-weight: 700; line-height: 1.5; }
.card-body h3 a { color: inherit; text-decoration: none; transition: color 0.3s; }
.card-body h3 a:hover { color: var(--site-gold); }
.card-body p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.card-footer { padding: 16px 25px; border-top: 1px solid var(--site-border); display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-subtle); }
.card-footer i { color: var(--site-gold); margin-left: 5px; }

/* Sidebar */
.sidebar-articles { display: flex; flex-direction: column; gap: 30px; }
.sidebar-widget {
    background: var(--site-card);
    border: 1px solid var(--site-border-gold);
    border-radius: var(--site-radius);
    padding: 28px;
    box-shadow: var(--site-shadow);
}
.widget-title { font-size: 1.2rem; font-weight: 800; color: var(--site-gold); margin-bottom: 25px; padding-bottom: 12px; border-bottom: 2px solid var(--site-border-gold); display: block; }
.sidebar-latest-item { display: flex; gap: 15px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--site-border); position: relative; }
.sidebar-latest-item:last-child { border: none; margin-bottom: 0; padding-bottom: 0; }
.sidebar-latest-item img { width: 80px; height: 65px; border-radius: 8px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--site-border); }
.sidebar-latest-item .info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.sidebar-latest-item .info a { color: var(--text-main); text-decoration: none; font-weight: 600; font-size: 0.9rem; line-height: 1.4; display: block; margin-bottom: 6px; transition: color 0.3s; }
.sidebar-latest-item .info a:hover { color: var(--site-gold); }
.sidebar-latest-item .info small { color: var(--text-subtle); font-size: 0.8rem; }

.sidebar-cat-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sidebar-cat-list li a { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: rgba(255,255,255,0.04); border: 1px solid var(--site-border); border-radius: 8px; color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: all 0.3s; }
.sidebar-cat-list li a:hover { background: var(--site-gold); color: #000; border-color: var(--site-gold); box-shadow: 0 5px 15px rgba(255,215,0,0.25); }
.sidebar-cat-list .badge { background: rgba(255,215,0,0.12); color: var(--site-gold); padding: 3px 10px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; }
.sidebar-cat-list li a:hover .badge { background: rgba(0,0,0,0.2); color: #000; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 50px; flex-wrap: wrap; }
.pagination a { padding: 10px 20px; background: rgba(20,20,20,0.9); border: 1px solid var(--site-border-gold); color: var(--site-gold); text-decoration: none; border-radius: 8px; font-weight: 700; transition: all 0.3s; }
.pagination a.active, .pagination a:hover { background: var(--site-gold); color: #000; border-color: var(--site-gold); box-shadow: 0 5px 15px rgba(255,215,0,0.3); }

/* Responsive */
@media (max-width: 1200px) {
    .articles-layout { grid-template-columns: 1fr; }
    .featured-card { grid-template-columns: 1fr; }
    .featured-img { height: 300px; }
}
@media (max-width: 768px) {
    .articles-grid { grid-template-columns: 1fr; }
    .featured-body { padding: 25px; }
    .featured-body h2 { font-size: 1.6rem; }
    body.articles-body { padding-top: 80px; }
}

/* Utility */
.stretched-link::after { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; content: ""; }
