/* BLOGS PORTAL - Dark Green & Gold Theme */
:root {
    --primary: #1B3B2F;
    --primary-dark: #0F2419;
    --primary-light: #2A5A47;
    --accent: #D4AF37;
    --accent-dark: #B8932E;
    --accent-light: #E6C757;
    --cream: #F8F5EE;
    --text-dark: #1A2B23;
    --text-muted: #6B7B72;
    --border: #E0DBC9;
    --success: #2E7D32;
    --danger: #C62828;
    --warning: #F9A825;
    --info: #0288D1;
}

* { box-sizing: border-box; }
body { font-family: 'Lora', Georgia, serif; background: var(--cream); color: var(--text-dark); line-height: 1.65; }
h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', Georgia, serif; color: var(--primary); font-weight: 700; letter-spacing: -0.01em; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

/* BUTTONS */
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--cream); font-weight: 600; padding: 0.55rem 1.5rem; border-radius: 4px; transition: all 0.25s; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--accent-light); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(27, 59, 47, 0.25); }
.btn-accent, .btn-warning { background: var(--accent); border-color: var(--accent); color: var(--primary-dark); font-weight: 700; padding: 0.55rem 1.5rem; border-radius: 4px; }
.btn-accent:hover, .btn-warning:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--primary-dark); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); color: var(--cream); }

/* PUBLIC NAV */
.public-nav { background: var(--primary); padding: 1rem 0; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.public-nav .navbar-brand { font-family: 'Playfair Display', serif; font-size: 1.7rem; color: var(--accent); font-weight: 700; }
.public-nav .navbar-brand:hover { color: var(--accent-light); }
.public-nav .nav-link { color: var(--cream) !important; font-weight: 500; margin: 0 0.4rem; position: relative; }
.public-nav .nav-link::after { content: ''; position: absolute; bottom: -4px; left: 50%; width: 0; height: 2px; background: var(--accent); transition: all 0.3s; }
.public-nav .nav-link:hover::after { width: 80%; left: 10%; }
.public-nav .navbar-toggler { border-color: var(--accent); }
.public-nav .navbar-toggler-icon { filter: invert(1); }

/* HERO */
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: var(--cream); padding: 6rem 0; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%); }
.hero h1 { color: var(--cream); font-size: clamp(2rem, 5vw, 3.8rem); margin-bottom: 1rem; }
.hero h1 .accent { color: var(--accent); font-style: italic; }
.hero .lead { color: rgba(248, 245, 238, 0.85); font-size: 1.2rem; }
.hero-search { margin-top: 2rem; max-width: 500px; }
.hero-search input { border-radius: 50px 0 0 50px; border: none; padding: 0.85rem 1.5rem; }
.hero-search button { border-radius: 0 50px 50px 0; background: var(--accent); border: none; color: var(--primary-dark); padding: 0 1.5rem; font-weight: 700; }

/* BLOG CARDS */
.blog-card { background: white; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.04); transition: all 0.3s; height: 100%; border: 1px solid var(--border); }
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(27, 59, 47, 0.15); border-color: var(--accent); }
.blog-card-img { width: 100%; height: 220px; object-fit: cover; }
.blog-card-body { padding: 1.5rem; }
.blog-card-category { display: inline-block; color: var(--accent-dark); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.blog-card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; line-height: 1.35; }
.blog-card h3 a { color: var(--primary-dark); }
.blog-card h3 a:hover { color: var(--accent-dark); }
.blog-card-meta { color: var(--text-muted); font-size: 0.85rem; border-top: 1px solid var(--border); padding-top: 0.85rem; margin-top: 1rem; display: flex; justify-content: space-between; }

/* SECTION TITLE */
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: 2.4rem; margin-bottom: 0.5rem; }
.section-title .ornament { color: var(--accent); font-size: 1.5rem; letter-spacing: 0.5em; }

