/* ============================================
   Matkassen24.se – Main Stylesheet
   Modern, clean, green/white/grey design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;700&display=swap');

:root {
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-200: #bbf7d0;
    --green-300: #86efac;
    --green-400: #4ade80;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-700: #15803d;
    --green-800: #166534;
    --green-900: #14532d;
    --grey-50: #f9fafb;
    --grey-100: #f3f4f6;
    --grey-200: #e5e7eb;
    --grey-300: #d1d5db;
    --grey-400: #9ca3af;
    --grey-500: #6b7280;
    --grey-600: #4b5563;
    --grey-700: #374151;
    --grey-800: #1f2937;
    --grey-900: #111827;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --font-main: 'Plus Jakarta Sans', 'DM Sans', system-ui, sans-serif;
    --transition: all 0.2s ease;
    --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.65;
    color: var(--grey-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--green-600); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--green-700); }

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }

/* ── Typography ──────────────────────────────── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: var(--grey-900); }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.35rem); }

/* ── Header / Navigation ─────────────────────── */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--grey-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.97);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--grey-900);
}
.logo-icon {
    width: 34px;
    height: 34px;
    background: var(--green-500);
    color: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
}
.logo span { color: var(--green-600); }
.nav-links { display: flex; gap: 0.25rem; align-items: center; list-style: none; }
.nav-links a {
    padding: 0.5rem 0.85rem;
    color: var(--grey-600);
    font-weight: 500;
    font-size: 0.925rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--green-700); background: var(--green-50); }
.nav-cta {
    background: var(--green-600) !important;
    color: var(--white) !important;
    padding: 0.5rem 1.1rem !important;
    border-radius: var(--radius) !important;
    font-weight: 600 !important;
}
.nav-cta:hover { background: var(--green-700) !important; }

/* Mobile menu */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--grey-700);
    font-size: 1.5rem;
}
@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--grey-200);
        box-shadow: var(--shadow-lg);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 0.75rem 1rem; width: 100%; }
}

/* Search bar */
.nav-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nav-search input {
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--grey-200);
    border-radius: var(--radius);
    font-size: 0.875rem;
    width: 180px;
    font-family: var(--font-main);
    transition: var(--transition);
}
.nav-search input:focus { outline: none; border-color: var(--green-400); box-shadow: 0 0 0 3px rgba(34,197,94,0.1); }

/* ── Hero ────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--green-50) 0%, var(--white) 50%, var(--green-50) 100%);
    padding: 4rem 0 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(34,197,94,0.07) 0%, transparent 70%);
    border-radius: 50%;
}
.hero h1 { margin-bottom: 1rem; font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
.hero h1 span { color: var(--green-600); }
.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--grey-500);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ─────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-main);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
    justify-content: center;
}
.btn-primary {
    background: var(--green-600);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(22,163,74,0.3);
}
.btn-primary:hover { background: var(--green-700); color: var(--white); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(22,163,74,0.35); }
.btn-secondary { background: var(--white); color: var(--green-700); border: 2px solid var(--green-200); }
.btn-secondary:hover { background: var(--green-50); border-color: var(--green-400); color: var(--green-700); }
.btn-outline { background: transparent; color: var(--grey-700); border: 1px solid var(--grey-300); }
.btn-outline:hover { border-color: var(--grey-400); background: var(--grey-50); color: var(--grey-700); }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1.05rem; }
.btn-danger { background: #ef4444; color: white; }
.btn-danger:hover { background: #dc2626; color: white; }

/* ── Section layout ──────────────────────────── */
.section { padding: 4rem 0; }
.section-alt { background: var(--grey-50); }
.section-green { background: var(--green-50); }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header p { color: var(--grey-500); max-width: 600px; margin: 0.5rem auto 0; }

/* ── Cards ───────────────────────────────────── */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--grey-100);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-body { padding: 1.5rem; }
.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--grey-100);
}

