/* ════════════════ CSS Variables ════════════════ */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f4f6f8;
    --bg-card: #ffffff;
    --text-primary: #222222;
    --text-secondary: #888888;
    --border-color: #e0e0e0;
    --accent-color: #ff806d;
    --accent-hover: #ff6a52;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-hover: rgba(0, 0, 0, 0.15);
}
[data-theme="dark"] {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-card: #0f3460;
    --text-primary: #e4e4e4;
    --text-secondary: #a0a0a0;
    --border-color: #2a2a4a;
    --accent-color: #ff806d;
    --accent-hover: #ff6a52;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.5);
}
/* ════════════════ Base Styles ════════════════ */
* {
    font-family: 'Vazirmatn', sans-serif !important;
    box-sizing: border-box;
}
body {
    font-family: Vazirmatn, sans-serif;
    margin: 0;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: background 0.3s, color 0.3s;
}
/* ════════════════ Header ════════════════ */
.header {
    background: var(--bg-primary);
    padding: 15px 25px;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}
.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}
/* ════════════════ Theme Toggle ════════════════ */
.theme-toggle {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.3s;
}
.theme-toggle:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.theme-toggle .icon {
    font-size: 18px;
}
/* ════════════════ Container ════════════════ */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}
/* ════════════════ Banner ════════════════ */
.banner {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    height: 420px;
    margin-bottom: 30px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 10px 25px var(--shadow);
    transition: all 0.3s;
}
.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}
.banner-content {
    position: absolute;
    bottom: 25px;
    right: 25px;
    color: white;
    max-width: 70%;
}
.banner h1 {
    margin: 10px 0;
    font-size: 30px;
    color: #fff;
}
.banner p {
    color: #eee;
}
/* ════════════════ Grid ════════════════ */
.grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}
/* ════════════════ Sidebar ════════════════ */
.sidebar-post {
    display: flex;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s;
}
.sidebar-post:hover {
    box-shadow: 0 6px 18px var(--shadow-hover);
    transform: translateX(-5px);
}
.sidebar-post img {
    width: 90px;
    height: 90px;
    object-fit: cover;
}
.sidebar-post div {
    padding: 10px;
    font-size: 14px;
    color: var(--text-primary);
}
/* ════════════════ Category Filter ════════════════ */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 14px;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s;
}
.category-filter a {
    padding: 8px 20px;
    border-radius: 25px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
}
.category-filter a:hover {
    background: var(--accent-color);
    color: white;
}
.category-filter a.active {
    background: var(--accent-color);
    color: white;
}
/* ════════════════ Cards ════════════════ */
.section-title {
    font-size: 22px;
    margin: 40px 0 20px;
    font-weight: 700;
    color: var(--text-primary);
}
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    align-items: stretch;
}
.card {
    background: var(--bg-card);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px var(--shadow);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px var(--shadow-hover);
}
.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    flex-shrink: 0;
}
.card-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 180px;
}
.meta {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.card h3 {
    font-size: 18px;
    margin: 5px 0 10px;
    color: var(--text-primary);
}
.card-content p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.7;
    margin: 0;
    flex-grow: 1;
    color: var(--text-secondary);
}
/* ════════════════ Footer ════════════════ */
.footer {
    margin-top: 60px;
    background: var(--bg-primary);
    padding: 30px;
    text-align: center;
    color: var(--text-secondary);
    transition: background 0.3s;
}
/* ════════════════ Links ════════════════ */
a {
    text-decoration: none;
    color: inherit;
}
/* ════════════════ Responsive ════════════════ */
@media (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr;
    }
    .banner {
        height: 300px;
    }
    .banner h1 {
        font-size: 22px;
    }
}