/*
Theme Name: Sahityasabha
Theme URI: https://tipsweb.in
Author: Manika Rani
Author URI: https://tipsweb.in
Description: Bengali literary magazine theme inspired by golpokobita.com. Features monthly themed literary competitions, story and poetry sections, user submissions, author profiles, and a full-featured dashboard. Designed for Bengali literature communities.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sahityasabha
Tags: bengali, literary, magazine, blog, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    --ink: #1a1008;
    --paper: #fdf8f0;
    --aged: #f5ede0;
    --accent: #c0392b;
    --gold: #b8860b;
    --gold-light: #e8c84a;
    --muted: #7a6652;
    --border: #d4c4aa;
    --white: #ffffff;
    --shadow: rgba(26,16,8,0.12);
    --shadow-md: rgba(26,16,8,0.18);
    --radius: 6px;
    --font-bengali: 'Hind Siliguri', sans-serif;
    --font-serif: 'Tiro Bangla', serif;
    --font-display: 'Playfair Display', serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-bengali);
    background: var(--paper);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: #a93226; }

img { max-width: 100%; height: auto; display: block; }

ul, ol { list-style: none; }

input, select, textarea, button {
    font-family: var(--font-bengali);
    font-size: 14px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    line-height: 1.3;
    color: var(--ink);
}

.entry-title a { color: var(--ink); }
.entry-title a:hover { color: var(--accent); }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid { width: 100%; padding: 0 20px; }

.site-content {
    padding: 40px 0;
}

.content-area { flex: 1; min-width: 0; }

.two-col {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn, .button, button[type="submit"],
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 3px;
    font-size: 13px;
    font-family: var(--font-bengali);
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all .2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary, .wp-block-button .wp-block-button__link {
    background: var(--accent);
    color: #fff !important;
}
.btn-primary:hover { background: #a93226; color: #fff; }

.btn-gold { background: var(--gold); color: var(--ink) !important; font-weight: 600; }
.btn-gold:hover { background: var(--gold-light); }

.btn-outline {
    background: transparent;
    border: 1.5px solid currentColor;
    color: var(--ink);
}
.btn-outline:hover { background: var(--aged); }

.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 13px 30px; font-size: 15px; }

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
    background: var(--ink);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 20px rgba(0,0,0,.4);
}

.header-texture {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        45deg, transparent, transparent 2px,
        rgba(184,134,11,.04) 2px, rgba(184,134,11,.04) 4px
    );
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(184,134,11,.25);
    position: relative;
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }

.logo-icon {
    width: 48px; height: 48px;
    background: var(--gold);
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: var(--ink); flex-shrink: 0;
}

.logo-icon img { width: 40px; height: 40px; object-fit: contain; }

.logo-text-wrap .site-title {
    font-family: var(--font-serif);
    font-size: 26px;
    color: var(--gold-light);
    line-height: 1;
    display: block;
}

.logo-text-wrap .site-description {
    font-size: 11px;
    color: #aaa;
    margin-top: 2px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-actions .btn-outline {
    border-color: var(--gold);
    color: var(--gold-light);
}
.header-actions .btn-outline:hover { background: var(--gold); color: var(--ink); }

/* ============================================================
   PRIMARY NAVIGATION
   ============================================================ */
.main-navigation { position: relative; }

.main-navigation ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

.main-navigation > ul > li > a {
    display: block;
    color: #ccc;
    padding: 13px 15px;
    font-size: 13.5px;
    text-decoration: none;
    transition: all .2s;
    border-right: 1px solid rgba(255,255,255,.06);
}

.main-navigation > ul > li:first-child > a {
    border-left: 1px solid rgba(255,255,255,.06);
}

.main-navigation > ul > li > a:hover,
.main-navigation > ul > li.current-menu-item > a,
.main-navigation > ul > li.current_page_item > a {
    color: var(--gold-light);
    background: rgba(184,134,11,.1);
}