/* ── Grid ────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 900px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── MealBox Cards ───────────────────────────── */
.mealbox-card { display: flex; flex-direction: column; }
.mealbox-card .card-top {
    padding: 1.5rem 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.mealbox-card .box-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: var(--green-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--green-600);
    font-size: 1.3rem;
    flex-shrink: 0;
}
.mealbox-card .box-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.mealbox-card h3 { margin: 0; font-size: 1.1rem; }
.mealbox-card .box-type { font-size: 0.8rem; color: var(--grey-400); }
.mealbox-card .card-body { flex: 1; }
.mealbox-card .box-desc {
    font-size: 0.9rem;
    color: var(--grey-500);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mealbox-card .box-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.mealbox-card .meta-item { font-size: 0.85rem; color: var(--grey-600); }
.mealbox-card .meta-item strong { color: var(--grey-800); }
.mealbox-card .box-rating { color: #f59e0b; font-size: 0.95rem; margin-bottom: 1rem; }
.mealbox-card .box-rating .rating-num { color: var(--grey-700); font-weight: 700; margin-left: 0.25rem; }
.mealbox-card .card-actions {
    display: flex;
    gap: 0.75rem;
    padding: 0 1.5rem 1.5rem;
}
.mealbox-card .card-actions .btn { flex: 1; font-size: 0.85rem; padding: 0.55rem 0.5rem; }

/* ── Badges ──────────────────────────────────── */
.badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-green { background: var(--green-100); color: var(--green-700); }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-orange { background: #fef3c7; color: #b45309; }
.badge-purple { background: #ede9fe; color: #6d28d9; }
.badge-red { background: #fee2e2; color: #dc2626; }

/* ── Need / Category links ───────────────────── */
.need-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.need-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--grey-100);
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--grey-700);
    transition: var(--transition);
}
.need-link:hover { border-color: var(--green-300); background: var(--green-50); color: var(--green-700); transform: translateY(-1px); }
.need-link .icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ── Comparison Table ────────────────────────── */
.compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}
.compare-table th {
    background: var(--grey-50);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--grey-600);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 2px solid var(--grey-200);
}
.compare-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--grey-100);
    font-size: 0.9rem;
}
.compare-table tr:hover td { background: var(--green-50); }
.compare-table .box-name-cell { display: flex; align-items: center; gap: 0.75rem; }
.compare-table .box-name-cell .mini-logo {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--green-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--green-600);
    flex-shrink: 0;
}
.table-check { color: var(--green-500); font-weight: bold; }
.table-cross { color: var(--grey-300); }

/* ── Offers ──────────────────────────────────── */
.offer-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border-left: 4px solid var(--green-500);
}
.offer-card .offer-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--green-50);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
}
.offer-card h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.offer-card p { font-size: 0.9rem; color: var(--grey-500); margin-bottom: 0.5rem; }
.offer-code {
    display: inline-block;
    background: var(--green-100);
    color: var(--green-800);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}
@media (max-width: 600px) {
    .offer-card { flex-direction: column; text-align: center; }
}

/* ── Blog Cards ──────────────────────────────── */
.blog-card .card-img-wrap {
    height: 190px;
    background: linear-gradient(135deg, var(--green-50), var(--grey-100));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-300);
    font-size: 2.5rem;
}
.blog-card .card-body h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.blog-card .card-body h3 a { color: var(--grey-900); }
.blog-card .card-body h3 a:hover { color: var(--green-600); }
.blog-card .card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--grey-400);
    margin-bottom: 0.5rem;
}
.blog-card .card-excerpt { font-size: 0.9rem; color: var(--grey-500); }

