/* ============================================
   RecipeSpinoff - Main Stylesheet
   ============================================ */

:root {
    --primary-color: #f97316;
    --primary-hover: #ea580c;
    --text-dark: #1a1a1a;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --bg-light: #f9fafb;
    --header-bg: #1a1a1a;
}

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

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ============================================
   HEADER
   ============================================ */
.main-header {
    background: var(--header-bg);
    padding: 10px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.main-header-logo {
    display: flex;
    align-items: center;
    gap: 0;
}

.main-header-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.main-header-logo img {
    height: 28px;
}

.main-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ============================================
   ACCOUNT DROPDOWN
   ============================================ */
.account-dropdown {
    position: relative;
}

.account-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    color: #999;
    transition: all 0.2s;
}

.account-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.account-btn:hover svg {
    stroke: #fff;
}

.account-btn .dropdown-arrow {
    display: none;
}

.dropdown-menu {
    display: none !important;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.dropdown-menu.active {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-user-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.dropdown-user-email {
    font-size: 0.875rem;
    color: var(--text-light);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

.dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.75rem 1.25rem !important;
    color: var(--text-dark) !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
    font-size: 0.95rem !important;
    border: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    cursor: pointer;
    background: none;
}

.dropdown-item:hover {
    background: var(--bg-light) !important;
    color: var(--primary-color) !important;
}

.dropdown-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.dropdown-item:hover svg {
    opacity: 1;
    stroke: var(--primary-color);
}

.dropdown-item.logout-item {
    color: #dc2626 !important;
}

.dropdown-item.logout-item:hover {
    background: #fee2e2 !important;
    color: #991b1b !important;
}

.dropdown-item.logout-item svg {
    stroke: #dc2626;
}

.dropdown-item.logout-item:hover svg {
    stroke: #991b1b;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: #1a1a1a;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-logo {
    height: 20px;
    opacity: 0.6;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.footer-right {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    flex: 1;
    overflow-y: auto;
}

.under-construction {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 40px 24px;
}

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

.under-construction-icon {
    margin-bottom: 24px;
}

.under-construction h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.under-construction p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 500px;
    line-height: 1.6;
}

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

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

.modal-box {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 4px 8px;
    border-radius: 4px;
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.modal-box h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
}

.form-group input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    min-height: 1.25rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   ADMIN - LOADING
   ============================================ */
.admin-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    color: var(--text-light);
    width: 100%;
}

.admin-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   ADMIN - LAYOUT
   ============================================ */
.admin-dashboard,
.admin-section {
    padding: 32px 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-header h1 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
}

.admin-back-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.admin-back-link:hover {
    text-decoration: underline;
}

/* ============================================
   ADMIN - CARD GRID
   ============================================ */
.admin-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.admin-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    color: var(--text-dark);
}

.admin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.admin-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 12px 0 4px;
}

.admin-card-description {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.4;
    margin-bottom: 16px;
}