/* Submit CTA in nav */
.main-navigation .nav-submit > a {
    background: var(--accent) !important;
    color: #fff !important;
    margin: 5px 0 5px 8px;
    border-radius: 3px;
    border: none !important;
}
.main-navigation .nav-submit > a:hover { background: #a93226 !important; }

/* Dropdown */
.main-navigation ul ul {
    display: none;
    position: absolute;
    background: var(--ink);
    min-width: 200px;
    border: 1px solid rgba(184,134,11,.25);
    border-top: 2px solid var(--gold);
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
}

.main-navigation ul li:hover > ul { display: block; }

.main-navigation ul ul li a {
    display: block;
    padding: 10px 16px;
    color: #ccc;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.main-navigation ul ul li a:hover { color: var(--gold-light); background: rgba(184,134,11,.08); }

/* Mobile Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(184,134,11,.4);
    color: var(--gold-light);
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 16px;
}

/* ============================================================
   HERO BANNER (Front Page)
   ============================================================ */
.hero-banner {
    background: linear-gradient(135deg, #1a1008 0%, #2d1f12 50%, #1a1008 100%);
    padding: 50px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    border-bottom: 3px solid var(--gold);
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '✦';
    position: absolute;
    right: 22%;
    top: 10%;
    font-size: 180px;
    color: rgba(184,134,11,.04);
    font-family: serif;
    pointer-events: none;
}

.hero-left { flex: 1; }

.issue-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 2px;
    margin-bottom: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 52px;
    color: var(--gold-light);
    line-height: 1.1;
    margin-bottom: 14px;
}

.hero-meta {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 24px;
}
.hero-meta span { color: var(--gold); }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.hero-stat-num {
    font-size: 30px;
    font-weight: 700;
    color: var(--gold-light);
    font-family: var(--font-display);
    line-height: 1;
}

.hero-stat-lbl {
    font-size: 11px;
    color: #999;
    margin-top: 3px;
}

.hero-featured-card {
    width: 320px;
    flex-shrink: 0;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(184,134,11,.3);
    border-radius: var(--radius);
    overflow: hidden;
}

.hero-featured-img {
    height: 170px;
    overflow: hidden;
    position: relative;
}

.hero-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-featured-img .no-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d4a2d, #1a3a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.hero-featured-body { padding: 16px; }

.hero-featured-cat {
    font-size: 11px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.hero-featured-title {
    font-family: var(--font-serif);
    font-size: 18px;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.4;
}

.hero-featured-author { font-size: 12px; color: #aaa; }

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.section-title h2 {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--ink);
    white-space: nowrap;
}

.section-title .title-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.section-title .title-badge {
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 2px;
    white-space: nowrap;
}

.section-title .title-link {
    font-size: 13px;
    color: var(--accent);
    white-space: nowrap;
}

/* ============================================================
   ARTICLE CARDS (Grid)
   ============================================================ */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.article-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .25s;
    cursor: pointer;
    box-shadow: 0 2px 8px var(--shadow);
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--shadow-md);
    border-color: var(--gold);
}

.card-thumbnail {
    height: 140px;
    overflow: hidden;
    position: relative;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.article-card:hover .card-thumbnail img { transform: scale(1.05); }

.card-thumbnail .no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.card-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 2px;
    z-index: 1;
}

.card-body { padding: 14px; }

.card-title {
    font-family: var(--font-serif);
    font-size: 15px;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.5;
}

.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); }

.card-excerpt {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--aged);
}

.card-author { display: flex; align-items: center; gap: 8px; }

.author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--ink);
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
}

.author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.author-name { font-size: 12px; color: var(--muted); }

.card-stats {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: #aaa;
}

/* ============================================================
   ARTICLE LIST VIEW
   ============================================================ */
.article-list { margin-bottom: 40px; }

.list-item {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    transition: padding .2s;
}

.list-item:hover { padding-left: 8px; }

.list-thumb {
    width: 80px;
    height: 70px;
    border-radius: 4px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--aged);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.list-thumb img { width: 100%; height: 100%; object-fit: cover; }

.list-content { flex: 1; }

