/**
 * Aungshu (অংশু) — Modern Glassmorphism UI & Design System (Default Light Mode)
 * 
 * @package Aungshu
 * @author DotNetBD / Md. Atiquzzaman Ashish
 */

:root {
    /* Default Light Theme Tokens */
    --bg-main: #f8fafc;
    --bg-gradient: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 40%, #f8fafc 100%);
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-glass-card: rgba(255, 255, 255, 0.92);
    --border-glass: rgba(203, 213, 225, 0.8);
    --text-main: #0f172a;
    --text-muted: #475569;
    --primary: #0284c7;
    --primary-gradient: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    --primary-hover: #0369a1;
    --accent: #38bdf8;
    --card-shadow: 0 20px 30px -10px rgba(2, 132, 199, 0.12), 0 8px 12px -6px rgba(0, 0, 0, 0.04);
    --header-bg: rgba(255, 255, 255, 0.85);
    --input-bg: rgba(255, 255, 255, 0.95);
    --input-border: #cbd5e1;
}

[data-theme="dark"] {
    /* Dark Theme Tokens */
    --bg-main: #0f172a;
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0284c7 100%);
    --bg-glass: rgba(30, 41, 59, 0.8);
    --bg-glass-card: rgba(30, 41, 59, 0.9);
    --border-glass: rgba(255, 255, 255, 0.15);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #38bdf8;
    --primary-gradient: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    --primary-hover: #7dd3fc;
    --accent: #0284c7;
    --card-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.5), 0 8px 12px -6px rgba(0, 0, 0, 0.3);
    --header-bg: rgba(15, 23, 42, 0.88);
    --input-bg: rgba(15, 23, 42, 0.6);
    --input-border: rgba(255, 255, 255, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
body { font-family: 'Noto Sans Bengali', 'Inter', sans-serif; background: var(--bg-gradient); color: var(--text-main); line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }

/* Container & Auto-Responsive Grid */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* Header & Glass Navigation */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--header-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border-glass); padding: 14px 0; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03); }
.header-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { width: 44px; height: 44px; background: var(--primary-gradient); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.4rem; box-shadow: 0 6px 16px rgba(2, 132, 199, 0.3); }
.brand-title { font-size: 1.45rem; font-weight: 700; color: var(--text-main); letter-spacing: -0.5px; }
.brand-tagline { font-size: 0.78rem; color: var(--text-muted); display: block; font-weight: 500; }

.nav-menu { display: flex; align-items: center; gap: 20px; list-style: none; }
.nav-link { text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 0.95rem; padding: 8px 14px; border-radius: 10px; transition: 0.2s ease; }
.nav-link:hover, .nav-link.active { color: var(--primary); background: rgba(2, 132, 199, 0.1); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.theme-btn { background: var(--bg-glass-card); border: 1px solid var(--border-glass); color: var(--text-main); width: 42px; height: 42px; border-radius: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); }
.theme-btn:hover { background: rgba(2, 132, 199, 0.15); transform: rotate(15deg); }

/* Hero Banner */
.hero-section { padding: 60px 0 40px 0; text-align: center; background: radial-gradient(circle at top center, rgba(2, 132, 199, 0.12) 0%, transparent 70%); }
.hero-title { font-size: 2.6rem; font-weight: 800; margin-bottom: 14px; background: linear-gradient(135deg, #0284c7 0%, #0f172a 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.3; }
.hero-subtitle { font-size: 1.15rem; color: var(--text-muted); max-width: 680px; margin: 0 auto 30px auto; font-weight: 500; }

/* Grid & Cards */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 28px; margin-bottom: 50px; }
.card { background: var(--bg-glass-card); backdrop-filter: blur(16px); border: 1px solid var(--border-glass); border-radius: 18px; overflow: hidden; box-shadow: var(--card-shadow); transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px); box-shadow: 0 25px 35px -5px rgba(2, 132, 199, 0.2); border-color: var(--primary); }

.card-img-wrap { position: relative; width: 100%; height: 210px; overflow: hidden; background: #e2e8f0; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-img { transform: scale(1.06); }
.badge-cat { position: absolute; top: 14px; left: 14px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px); color: #0284c7; border: 1px solid rgba(2, 132, 199, 0.3); padding: 5px 14px; border-radius: 20px; font-size: 0.78rem; font-weight: 700; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); }

.card-body { padding: 22px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.card-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; line-height: 1.45; color: var(--text-main); }
.card-title a { text-decoration: none; color: inherit; transition: color 0.2s; }
.card-title a:hover { color: var(--primary); }
.card-excerpt { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.82rem; color: var(--text-muted); border-top: 1px solid var(--border-glass); padding-top: 14px; font-weight: 500; }

/* Single Article View */
.article-header { padding: 40px 0 20px 0; max-width: 820px; margin: 0 auto; text-align: center; }
.article-featured-img { width: 100%; max-width: 900px; height: auto; max-height: 480px; object-fit: cover; border-radius: 20px; margin: 25px auto; display: block; border: 1px solid var(--border-glass); box-shadow: var(--card-shadow); }
.article-content { max-width: 820px; margin: 0 auto 60px auto; font-size: 1.12rem; line-height: 1.85; color: var(--text-main); }
.article-content h2, .article-content h3 { margin: 32px 0 16px 0; color: var(--primary); font-weight: 700; }
.article-content p { margin-bottom: 22px; }
.article-content ul, .article-content ol { margin: 0 0 22px 28px; }
.article-content blockquote { border-left: 4px solid var(--primary); padding: 16px 24px; margin: 28px 0; background: rgba(2, 132, 199, 0.08); border-radius: 0 14px 14px 0; font-style: italic; color: var(--text-main); }

/* Form Controls & Inputs */
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; color: var(--text-main); }
.form-control { width: 100%; padding: 13px 18px; background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 12px; color: var(--text-main); font-size: 0.98rem; outline: none; transition: 0.3s ease; box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.18); background: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; background: var(--primary-gradient); color: #fff; border: none; border-radius: 12px; font-weight: 700; cursor: pointer; text-decoration: none; transition: 0.25s ease; box-shadow: 0 6px 16px rgba(2, 132, 199, 0.3); font-size: 0.98rem; }
.btn:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 12px 25px rgba(2, 132, 199, 0.4); color: #fff; }
.btn-outline { background: var(--bg-glass-card); border: 1px solid var(--border-glass); color: var(--text-main); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03); }
.btn-outline:hover { background: rgba(2, 132, 199, 0.1); border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* Footer */
.site-footer { margin-top: auto; background: var(--header-bg); backdrop-filter: blur(16px); border-top: 1px solid var(--border-glass); padding: 35px 0; text-align: center; font-size: 0.92rem; color: var(--text-muted); }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 14px; list-style: none; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--primary); }

/* Responsive Drawer Navigation */
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--text-main); cursor: pointer; }
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--header-bg); backdrop-filter: blur(24px); flex-direction: column; padding: 22px; border-bottom: 1px solid var(--border-glass); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); }
    .nav-menu.open { display: flex; }
    .hero-title { font-size: 2rem; }
    .articles-grid { grid-template-columns: 1fr; }
}