/* ── FAQ Accordion ───────────────────────────── */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--grey-100);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: var(--transition);
}
.faq-item:hover { border-color: var(--grey-200); }
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.1rem 1.25rem;
    background: var(--white);
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    color: var(--grey-800);
    transition: var(--transition);
}
.faq-question:hover { background: var(--grey-50); }
.faq-question .arrow {
    font-size: 1.2rem;
    color: var(--grey-400);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-answer-inner {
    padding: 0 1.25rem 1.1rem;
    font-size: 0.9rem;
    color: var(--grey-600);
    line-height: 1.7;
}

/* ── Single Meal Box Page ────────────────────── */
.mealbox-hero {
    background: linear-gradient(to right, var(--green-50), var(--white));
    padding: 3rem 0;
}
.mealbox-hero-inner { display: flex; gap: 2.5rem; align-items: flex-start; }
.mealbox-hero .box-logo-lg {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--grey-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--green-600);
    flex-shrink: 0;
    box-shadow: var(--shadow);
}
.mealbox-hero .box-logo-lg img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.mealbox-hero .box-info h1 { margin-bottom: 0.5rem; }
.mealbox-hero .box-info p { color: var(--grey-500); margin-bottom: 1rem; max-width: 600px; }
.mealbox-detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem; }
.mealbox-content h2 { margin: 2rem 0 1rem; font-size: 1.3rem; }
.mealbox-content p { margin-bottom: 1rem; color: var(--grey-600); }
.mealbox-sidebar .sidebar-card { position: sticky; top: 90px; }
.sidebar-card {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow);
}
.sidebar-card h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.sidebar-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--grey-100); font-size: 0.9rem; }
.sidebar-row:last-child { border: none; }
.sidebar-row .label { color: var(--grey-500); }
.sidebar-row .value { font-weight: 600; color: var(--grey-800); }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1.5rem 0; }
.pros-list li, .cons-list li {
    list-style: none;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    padding-left: 1.5rem;
    position: relative;
}
.pros-list li::before { content: '✓'; position: absolute; left: 0; color: var(--green-500); font-weight: 700; }
.cons-list li::before { content: '✗'; position: absolute; left: 0; color: #ef4444; font-weight: 700; }
@media (max-width: 768px) {
    .mealbox-hero-inner { flex-direction: column; }
    .mealbox-detail-grid { grid-template-columns: 1fr; }
    .pros-cons { grid-template-columns: 1fr; }
}

/* ── Category / Need page ────────────────────── */
.category-hero {
    background: var(--green-50);
    padding: 3rem 0 2.5rem;
    text-align: center;
}
.category-hero p { color: var(--grey-500); max-width: 600px; margin: 0.5rem auto 0; }

/* ── Blog single ─────────────────────────────── */
.blog-single { max-width: 780px; margin: 0 auto; padding: 2.5rem 1.25rem; }
.blog-single h1 { margin-bottom: 0.75rem; }
.blog-single .post-meta {
    display: flex;
    gap: 1.25rem;
    font-size: 0.85rem;
    color: var(--grey-400);
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--grey-100);
}
.blog-single .post-content { font-size: 1.05rem; line-height: 1.8; color: var(--grey-700); }
.blog-single .post-content h2 { margin: 2rem 0 0.75rem; }
.blog-single .post-content p { margin-bottom: 1.25rem; }

/* ── Contact form ────────────────────────────── */
.contact-form { max-width: 640px; margin: 0 auto; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--grey-700);
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--grey-200);
    border-radius: var(--radius);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--green-400);
    box-shadow: 0 0 0 3px rgba(34,197,94,0.1);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.honeypot { position: absolute; left: -9999px; }

/* ── Alerts ──────────────────────────────────── */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}
.alert-success { background: var(--green-50); border: 1px solid var(--green-200); color: var(--green-800); }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

/* ── Filters ─────────────────────────────────── */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: var(--grey-50);
    border-radius: var(--radius-lg);
}
.filter-bar label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--grey-600);
}
.filter-bar select {
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 0.875rem;
    background: var(--white);
}
.filter-btn {
    padding: 0.45rem 1rem;
    border: 1px solid var(--grey-200);
    background: var(--white);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-main);
    cursor: pointer;
    color: var(--grey-600);
    transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: var(--green-600); color: var(--white); border-color: var(--green-600); }

/* ── Footer ──────────────────────────────────── */
.site-footer {
    background: var(--grey-900);
    color: var(--grey-300);
    padding: 3.5rem 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand { font-size: 0.9rem; line-height: 1.7; }
.footer-brand .logo { color: var(--white); margin-bottom: 1rem; }
.footer-brand .logo span { color: var(--green-400); }
.footer-col h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--grey-400); font-size: 0.875rem; }
.footer-col a:hover { color: var(--green-400); }
.footer-bottom {
    margin-top: 2.5rem;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    color: var(--grey-500);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ── Pagination ──────────────────────────────── */
.pagination ul {
    display: flex;
    gap: 0.35rem;
    justify-content: center;
    list-style: none;
    margin: 2.5rem 0;
}
.pagination li a {
    display: block;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--grey-600);
}
.pagination li a:hover { background: var(--green-50); border-color: var(--green-300); }
.pagination li.active a { background: var(--green-600); color: var(--white); border-color: var(--green-600); }