.list-cat {
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.list-title {
    font-family: var(--font-serif);
    font-size: 16px;
    color: var(--ink);
    margin-bottom: 6px;
    line-height: 1.5;
}

.list-title a { color: var(--ink); }
.list-title a:hover { color: var(--accent); }

.list-meta { font-size: 12px; color: var(--muted); }
.list-issue { font-size: 11px; color: var(--gold); margin-top: 4px; }

/* ============================================================
   SINGLE ARTICLE / POST
   ============================================================ */
.single-article {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 30px;
}

.single-article-header { padding: 30px 36px 20px; border-bottom: 1px solid var(--aged); }

.single-article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.meta-cat {
    background: var(--aged);
    color: var(--accent);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta-issue { font-size: 12px; color: var(--gold); }
.meta-date { font-size: 12px; color: var(--muted); }

.single-article-title {
    font-family: var(--font-serif);
    font-size: 34px;
    line-height: 1.3;
    margin-bottom: 16px;
}

.single-author-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar-md {
    width: 44px; height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; color: var(--ink);
    flex-shrink: 0;
}

.author-avatar-md img { width: 100%; height: 100%; object-fit: cover; }

.author-info-name { font-weight: 600; font-size: 14px; }
.author-info-sub { font-size: 12px; color: var(--muted); }

.single-article-content {
    padding: 30px 36px;
    font-family: var(--font-serif);
    font-size: 17px;
    line-height: 2;
    color: #2d2010;
}

.single-article-content p { margin-bottom: 1.2em; }

.single-article-footer {
    padding: 16px 36px;
    border-top: 1px solid var(--aged);
    display: flex;
    align-items: center;
    gap: 20px;
}

.reaction-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1.5px solid var(--border);
    border-radius: 30px;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    transition: all .2s;
    color: var(--muted);
}

.reaction-btn:hover, .reaction-btn.active {
    border-color: var(--accent);
    color: var(--accent);
    background: #fdecea;
}

/* ============================================================
   ISSUES ARCHIVE
   ============================================================ */
.issues-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.issue-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all .25s;
    box-shadow: 0 2px 6px var(--shadow);
}

.issue-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px var(--shadow-md);
}

.issue-cover {
    height: 160px;
    position: relative;
    overflow: hidden;
}

.issue-cover img { width: 100%; height: 100%; object-fit: cover; }

.issue-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.7));
}

.issue-cover-title {
    position: absolute;
    bottom: 10px;
    left: 12px;
    color: #fff;
    font-family: var(--font-serif);
    font-size: 20px;
}

.issue-body { padding: 12px; }
.issue-date { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.issue-counts { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }

/* Year filter tabs */
.year-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.year-tab {
    padding: 7px 16px;
    border: 1.5px solid var(--border);
    border-radius: 3px;
    font-size: 13px;
    cursor: pointer;
    background: var(--white);
    color: var(--ink);
    transition: all .2s;
}

.year-tab:hover, .year-tab.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all .25s;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow-md);
}

.blog-cover {
    height: 180px;
    overflow: hidden;
}

.blog-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.blog-card:hover .blog-cover img { transform: scale(1.05); }

.blog-cover .no-img {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center; font-size: 50px;
}

.blog-body { padding: 16px; }

.blog-cat {
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.blog-title {
    font-family: var(--font-serif);
    font-size: 17px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.blog-title a { color: var(--ink); }
.blog-title a:hover { color: var(--accent); }

.blog-excerpt { font-size: 13px; color: var(--muted); line-height: 1.7; }
.blog-meta { margin-top: 12px; font-size: 12px; color: #aaa; }

/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */
.sidebar .widget {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 24px;
    overflow: hidden;
}

.widget-title {
    background: var(--ink);
    color: var(--gold-light);
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-serif);
    margin-bottom: 0;
}

.widget-content { padding: 16px; }

/* Upcoming Issue widget */
.upcoming-widget { text-align: center; }
.upcoming-topic-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.upcoming-topic {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--accent);
    margin: 10px 0 8px;
    line-height: 1.3;
}
.deadline-badge {
    display: inline-block;
    background: var(--aged);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
    padding: 5px 14px;
    color: var(--muted);
    margin-bottom: 14px;
}
.deadline-badge strong { color: var(--accent); }

/* Winners widget */
.winner-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--aged);
}
.winner-item:last-child { border: none; }

