/* ═══════════════════════════════════════════════════════════════
   Enviropreneur — Custom Styles
   Global overrides, animations, and component styles
   ═══════════════════════════════════════════════════════════════ */

/* ─── Font Enforcement ─────────────────────────────────────── */
*, *::before, *::after {
    font-family: Arial, Helvetica, sans-serif !important;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

/* ─── Color Variables ──────────────────────────────────────── */
:root {
    --primary-green: #1B5E20;
    --primary-green-light: #2E7D32;
    --primary-green-dark: #0D3B12;
    --accent-gold: #C8A951;
    --accent-gold-light: #D4BB6E;
    --accent-gold-dark: #A8893A;
    --bg-cream: #FAFAF5;
    --bg-warm: #F5F0E8;
    --dark: #1A1A1A;
    --dark-muted: #2D2D2D;
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-muted: #6B7280;
    --border-light: #E5E7E1;
    --card-bg: #FFFFFF;
    --card-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-cream);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green-light);
}

/* ─── Selection ────────────────────────────────────────────── */
::selection {
    background: var(--primary-green);
    color: #fff;
}

/* ─── Links ────────────────────────────────────────────────── */
a {
    transition: var(--transition-base);
}

/* ─── Animations ───────────────────────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes shimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-fade-in { animation: fadeIn 0.6s ease-out forwards; }
.animate-fade-in-up { animation: fadeInUp 0.6s ease-out forwards; }
.animate-fade-in-down { animation: fadeInDown 0.5s ease-out forwards; }
.animate-slide-left { animation: slideInLeft 0.6s ease-out forwards; }
.animate-slide-right { animation: slideInRight 0.6s ease-out forwards; }
.animate-scale-in { animation: scaleIn 0.5s ease-out forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }

/* Staggered animation delays */
.delay-100 { animation-delay: 0.1s; opacity: 0; }
.delay-200 { animation-delay: 0.2s; opacity: 0; }
.delay-300 { animation-delay: 0.3s; opacity: 0; }
.delay-400 { animation-delay: 0.4s; opacity: 0; }
.delay-500 { animation-delay: 0.5s; opacity: 0; }
.delay-600 { animation-delay: 0.6s; opacity: 0; }

/* ─── Card Components ──────────────────────────────────────── */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-base);
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image {
    transform: scale(1.05);
}

/* ─── Category Badge ───────────────────────────────────────── */
.category-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 4px;
    background: var(--primary-green);
    color: #fff;
}

.category-badge.eco-design { background: #2E7D32; }
.category-badge.environment { background: #1565C0; }
.category-badge.home-garden { background: #E65100; }
.category-badge.newsletter { background: var(--accent-gold); color: var(--dark); }

/* ─── Button Styles ────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    border: none;
    line-height: 1.5;
}

.btn-primary {
    background: var(--primary-green);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-green-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(27, 94, 32, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}
.btn-outline:hover {
    background: var(--primary-green);
    color: #fff;
    transform: translateY(-2px);
}

.btn-gold {
    background: var(--accent-gold);
    color: var(--dark);
}
.btn-gold:hover {
    background: var(--accent-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(200, 169, 81, 0.3);
}

.btn-dark {
    background: var(--dark);
    color: #fff;
}
.btn-dark:hover {
    background: var(--dark-muted);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

/* ─── Section Styles ───────────────────────────────────────── */
.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.7;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 2px;
    margin: 16px 0;
}

/* ─── Hero Section ─────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, var(--primary-green-dark) 0%, var(--primary-green) 50%, var(--primary-green-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-slider {
    position: relative;
}

.hero-slide {
    display: none;
    animation: fadeIn 0.55s ease;
}

.hero-slide.is-active {
    display: grid;
}

.hero-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
}

.hero-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: all 0.25s ease;
}

.hero-dot:hover,
.hero-dot:focus-visible {
    background: rgba(255, 255, 255, 0.8);
    outline: none;
}

.hero-dot.is-active {
    width: 28px;
    background: #fff;
    border-color: #fff;
}

@media (max-width: 1024px) {
    .hero-slider-dots {
        margin-top: 20px;
    }
}

/* ─── Navigation ───────────────────────────────────────────── */
.nav-link {
    position: relative;
    padding: 8px 0;
    font-weight: 500;
    transition: var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ─── Newsletter Popup ─────────────────────────────────────── */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.popup-overlay.active {
    display: flex;
}

.popup-modal {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    max-width: 780px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    animation: scaleIn 0.4s ease;
    position: relative;
}

.popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #333;
    transition: var(--transition-base);
    z-index: 10;
}

.popup-close:hover {
    background: rgba(0,0,0,0.2);
    transform: rotate(90deg);
}

/* ─── Form Inputs ──────────────────────────────────────────── */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition-base);
    background: #fff;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1);
}

