/* =========================================================
   Ultra-Level External CSS for DebateSylhetBD
   Author: Rizwan Rahim Chowdhury
========================================================= */

/* --- CSS Variables (Color Palette & Spacing) --- */
:root {
    --primary-color: #6f0977;
    --primary-hover: #4a0550;
    --secondary-color: #0077ff;
    --accent-gold: #ffdd00;
    --accent-teal: #369989;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-muted: #555;
    --border-color: #e0e0e0;
    --shadow-soft: 0 8px 24px rgba(0,0,0,0.06);
    --shadow-hover: 0 12px 32px rgba(111, 9, 119, 0.15);
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Global Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'SolaimanLipi', Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.section-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.text-center { text-align: center; }

/* --- Reusable Components --- */
.content-box {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-transform: capitalize;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.btn-primary { background: var(--secondary-color); color: var(--white); }
.btn-secondary { background: var(--primary-color); color: var(--white); }
.btn-gold { background: #9C7F2F; color: var(--white); }
.btn-teal { background: var(--accent-teal); color: var(--white); }
.btn-history { background: #d9534f; color: var(--white); }
.btn-dark { background: #3D0D17; color: var(--white); }
.btn-outline { background: transparent; border: 2px solid var(--primary-color); color: var(--primary-color); }
.btn-outline:hover { background: var(--primary-color); color: var(--white); }

/* --- Header & Navigation --- */
.site-header {
    background: linear-gradient(135deg, var(--primary-color), #a590e0);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 800;
    font-size: 1.2rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--white);
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0%; height: 2px;
    background: var(--accent-gold);
    transition: var(--transition);
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { background: rgba(255,255,255,0.1); color: var(--accent-gold); }

/* --- Hero Section --- */
.hero-section {
    text-align: center;
    padding: 60px 20px;
}
.hero-section h1 { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 10px; }
.hero-section h2 { font-size: 1.5rem; color: var(--text-dark); margin-bottom: 15px; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 30px; }
.button-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }

/* --- Top 30 Wiki Topics --- */
.wiki-list {
    column-count: 2;
    column-gap: 40px;
    list-style-position: inside;
}
.wiki-list li { margin-bottom: 12px; font-weight: 500; }
.wiki-list a { color: var(--secondary-color); }
.wiki-list a:hover { color: var(--primary-color); text-decoration: underline; }

/* --- Trending Debate Cards --- */
.trending-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.debate-card {
    background: var(--white);
    border-left: 5px solid var(--primary-color);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}
.debate-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.debate-card h3 { color: var(--primary-color); margin-bottom: 10px; }

/* --- Division Guides (Mini Grid) --- */
.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}
.trend-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.trend-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.trend-card img { width: 100%; height: 120px; object-fit: cover; }
.trend-info { padding: 10px; text-align: center; color: var(--text-dark); }

/* --- FAQ & Keywords Layout --- */
.faq-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}
.faq-item { margin-bottom: 20px; }
.faq-item h4 { color: var(--primary-color); margin-bottom: 5px; }
.keywords-block ul { padding-left: 20px; color: var(--text-muted); }

/* --- Authors & Experts --- */
.author-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.author-box, .expert-box {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-align: center;
}
.role { font-weight: bold; color: var(--secondary-color); margin-bottom: 10px; }

/* --- Footer --- */
.site-footer {
    background: #111;
    color: #ccc;
    padding: 50px 20px 20px;
    margin-top: 50px;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}
.site-footer h3 { color: var(--accent-gold); margin-bottom: 15px; }
.footer-links ul { list-style: none; }
.footer-links a { color: #ccc; }
.footer-links a:hover { color: var(--white); padding-left: 5px; }
.social-icons a {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    margin-right: 5px;
    margin-bottom: 5px;
}
.social-icons a:hover { background: var(--secondary-color); }
.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* --- Social Sidebar --- */
.social-sidebar {
    position: fixed;
    top: 50%; left: 0;
    transform: translateY(-50%);
    display: flex; flex-direction: column;
    z-index: 999;
}
.social-sidebar a {
    background: var(--secondary-color);
    color: #fff;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    border-radius: 0 5px 5px 0;
    margin-bottom: 5px;
}
.social-sidebar a:hover { background: var(--primary-color); width: 60px; }

/* --- Cookie Banner --- */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: rgba(17, 17, 17, 0.95);
    color: #fff; padding: 15px 20px;
    display: none; align-items: center; justify-content: center; gap: 20px;
    z-index: 10000;
    backdrop-filter: blur(5px);
}
#cookie-banner a { color: var(--accent-gold); text-decoration: underline; }
#cookie-banner button {
    background: var(--accent-gold); color: #000; border: none;
    padding: 8px 20px; font-weight: bold; border-radius: 4px; cursor: pointer;
}

/* --- Watermark --- */
.watermark {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}
.watermark img { width: 50vw; max-width: 600px; }

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 10px; }
    .nav-links { justify-content: center; }
    .wiki-list { column-count: 1; }
    .faq-layout { grid-template-columns: 1fr; }
    .social-sidebar {
        top: auto; bottom: 0; left: 0; width: 100%;
        flex-direction: row; justify-content: center; transform: none;
        background: #111; padding: 10px 0; border-radius: 0;
    }
    .social-sidebar a { border-radius: 4px; margin: 0 5px; padding: 8px 12px; }
    .site-footer { margin-bottom: 50px; /* space for mobile sidebar */ }
                    }