.rank-badge {
    width: 26px; height: 26px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.rank-1 { background: #FFD700; color: var(--ink); }
.rank-2 { background: #C0C0C0; color: var(--ink); }
.rank-3 { background: #CD7F32; color: #fff; }

.winner-name { font-size: 13px; font-weight: 500; }
.winner-work { font-size: 11px; color: var(--muted); }
.winner-section-label { font-size: 12px; color: var(--muted); margin: 10px 0 6px; padding-top: 10px; border-top: 1px solid var(--border); }

/* Stats widget */
.stats-widget-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.stat-box {
    text-align: center;
    padding: 14px;
    background: var(--aged);
    border-radius: 4px;
}
.stat-num { font-size: 24px; font-weight: 700; color: var(--accent); font-family: var(--font-display); line-height: 1; }
.stat-lbl { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* Tags cloud widget */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-item {
    background: var(--aged);
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all .2s;
    color: var(--muted);
    text-decoration: none;
    display: inline-block;
}
.tag-item:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* Recent posts widget */
.widget-post-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--aged);
}
.widget-post-item:last-child { border: none; }
.widget-post-thumb {
    width: 56px; height: 48px;
    border-radius: 3px;
    overflow: hidden; flex-shrink: 0;
    background: var(--aged);
}
.widget-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.widget-post-title { font-size: 13px; line-height: 1.4; color: var(--ink); }
.widget-post-title a { color: var(--ink); }
.widget-post-title a:hover { color: var(--accent); }
.widget-post-date { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* ============================================================
   AUTHOR PROFILE BOX
   ============================================================ */
.author-box {
    background: var(--aged);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin: 30px 0;
}

.author-box-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    overflow: hidden; flex-shrink: 0;
    background: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; font-weight: 700; color: var(--ink);
}

.author-box-avatar img { width: 100%; height: 100%; object-fit: cover; }

.author-box-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.author-box-bio { font-size: 13px; color: var(--muted); line-height: 1.6; }
.author-box-stats { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.author-box-stats strong { color: var(--accent); }

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area { margin-top: 30px; }

.comment-list { padding: 0; }

.comment {
    margin-bottom: 0;
    padding: 20px 0;
    border-bottom: 1px solid var(--aged);
    list-style: none;
}

.comment-body { display: flex; gap: 14px; }

.comment-author-avatar {
    width: 42px; height: 42px;
    border-radius: 50%; flex-shrink: 0;
    overflow: hidden;
    background: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700; color: var(--ink);
}

.comment-author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.comment-content { flex: 1; }
.comment-author-name { font-weight: 600; font-size: 14px; }
.comment-date { font-size: 11px; color: var(--muted); }
.comment-text { font-size: 14px; margin-top: 6px; line-height: 1.7; }
.comment-reply-link { font-size: 12px; color: var(--accent); margin-top: 6px; display: inline-block; }

/* Comment form */
.comment-form label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 5px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 14px;
    background: var(--white);
    color: var(--ink);
    outline: none;
    transition: border-color .2s;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--gold); }
.comment-form textarea { min-height: 120px; resize: vertical; }

/* ============================================================
   FORMS (Login / Register)
   ============================================================ */
.auth-wrap {
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, #1a1008 0%, #2d1f12 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 900px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.5);
}

.auth-side {
    background: var(--ink);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(184,134,11,.3);
}

.auth-side h2 {
    font-family: var(--font-serif);
    font-size: 30px;
    color: var(--gold-light);
    margin-bottom: 12px;
    line-height: 1.3;
}

.auth-side p { color: #aaa; font-size: 14px; line-height: 1.8; }

.benefit-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
    color: #ccc;
    font-size: 13px;
}
.benefit-icon { color: var(--gold); font-size: 16px; flex-shrink: 0; margin-top: 1px; }

.auth-form-side {
    background: var(--paper);
    padding: 50px 40px;
}

.auth-form-side h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    margin-bottom: 6px;
}

.auth-form-side > p { font-size: 13px; color: var(--muted); margin-bottom: 24px; }

.form-group { margin-bottom: 18px; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    font-family: var(--font-bengali);
    background: #fff;
    color: var(--ink);
    outline: none;
    transition: border-color .2s;
}

.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,134,11,.1); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-check { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 16px; }
.form-check input { margin-top: 3px; }
.form-check label { font-size: 12px; color: var(--muted); line-height: 1.5; }

.form-divider {
    text-align: center;
    margin: 16px 0;
    position: relative;
    color: var(--muted);
    font-size: 12px;
}
.form-divider::before, .form-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 43%;
    height: 1px;
    background: var(--border);
}
.form-divider::before { left: 0; }
.form-divider::after { right: 0; }

.auth-switch { text-align: center; margin-top: 18px; font-size: 13px; color: var(--muted); }
.auth-switch a { color: var(--accent); font-weight: 500; }

/* Login only container */
.login-wrap {
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, #1a1008 0%, #2d1f12 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-box {
    background: var(--paper);
    border-radius: 10px;
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.5);
}

.login-box-header {
    background: var(--ink);
    padding: 30px;
    text-align: center;
    border-bottom: 2px solid var(--gold);
}

.login-box-header h2 {
    font-family: var(--font-serif);
    font-size: 26px;
    color: var(--gold-light);
}