/* FOOTER */
.public-footer { background: var(--primary-dark); color: rgba(248, 245, 238, 0.7); padding: 3.5rem 0 1.5rem; margin-top: 5rem; }
.public-footer h5 { color: var(--accent); margin-bottom: 1rem; font-size: 1.05rem; letter-spacing: 0.1em; text-transform: uppercase; }
.public-footer a { color: rgba(248, 245, 238, 0.7); }
.public-footer a:hover { color: var(--accent); }
.public-footer .footer-bottom { border-top: 1px solid rgba(212, 175, 55, 0.2); padding-top: 1.5rem; margin-top: 2rem; text-align: center; font-size: 0.85rem; }

/* DASHBOARD LAYOUT */
.dash-wrapper { display: flex; min-height: 100vh; }
.dash-sidebar { width: 260px; background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%); color: var(--cream); flex-shrink: 0; padding: 1.5rem 0; position: fixed; height: 100vh; overflow-y: auto; z-index: 100; }
.dash-sidebar-brand { padding: 0 1.5rem 1.5rem; border-bottom: 1px solid rgba(212, 175, 55, 0.2); margin-bottom: 1rem; }
.dash-sidebar-brand a { color: var(--accent); font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; display: block; }
.dash-sidebar-brand small { color: rgba(248, 245, 238, 0.6); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; }
.dash-sidebar-section { padding: 0.85rem 1.5rem 0.5rem; color: rgba(212, 175, 55, 0.7); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; }
.dash-sidebar a.dash-link { display: flex; align-items: center; padding: 0.7rem 1.5rem; color: rgba(248, 245, 238, 0.85); border-left: 3px solid transparent; font-size: 0.95rem; transition: all 0.2s; text-decoration: none; }
.dash-sidebar a.dash-link:hover { background: rgba(212, 175, 55, 0.08); color: var(--accent); border-left-color: var(--accent); }
.dash-sidebar a.dash-link.active { background: rgba(212, 175, 55, 0.12); color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.dash-link-icon { width: 24px; margin-right: 0.7rem; text-align: center; font-weight: bold; }
.dash-main { margin-left: 260px; flex-grow: 1; background: #f5f3ec; min-height: 100vh; }
.dash-topbar { background: white; padding: 0.85rem 2rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.dash-topbar-title { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--primary); margin: 0; }
.dash-content { padding: 2rem; }

/* STATS */
.stat-card { background: white; border-radius: 6px; padding: 1.5rem; border: 1px solid var(--border); border-left: 4px solid var(--accent); transition: transform 0.2s; }
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.06); }
.stat-card-label { color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.stat-card-value { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--primary); font-weight: 700; line-height: 1; }
.content-card { background: white; border-radius: 6px; padding: 1.75rem; border: 1px solid var(--border); margin-bottom: 1.5rem; }
.content-card-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 1rem; margin-bottom: 1.25rem; }
.content-card-header h3 { margin: 0; font-size: 1.25rem; }

/* FORMS */
.form-control, .form-select { border: 1px solid var(--border); border-radius: 4px; padding: 0.55rem 0.85rem; font-family: inherit; }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.2); }
.form-label { color: var(--primary); font-weight: 600; font-size: 0.9rem; }

/* TABLES */
.table { background: white; border-radius: 6px; overflow: hidden; }
.table thead th { background: var(--primary); color: var(--cream); border: none; font-weight: 600; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.08em; padding: 0.85rem 1rem; }
.table tbody td { padding: 0.85rem 1rem; vertical-align: middle; }
.table tbody tr:hover { background: rgba(212, 175, 55, 0.04); }