.admin-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-card-icon.users { background: #dbeafe; }
.admin-card-icon.users svg { stroke: #2563eb; }

.admin-card-icon.support { background: #fef3c7; }
.admin-card-icon.support svg { stroke: #d97706; }

.admin-card-icon.seo { background: #d1fae5; }
.admin-card-icon.seo svg { stroke: #059669; }

.admin-card-icon.email { background: #fce7f3; }
.admin-card-icon.email svg { stroke: #db2777; }

.admin-card-icon.database { background: #ede9fe; }
.admin-card-icon.database svg { stroke: #7c3aed; }

.admin-card-icon.mobile { background: #e0e7ff; }
.admin-card-icon.mobile svg { stroke: #4f46e5; }

.admin-card-icon.blog { background: #fff7ed; }
.admin-card-icon.blog svg { stroke: #ea580c; }

.admin-card-icon.manual { background: #f0fdf4; }
.admin-card-icon.manual svg { stroke: #16a34a; }

.admin-card-icon.business { background: #fefce8; }
.admin-card-icon.business svg { stroke: #ca8a04; }

.admin-card-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.admin-card-stat .value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.admin-card-stat .label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   ADMIN - TABLES
   ============================================ */
.admin-table-container {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

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

.admin-table thead {
    background: var(--bg-light);
}

.admin-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

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

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background: var(--bg-light);
}

/* ============================================
   ADMIN - BADGES
   ============================================ */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-critical {
    background: #fee2e2;
    color: #991b1b;
}

.badge-high {
    background: #fff7ed;
    color: #c2410c;
}

.badge-medium {
    background: #dbeafe;
    color: #1e40af;
}

/* ============================================
   ADMIN - EMPTY STATE
   ============================================ */
.admin-empty-state {
    text-align: center;
    padding: 60px 24px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.admin-empty-state svg {
    margin-bottom: 16px;
}

.admin-empty-state h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.admin-empty-state p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ============================================
   SEO STRATEGY PAGE
   ============================================ */
.strategy-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.strategy-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.strategy-card-header h2 {
    font-size: 1.15rem;
    margin: 0;
}

.strategy-card-header.mission { background: #fef3c7; }
.strategy-card-header.mission svg { stroke: #d97706; }
.strategy-card-header.keywords { background: #dbeafe; }
.strategy-card-header.keywords svg { stroke: #2563eb; }
.strategy-card-header.rule { background: #d1fae5; }
.strategy-card-header.rule svg { stroke: #059669; }
.strategy-card-header.checklist { background: #ede9fe; }
.strategy-card-header.checklist svg { stroke: #7c3aed; }
.strategy-card-header.funnel { background: #fce7f3; }
.strategy-card-header.funnel svg { stroke: #db2777; }

.strategy-card-body {
    padding: 1.5rem;
}

/* Mission */
.mission-quote {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 1.25rem 1.5rem;
    border-radius: 0 8px 8px 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin: 0 0 1.5rem;
}

.strategy-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.pillar {
    text-align: center;
    padding: 1.25rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.pillar-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.pillar h4 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.pillar p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* Strategy notes */
.strategy-note {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.strategy-footnote {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 1rem;
    font-style: italic;
}

/* Keywords table */
.keywords-table-container {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.keywords-table td:first-child {
    width: 40px;
    text-align: center;
    color: var(--text-light);
}

/* Rule box */
.rule-box {
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
}

.rule-box h3 {
    font-size: 1.05rem;
    color: #166534;
    margin-bottom: 8px;
}

.rule-box p {
    font-size: 0.9rem;
    color: #15803d;
    line-height: 1.5;
}

/* Example box */
.example-box {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
}

.example-box h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.example-box p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keyword-tag {
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
}

.keyword-tag.hit {
    background: #d1fae5;
    color: #065f46;
}

.keyword-tag.miss {
    background: #f3f4f6;
    color: #9ca3af;
}

/* Checklist */
.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.checklist-number {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.checklist-item strong {
    display: block;
    margin-bottom: 4px;
}

.checklist-item p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.4;
    margin: 0;
}

/* Funnel */
.funnel-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.funnel-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.funnel-step-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.funnel-step strong {
    display: block;
    margin-bottom: 4px;
}

.funnel-step p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.4;
    margin: 0;
}

.funnel-arrow {
    text-align: center;
    font-size: 1.25rem;
    color: #d1d5db;
    padding: 4px 0;
}

/* ============================================
   HEADER NAV LINK
   ============================================ */
.header-nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.header-nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   MAIN CONTENT - TOP ALIGNED (for blog)
   ============================================ */
.main-content.top-aligned {
    align-items: flex-start;
    justify-content: flex-start;
}

/* ============================================
   BLOG ADMIN STYLES
   ============================================ */
.blog-admin-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.btn-outline {
    background: white;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.blog-admin-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.blog-stat-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.blog-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.blog-stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-actions-cell {
    display: flex;
    gap: 6px;
    white-space: nowrap;
}

.btn-sm {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}

.btn-sm.btn-edit {
    background: #dbeafe;
    color: #2563eb;
}

.btn-sm.btn-edit:hover {
    background: #bfdbfe;
}

.btn-sm.btn-toggle {
    background: #fef3c7;
    color: #92400e;
}

.btn-sm.btn-toggle:hover {
    background: #fde68a;
}

.btn-sm.btn-delete {
    background: #fee2e2;
    color: #991b1b;
}

.btn-sm.btn-delete:hover {
    background: #fecaca;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* ============================================
   BLOG EDITOR
   ============================================ */
.blog-editor-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .blog-editor-layout {
        grid-template-columns: 1fr;
    }
}

.blog-editor-main .form-group input,
.blog-editor-main .form-group textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.blog-editor-main .form-group input:focus,
.blog-editor-main .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.slug-input-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.slug-prefix {
    padding: 0.65rem 0.5rem 0.65rem 0.85rem;
    background: var(--bg-light);
    color: var(--text-light);
    font-size: 0.85rem;
    white-space: nowrap;
    border-right: 1px solid var(--border-color);
}

.slug-input-wrapper input {
    border: none !important;
    border-radius: 0 !important;
    flex: 1;
}

.slug-input-wrapper input:focus {
    border: none !important;
}

.char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
}

.editor-sidebar-box {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.editor-sidebar-box h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.editor-sidebar-box select,
.editor-sidebar-box input[type="text"],
.editor-sidebar-box input[type="number"] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
}

.editor-sidebar-box select:focus,
.editor-sidebar-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.editor-sidebar-box textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
}

.editor-sidebar-box textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.field-hint {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
}

.blog-image-upload {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-image-upload:hover {
    border-color: var(--primary-color);
    background: #fff7ed;
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.image-preview-img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 6px;
    object-fit: cover;
}

.collapsible .collapsible-content {
    display: none;
}

.collapsible.open .collapsible-content {
    display: block;
}

.collapsible h4 {
    cursor: pointer;
}

.collapsible h4 svg {
    transition: transform 0.2s;
}

.collapsible.open h4 svg {
    transform: rotate(180deg);
}

/* Comment filter tabs */
.blog-comment-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 6px 16px;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
    background: white;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}

.filter-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ============================================
   PUBLIC BLOG STYLES
   ============================================ */
.blog-public {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 40px;
}

.blog-hero {
    text-align: center;
    padding: 40px 0 30px;
}

.blog-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.blog-hero p {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.blog-search-bar {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 8px;
}

.blog-search-bar input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
}

.blog-search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.blog-search-bar button {
    padding: 0.6rem 1.25rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.blog-search-bar button:hover {
    background: var(--primary-hover);
}

.blog-category-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cat-pill {
    padding: 6px 16px;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
    background: white;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}

.cat-pill:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.cat-pill.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Blog category header (when viewing a single category) */
.blog-category-header {
    margin-bottom: 1.5rem;
}

.blog-category-header .blog-back-link {
    margin-bottom: 16px;
}

/* Blog boxes grid (20 keyword boxes) */
.blog-boxes-grid {
    display: grid;
    grid-template-columns: repeat(5, 150px);
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.blog-boxes-grid.single {
    grid-template-columns: 150px;
    justify-content: center;
    margin-top: 12px;
}

.blog-box {
    width: 150px;
    height: 150px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.2s;
    text-align: center;
    padding: 12px;
    line-height: 1.3;
    cursor: pointer;
    text-decoration: none;
}

.blog-box.has-image {
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    border: none;
    overflow: hidden;
}

.blog-box.has-image::before {
    display: none;
}

.blog-box-label {
    position: relative;
    z-index: 1;
    color: yellow;
    font-size: 30px;
    font-weight: 700;
    -webkit-text-stroke: 1px black;
    text-shadow: 1px 1px 0 black, -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black;
}

.blog-box:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 700px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.blog-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.blog-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
}

.blog-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 9999px;
}

.blog-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-card-body p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-light);
}

.blog-empty {
    text-align: center;
    padding: 60px 24px;
}

.blog-empty h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.blog-empty p {
    color: var(--text-light);
}

.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 2rem;
}

.page-btn {
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.15s;
}

.page-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ============================================
   BLOG - SINGLE POST VIEW
   ============================================ */
.blog-post-view {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 48px 60px;
    width: 100%;
}

.blog-back-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.blog-back-link:hover {
    text-decoration: underline;
}

.blog-post-hero {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    max-height: 400px;
}

.blog-post-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 400px;
}

.blog-post-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 12px;
}

.blog-post-category-inline {
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 9999px;
}

.blog-post-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.blog-post-meta {
    display: flex;
    gap: 16px;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

/* Blog post content typography */
.blog-post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 32px;
}

.blog-post-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
}

.blog-post-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}

.blog-post-content p {
    margin-bottom: 1.25rem;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.blog-post-content blockquote {
    border-left: 4px solid var(--primary-color);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-light);
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
}

.blog-post-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.blog-post-content a:hover {
    color: var(--primary-hover);
}

.blog-post-content pre,
.blog-post-content code {
    background: var(--bg-light);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.blog-post-content code {
    padding: 2px 6px;
    font-size: 0.9rem;
}

.blog-post-content pre {
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

/* Tags */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.blog-tag {
    background: var(--bg-light);
    color: var(--text-light);
    padding: 4px 14px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Actions row (like + share) */
.blog-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 32px;
}

.blog-like-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 9999px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    color: var(--text-dark);
}

.blog-like-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.blog-like-btn.liked {
    background: #fef2f2;
    border-color: #ef4444;
    color: #ef4444;
}

.blog-share-buttons {
    display: flex;
    gap: 8px;
}

.blog-share-buttons button,
.blog-share-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: white;
    color: var(--text-light);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}

.blog-share-buttons button:hover,
.blog-share-buttons a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Related posts */
.blog-related {
    margin-bottom: 40px;
}

.blog-related h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.blog-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 700px) {
    .blog-related-grid {
        grid-template-columns: 1fr;
    }
}

.blog-related-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.2s;
}

.blog-related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.blog-related-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.blog-related-card h4 {
    padding: 10px 12px 4px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}

.blog-related-card span {
    display: block;
    padding: 0 12px 10px;
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ============================================
   BLOG - COMMENTS SECTION
   ============================================ */
.blog-comments-section {
    margin-top: 8px;
}

.blog-comments-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.blog-comment-form {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 24px;
}

.comment-guest-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

@media (max-width: 500px) {
    .comment-guest-fields {
        grid-template-columns: 1fr;
    }
}

.comment-guest-fields input {
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
}

.comment-guest-fields input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.blog-comment-form textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 10px;
}

.blog-comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.blog-comment {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 10px;
}

.blog-comment-reply {
    margin-left: 32px;
    border-left: 3px solid var(--primary-color);
}

.blog-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.blog-comment-header strong {
    font-size: 0.9rem;
}

.blog-comment-header span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.blog-comment p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-dark);
    margin: 0;
}

/* ============================================
   QUILL EDITOR OVERRIDES
   ============================================ */
.ql-toolbar.ql-snow {
    border-radius: 8px 8px 0 0;
    border-color: var(--border-color);
}

.ql-container.ql-snow {
    border-radius: 0 0 8px 8px;
    border-color: var(--border-color);
    font-family: inherit;
    font-size: 1rem;
}