.login-box-header p { color: #aaa; font-size: 13px; margin-top: 6px; }
.login-box-body { padding: 32px; }
.forgot-link { text-align: right; }
.forgot-link a { font-size: 12px; color: var(--accent); }

/* ============================================================
   USER DASHBOARD
   ============================================================ */
.dashboard-header-bar {
    background: var(--ink);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--gold);
}

.dash-welcome { color: #aaa; font-size: 13px; }
.dash-welcome strong { color: var(--gold-light); }

.dashboard-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    align-items: start;
}

/* Dashboard Sidebar */
.dash-sidebar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    position: sticky;
    top: 80px;
}

.dash-profile {
    background: var(--ink);
    padding: 24px;
    text-align: center;
}

.profile-avatar-lg {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--gold);
    margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; font-weight: 700; color: var(--ink);
    border: 3px solid rgba(184,134,11,.4);
    overflow: hidden;
}

.profile-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }

.dash-username {
    font-family: var(--font-serif);
    font-size: 18px; color: #fff; margin-bottom: 3px;
}

.dash-handle { color: #aaa; font-size: 12px; }

.dash-role {
    font-size: 12px;
    color: var(--gold);
    background: rgba(184,134,11,.15);
    padding: 3px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 8px;
}

.dash-nav { padding: 8px 0; }

.dash-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    font-size: 14px;
    color: var(--muted);
    cursor: pointer;
    transition: all .2s;
    border-left: 3px solid transparent;
    text-decoration: none;
}

.dash-nav-item:hover, .dash-nav-item.active {
    background: var(--aged);
    color: var(--ink);
    border-left-color: var(--accent);
}

.dash-nav-item .nav-icon { font-size: 16px; width: 20px; flex-shrink: 0; }

.dash-nav-count {
    margin-left: auto;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 10px;
}

/* Dashboard Main */
.dash-page-header {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.dash-page-header h2 { font-size: 20px; font-family: var(--font-serif); }
.dash-page-header p { font-size: 13px; color: var(--muted); margin-top: 2px; }

.dash-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.dash-stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px;
    text-align: center;
}

.dash-stat-icon { font-size: 22px; margin-bottom: 6px; }
.dash-stat-num { font-size: 28px; font-weight: 700; color: var(--accent); line-height: 1; }
.dash-stat-label { font-size: 12px; color: var(--muted); margin-top: 6px; }

.dash-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.dash-card-header {
    padding: 14px 20px;
    background: var(--aged);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 15px;
}

.dash-card-body { padding: 20px; }

/* Submission table */
.submission-table { width: 100%; border-collapse: collapse; }
.submission-table th {
    text-align: left;
    padding: 10px 12px;
    background: var(--aged);
    font-size: 12px;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}