/* ALERTS */
.alert { border: none; border-left: 4px solid; border-radius: 4px; }
.alert-success { background: #E8F5E9; border-left-color: var(--success); color: #1B5E20; }
.alert-danger { background: #FFEBEE; border-left-color: var(--danger); color: #B71C1C; }
.alert-warning { background: #FFF8E1; border-left-color: var(--warning); color: #F57F17; }
.alert-info { background: #E1F5FE; border-left-color: var(--info); color: #01579B; }

/* AUTH */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); padding: 2rem 0; }
.auth-card { background: var(--cream); border-radius: 8px; padding: 3rem; box-shadow: 0 20px 60px rgba(0,0,0,0.3); border-top: 4px solid var(--accent); }
.auth-brand { text-align: center; margin-bottom: 2rem; }
.auth-brand h1 { color: var(--primary); font-size: 1.8rem; margin-bottom: 0.25rem; }
.auth-brand small { color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.7rem; }

/* PRICING */
.package-card { background: white; border: 2px solid var(--border); border-radius: 8px; padding: 2.5rem 2rem; text-align: center; transition: all 0.3s; height: 100%; position: relative; }
.package-card.featured { border-color: var(--accent); transform: scale(1.05); box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2); }
.package-card.featured::before { content: 'POPULAR'; position: absolute; top: 1rem; right: 1rem; background: var(--accent); color: var(--primary-dark); padding: 0.25rem 0.75rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; border-radius: 3px; }
.package-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.package-card.featured:hover { transform: scale(1.05) translateY(-6px); }
.package-name { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--primary); margin-bottom: 0.5rem; }
.package-price { font-family: 'Playfair Display', serif; font-size: 3rem; color: var(--accent-dark); font-weight: 700; line-height: 1; margin: 1rem 0; }
.package-price small { font-size: 1rem; color: var(--text-muted); }
.package-blogs { color: var(--primary); font-size: 1.1rem; font-weight: 600; margin-bottom: 1.5rem; }
.package-features { list-style: none; padding: 0; margin: 1.5rem 0; text-align: left; }
.package-features li { padding: 0.4rem 0; border-bottom: 1px dashed var(--border); padding-left: 1.5rem; position: relative; }
.package-features li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: bold; }

/* ARTICLE */
.article-hero { padding: 4rem 0 2rem; background: var(--primary); color: var(--cream); }
.article-hero h1 { color: var(--cream); font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 1rem; }
.article-hero .meta { color: rgba(248, 245, 238, 0.75); }
.article-hero .meta a { color: var(--accent); }
.article-body { background: white; padding: 3rem; border-radius: 6px; margin-top: -2rem; position: relative; box-shadow: 0 4px 24px rgba(0,0,0,0.06); font-size: 1.08rem; line-height: 1.85; }
.article-body img { max-width: 100%; height: auto; border-radius: 4px; }
.article-body h2, .article-body h3 { margin-top: 2rem; }
.article-body p { margin-bottom: 1.25rem; }
.article-featured { width: 100%; max-height: 500px; object-fit: cover; border-radius: 6px; margin-bottom: 2rem; }

/* BADGES */
.badge-quota { background: var(--accent); color: var(--primary-dark); padding: 0.4rem 1rem; border-radius: 50px; font-weight: 700; font-size: 0.85rem; }
.user-role-badge { display: inline-block; padding: 0.2rem 0.6rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; border-radius: 3px; }
.role-superadmin { background: var(--accent); color: var(--primary-dark); }
.role-reseller { background: var(--primary); color: var(--cream); }
.role-user { background: #ddd; color: #333; }

/* CATEGORY TREE */
.cat-tree { list-style: none; padding-left: 0; }
.cat-tree ul { list-style: none; padding-left: 1.5rem; border-left: 2px dashed var(--border); margin-left: 0.5rem; }
.cat-tree li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.cat-tree li:last-child { border-bottom: none; }
.cat-tree .cat-name { font-weight: 600; color: var(--primary); }
.cat-tree .cat-actions a { font-size: 0.85rem; margin-left: 0.5rem; }

/* USER MENU */
.user-menu { display: flex; align-items: center; gap: 0.75rem; }
.user-avatar-sm { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }

@media (max-width: 991.98px) {
    .dash-sidebar { transform: translateX(-100%); transition: transform 0.3s; }
    .dash-sidebar.open { transform: translateX(0); }
    .dash-main { margin-left: 0; }
    .package-card.featured { transform: none; }
    .package-card.featured:hover { transform: translateY(-6px); }
}

.divider-gold { display: inline-block; width: 60px; height: 3px; background: var(--accent); margin: 1rem 0; }
.text-accent { color: var(--accent-dark) !important; }
.bg-primary-custom { background: var(--primary) !important; color: var(--cream); }
.bg-accent-custom { background: var(--accent) !important; color: var(--primary-dark); }