.form-input::placeholder {
    color: #aaa;
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

/* ─── Toast / Notification ─────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 24px;
    border-radius: 10px;
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    z-index: 10000;
    animation: fadeInUp 0.4s ease;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.toast-success { background: var(--primary-green); }
.toast-error { background: #dc2626; }
.toast-info { background: #2563eb; }

/* ─── Responsive Video Container ───────────────────────────── */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ─── Blog Content Styles ──────────────────────────────────── */
.prose h1 { font-size: 2.2rem; font-weight: 800; margin: 1.5em 0 0.5em; color: var(--text-primary); }
.prose h2 { font-size: 1.7rem; font-weight: 700; margin: 1.3em 0 0.5em; color: var(--text-primary); }
.prose h3 { font-size: 1.3rem; font-weight: 600; margin: 1.2em 0 0.4em; color: var(--text-primary); }
.prose p { margin: 0 0 1.2em; line-height: 1.8; color: var(--text-secondary); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.prose li { margin-bottom: 0.4em; line-height: 1.7; color: var(--text-secondary); }
.prose blockquote {
    border-left: 4px solid var(--accent-gold);
    padding: 16px 24px;
    margin: 1.5em 0;
    background: var(--bg-warm);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-secondary);
}
.prose img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1.5em 0;
}
.prose a {
    color: var(--primary-green);
    text-decoration: underline;
}
.prose a:hover {
    color: var(--primary-green-light);
}

/* Single post readability tuning */
.post-body {
    font-size: clamp(1rem, 0.98rem + 0.2vw, 1.06rem);
}

.post-body p {
    line-height: 1.9;
    color: #334155;
}

.post-body h2,
.post-body h3 {
    scroll-margin-top: 100px;
}

.post-body img {
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.post-body blockquote {
    background: #f8f6ef;
    border-left-width: 5px;
}

/* ─── Share Buttons ────────────────────────────────────────── */
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    color: var(--text-muted);
    transition: var(--transition-base);
    text-decoration: none;
}

.share-btn:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    transform: translateY(-2px);
}

/* ─── Pagination ───────────────────────────────────────────── */
.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    border: 2px solid var(--border-light);
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-base);
    text-decoration: none;
}

.pagination-link:hover,
.pagination-link.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: #fff;
}

/* ─── Tab Navigation ───────────────────────────────────────── */
.tab-btn {
    padding: 10px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-base);
}

.tab-btn:hover {
    color: var(--primary-green);
    background: rgba(27, 94, 32, 0.05);
}

.tab-btn.active {
    background: var(--primary-green);
    color: #fff;
    border-color: var(--primary-green);
}

/* ─── Search Overlay ───────────────────────────────────────── */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 9998;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
}

.search-overlay.active {
    display: flex;
}

/* ─── Mobile Menu ──────────────────────────────────────────── */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: #fff;
    z-index: 9998;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9997;
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

/* ─── Admin Panel Styles ───────────────────────────────────── */
.admin-sidebar {
    width: 260px;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--dark) 0%, var(--primary-green-dark) 100%);
    transition: var(--transition-base);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-base);
    border-radius: 8px;
    margin: 2px 12px;
}

.admin-sidebar-link:hover,
.admin-sidebar-link.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.admin-content {
    margin-left: 260px;
    min-height: 100vh;
    background: #f3f4f6;
    transition: var(--transition-base);
}

.admin-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: var(--transition-base);
}

.admin-stat-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-light);
}

.admin-table td {
    padding: 12px 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
    color: var(--text-secondary);
}