.submission-table td {
    padding: 12px;
    font-size: 13px;
    border-bottom: 1px solid var(--aged);
    vertical-align: middle;
}
.submission-table tr:last-child td { border: none; }

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}
.status-published { background: #e8f5e9; color: #2e7d32; }
.status-pending { background: #fff3e0; color: #e65100; }
.status-draft { background: #f3f4f6; color: #6b7280; }

/* Submit Form in dashboard */
.submit-form-box {
    background: linear-gradient(135deg, #1a1008, #2d1f12);
    border-radius: 8px;
    padding: 28px;
    margin-bottom: 20px;
}
.submit-form-box h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--gold-light);
    margin-bottom: 6px;
}
.submit-form-box > p { color: #aaa; font-size: 13px; margin-bottom: 20px; }

.form-control-dark {
    width: 100%;
    padding: 11px 14px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(184,134,11,.3);
    border-radius: 4px;
    font-size: 14px;
    color: #fff;
    font-family: var(--font-bengali);
    outline: none;
    transition: border-color .2s;
    margin-bottom: 12px;
}
.form-control-dark:focus { border-color: var(--gold); }
.form-control-dark::placeholder { color: #888; }
textarea.form-control-dark { min-height: 140px; resize: vertical; }

/* Notification items */
.notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--aged);
}
.notif-item:last-child { border: none; }
.notif-icon {
    width: 36px; height: 36px;
    border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}
.notif-win { background: #fff9c4; }
.notif-comment { background: #e3f2fd; }
.notif-like { background: #fce4ec; }
.notif-text p { font-size: 13px; line-height: 1.5; }
.notif-time { font-size: 11px; color: #aaa; margin-top: 3px; display: block; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
    transition: all .2s;
}

.page-numbers:hover, .page-numbers.current {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ============================================================
   GALLERY
   ============================================================ */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.album-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all .25s;
}
.album-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px var(--shadow-md); }

.album-cover {
    height: 200px;
    overflow: hidden;
}
.album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.album-card:hover .album-cover img { transform: scale(1.05); }

.album-body { padding: 14px; }
.album-title { font-size: 15px; font-weight: 600; }
.album-count { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--ink);
    color: #ccc;
    padding: 50px 0 0;
    margin-top: 60px;
    border-top: 3px solid var(--gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--gold-light);
    margin-bottom: 10px;
}
.footer-about p { font-size: 13px; line-height: 1.8; color: #aaa; }

.footer-widget h4 { color: var(--gold); margin-bottom: 14px; font-size: 14px; }
.footer-widget a {
    display: block;
    color: #aaa;
    font-size: 13px;
    margin-bottom: 8px;
    text-decoration: none;
    transition: color .2s;
}
.footer-widget a:hover { color: var(--gold-light); }

.footer-bottom {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,.1);
    text-align: center;
    font-size: 12px;
    color: #666;
}

/* ============================================================
   NOTICE / ALERTS
   ============================================================ */
.notice {
    padding: 14px 18px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 16px;
    border-left: 4px solid;
}
.notice-success { background: #e8f5e9; border-color: #2e7d32; color: #1b5e20; }
.notice-error { background: #ffebee; border-color: #c62828; color: #b71c1c; }
.notice-info { background: #e3f2fd; border-color: #1565c0; color: #0d47a1; }

/* ============================================================
   WOOCOMMERCE / PMPro OVERRIDES
   ============================================================ */
.pmpro_checkout { max-width: 700px; }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--accent);
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
}
.skip-link:focus { top: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .two-col { grid-template-columns: 1fr; }
    .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .issues-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .hero-banner { flex-direction: column; }
    .hero-featured-card { width: 100%; }
    .hero-title { font-size: 38px; }
    .articles-grid { grid-template-columns: 1fr; }
    .auth-container { grid-template-columns: 1fr; }
    .auth-side { display: none; }
    .dashboard-wrap { grid-template-columns: 1fr; }
    .dash-sidebar { position: static; }
    .dash-stats-row { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .issues-grid { grid-template-columns: repeat(2, 1fr); }
    .albums-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .header-top { flex-wrap: wrap; gap: 12px; }
    .logo-text-wrap .site-title { font-size: 20px; }
    .menu-toggle { display: flex; }
    .main-navigation { display: none; }
    .main-navigation.toggled { display: block; }
    .main-navigation ul { flex-direction: column; }
    .main-navigation > ul > li > a { border: none; border-bottom: 1px solid rgba(255,255,255,.06); }
    .hero-title { font-size: 30px; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .issues-grid { grid-template-columns: 1fr 1fr; }
    .dash-stats-row { grid-template-columns: 1fr 1fr; }
    .sidebar { grid-template-columns: 1fr; }
}

/* ================================================================
   HEADER NAV POSITION VARIANTS (Customizer-controlled)
   ================================================================ */

/* Sticky header */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Inline nav: logo + nav in same row, actions on the right */
.nav-inline .header-top--inline {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0 24px;
}

.main-navigation--inline {
    border-top: none;
    background: transparent;
    padding: 0;
}

.main-navigation--inline > ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation--inline > ul > li > a {
    padding: 8px 14px;
    font-size: 13.5px;
    border: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.main-navigation--inline > ul > li > a:hover,
.main-navigation--inline > ul > li.current-menu-item > a {
    border-bottom-color: var(--gold);
    background: transparent;
}

/* Above nav: strip below header texture, before logo row */
.nav-above .main-navigation {
    border-top: none;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: rgba(0,0,0,.25);
    padding: 2px 0;
}

.nav-above .main-navigation > ul > li > a {
    padding: 6px 16px;
    font-size: 13px;
}

/* Mobile: inline nav collapses same as default */
@media (max-width: 640px) {
    .nav-inline .header-top--inline {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
    }
    .main-navigation--inline {
        grid-column: 1 / -1;
        display: none;
    }
    .main-navigation--inline.toggled {
        display: block;
    }
    .main-navigation--inline > ul {
        flex-direction: column;
    }
}