/* ── Page content ────────────────────────────── */
.page-content { max-width: 800px; margin: 0 auto; padding: 2.5rem 1.25rem; }
.page-content h2 { margin: 2rem 0 0.75rem; }
.page-content p { margin-bottom: 1rem; color: var(--grey-600); line-height: 1.75; }
.page-header { background: var(--grey-50); padding: 2.5rem 0; text-align: center; }

/* ── Search results ──────────────────────────── */
.search-results-list .result-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--grey-100);
}
.search-results-list .result-item h3 { margin-bottom: 0.25rem; }
.search-results-list .result-item h3 a { color: var(--grey-900); }
.search-results-list .result-item p { font-size: 0.9rem; color: var(--grey-500); }

/* ── 404 ─────────────────────────────────────── */
.error-page {
    text-align: center;
    padding: 5rem 1.25rem;
}
.error-page h1 { font-size: 5rem; color: var(--green-200); margin-bottom: 1rem; }
.error-page p { color: var(--grey-500); margin-bottom: 2rem; }

/* ── Admin styles ────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 240px;
    background: var(--grey-900);
    color: var(--grey-300);
    padding: 1.5rem 0;
    flex-shrink: 0;
}
.admin-sidebar .sidebar-logo {
    padding: 0 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1rem;
}
.admin-sidebar .sidebar-logo a { color: var(--white); font-weight: 700; font-size: 1.1rem; }
.admin-sidebar .sidebar-logo a span { color: var(--green-400); }
.admin-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.25rem;
    color: var(--grey-400);
    font-size: 0.9rem;
    transition: var(--transition);
}
.admin-sidebar nav a:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.admin-sidebar nav a.active { color: var(--green-400); background: rgba(34,197,94,0.1); }
.admin-main { flex: 1; background: var(--grey-50); }
.admin-topbar {
    background: var(--white);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--grey-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-content { padding: 2rem; }
.admin-content h1 { font-size: 1.5rem; margin-bottom: 1.5rem; }

/* Admin table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.admin-table th {
    background: var(--grey-50);
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--grey-500);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.admin-table td { padding: 0.75rem 1rem; border-top: 1px solid var(--grey-100); font-size: 0.9rem; }
.admin-table tr:hover td { background: var(--grey-50); }
.admin-table .actions { display: flex; gap: 0.5rem; }
.admin-table .actions a, .admin-table .actions button {
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-main);
}
.status-active { color: var(--green-600); font-weight: 600; }
.status-inactive { color: var(--grey-400); }
.status-draft { color: #b45309; font-weight: 600; }
.status-published { color: var(--green-600); font-weight: 600; }

/* Admin form */
.admin-form { max-width: 900px; background: var(--white); padding: 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.admin-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.admin-form .form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .admin-form .form-row, .admin-form .form-row-3 { grid-template-columns: 1fr; } }
.admin-form .form-group .checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.admin-form .form-group .checkbox-row label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 400;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Admin login */
.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grey-50);
}
.login-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}
.login-card h1 { text-align: center; font-size: 1.4rem; margin-bottom: 1.5rem; }
.login-card .btn { width: 100%; margin-top: 0.5rem; }

/* Responsive admin */
@media (max-width: 768px) {
    .admin-sidebar { width: 60px; }
    .admin-sidebar .sidebar-logo a span, .admin-sidebar nav a span { display: none; }
    .admin-content { padding: 1rem; }
}

/* ── Utilities ───────────────────────────────── */
.text-center { text-align: center; }
.text-green { color: var(--green-600); }
.text-grey { color: var(--grey-500); }
.text-sm { font-size: 0.875rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