.admin-table tr:hover td {
    background: #fafafa;
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-published { background: #dcfce7; color: #166534; }
.status-draft { background: #fef3c7; color: #92400e; }
.status-active { background: #dcfce7; color: #166534; }
.status-unread { background: #dbeafe; color: #1e40af; }

/* ─── Loading State ────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 936px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* ─── Print Styles ─────────────────────────────────────────── */
@media print {
    .no-print, nav, footer, .popup-overlay { display: none !important; }
    body { font-size: 12pt; }
    a { text-decoration: none; color: #000; }
}

/* ─── Admin Mobile ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        width: 260px;
    }
    .admin-sidebar.active {
        transform: translateX(0);
    }
    .admin-content {
        margin-left: 0;
    }
}

/* ─── Scheduled Status Badge ──────────────────────────────── */
.status-scheduled { background: #fef3c7; color: #92400e; }

/* ─── Reading Progress Bar ─────────────────────────────────── */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: var(--primary-green);
    z-index: 9999;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ─── Bookmark Button ──────────────────────────────────────── */
.bookmark-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    color: var(--text-muted);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.bookmark-btn:hover {
    transform: scale(1.15);
    background: #fff;
}

.bookmark-btn.bookmarked {
    color: var(--primary-green);
}

.bookmark-btn svg {
    width: 18px;
    height: 18px;
}

/* Card needs relative positioning for bookmark */
.card {
    position: relative;
}

/* ─── Dark Mode Overrides ──────────────────────────────────── */
.dark .card {
    background: #1f2937;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.dark .card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.dark .section-title {
    color: #f3f4f6;
}

.dark .section-subtitle {
    color: #9ca3af;
}

.dark .form-input {
    background: #1f2937;
    border-color: #374151;
    color: #f3f4f6;
}

.dark .form-input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.2);
}

.dark .form-input::placeholder {
    color: #6b7280;
}

.dark .prose p,
.dark .prose li {
    color: #d1d5db;
}

.dark .prose h1,
.dark .prose h2,
.dark .prose h3 {
    color: #f3f4f6;
}

.dark .prose a {
    color: #4ade80;
}

.dark .prose blockquote {
    background: #1f2937;
    border-left-color: var(--accent-gold);
    color: #d1d5db;
}

.dark .post-body p,
.dark .post-body li {
    color: #d1d5db;
}

.dark .post-body img {
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.dark .post-body blockquote {
    background: #111827;
}

.dark .share-btn {
    border-color: #374151;
    color: #9ca3af;
}

.dark .share-btn:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.dark .pagination-link {
    border-color: #374151;
    color: #d1d5db;
}

.dark .pagination-link:hover,
.dark .pagination-link.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: #fff;
}

.dark .tab-btn {
    color: #9ca3af;
}

.dark .tab-btn:hover {
    color: var(--primary-green);
    background: rgba(27, 94, 32, 0.1);
}

.dark .tab-btn.active {
    background: var(--primary-green);
    color: #fff;
}

.dark .bookmark-btn {
    background: rgba(31, 41, 55, 0.9);
    color: #9ca3af;
}

.dark .bookmark-btn:hover {
    background: #374151;
}

.dark .bookmark-btn.bookmarked {
    color: #4ade80;
}

.dark ::-webkit-scrollbar-track {
    background: #111827;
}

.dark .btn-outline {
    color: #4ade80;
    border-color: #4ade80;
}

.dark .btn-outline:hover {
    background: var(--primary-green);
    color: #fff;
}

/* ─── No-scrollbar utility ─────────────────────────────────── */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ─── Line clamp ───────────────────────────────────────────── */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN DASHBOARD LAYOUT
   ═══════════════════════════════════════════════════════════════ */

:root {
    --admin-sidebar-width: 260px;
    --admin-sidebar-bg: #1A1A1A;
}

/* Sidebar Wrapper */
.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--admin-sidebar-width);
    height: 100vh;
    background-color: var(--admin-sidebar-bg);
    color: #fff;
    z-index: 50;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sidebar Links */
.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.admin-sidebar-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

.admin-sidebar-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.08);
    border-left-color: var(--accent-gold);
}

.admin-sidebar-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Main Content Area */
.admin-content {
    min-height: 100vh;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #f3f4f6;
}

/* Stat Cards */
.admin-stat-card {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Mobile vs Desktop Behavior */
@media (max-width: 767px) {
    /* Hide off-canvas on mobile */
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    /* Reveal sidebar when active via JS toggle */
    .admin-sidebar.active {
        transform: translateX(0);
        box-shadow: 10px 0 20px rgba(0,0,0,0.5);
    }
    
    .admin-content {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    /* Push content over to make room for fixed sidebar */
    .admin-content {
        margin-left: var(--admin-sidebar-width);
    }
}
