/* ============================================
   אשקלון פוסט - Professional News Site Styles
   ============================================ */

:root {
    --accent: #bb141c;
    --accent-dark: #8a0f14;
    --accent-light: #e8393f;
    --bg: #ffffff;
    --bg-light: #f4f5f7;
    --bg-dark: #1a1a2e;
    --text: #2d2d2d;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --border: #e5e7eb;
    --border-light: #f0f0f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-sm: 4px;
    --transition: 0.3s ease;
    --font: 'Heebo', sans-serif;
    --max-width: 1200px;
}

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

html {
    direction: rtl;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

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

ul {
    list-style: none;
}

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

/* ============ Top Bar ============ */
.top-bar {
    background: var(--bg-dark);
    color: #ccc;
    font-size: 0.8rem;
    padding: 6px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-links {
    color: #999;
}

/* ============ Header ============ */
.site-header {
    background: var(--bg);
    padding: 20px 0;
    border-bottom: 3px solid var(--accent);
}

.site-header .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-main {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -1px;
}

.logo-sub {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 6px;
    text-transform: uppercase;
}

/* ============ Navigation ============ */
.main-nav {
    background: var(--accent);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.main-nav .container {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 0;
}

.nav-links li a {
    display: block;
    padding: 14px 20px;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links li a:hover,
.nav-links li a.active {
    background: rgba(0,0,0,0.15);
    color: #fff;
}

.nav-links li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: #fff;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: var(--transition);
}

/* ============ Breaking News Ticker ============ */
.ticker-bar {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    overflow: hidden;
}

.ticker-bar .container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ticker-label {
    background: var(--accent);
    color: #fff;
    padding: 4px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 3px;
    white-space: nowrap;
    animation: pulse 2s infinite;
}

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

.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker-track {
    display: flex;
    gap: 60px;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    font-size: 0.85rem;
    color: var(--text);
    white-space: nowrap;
    padding: 2px 0;
}

.ticker-item:hover {
    color: var(--accent);
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

/* ============ Main Layout ============ */
.site-main {
    padding: 30px 0;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

/* ============ Featured Slider ============ */
.featured-slider {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 35px;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16/7;
    background: var(--bg-dark);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active {
    opacity: 1;
}

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

.slide-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-dark), #2d2d5e);
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 60px 40px 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
}

.slide-category {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 4px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 3px;
    margin-bottom: 12px;
}

.slide-overlay h2 {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 8px;
}

.slide-overlay h2 a {
    color: #fff;
}

.slide-overlay h2 a:hover {
    text-decoration: underline;
}

.slide-date {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: #fff;
    border-color: #fff;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 5;
}

.slider-arrow:hover {
    background: rgba(0,0,0,0.7);
}

.slider-prev {
    left: 15px;
}

.slider-next {
    right: 15px;
}

/* ============ Section Headers ============ */
.section-header {
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-header h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
    position: relative;
    padding-bottom: 8px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

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

/* ============ Article Grid ============ */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
}

.article-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.card-image-link {
    display: block;
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-light);
}

.card-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.card-category {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: #fff;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 3px;
}

.card-content {
    padding: 16px;
}

.card-content h3 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-content h3 a:hover {
    color: var(--accent);
}

.card-excerpt {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

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

.card-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ============ Sidebar ============ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.widget {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.widget-header {
    background: var(--accent);
    padding: 12px 18px;
}

.widget-header h3 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
}

.widget-text {
    padding: 16px 18px;
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.7;
}

.fb-link {
    display: block;
    padding: 0 18px 16px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
}

.fb-link:hover {
    text-decoration: underline;
}

/* Category List */
.category-list {
    padding: 8px 0;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    font-size: 0.9rem;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-light);
}

.category-list li:last-child a {
    border-bottom: none;
}

.category-list li a:hover,
.category-list li a.active {
    background: var(--bg-light);
    color: var(--accent);
}

.cat-count {
    background: var(--bg-light);
    color: var(--text-muted);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 500;
}

/* Recent Articles List */
.recent-list {
    padding: 8px 0;
}

.recent-list li a {
    display: flex;
    gap: 12px;
    padding: 10px 18px;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-light);
    align-items: center;
}

.recent-list li:last-child a {
    border-bottom: none;
}

.recent-list li a:hover {
    background: var(--bg-light);
}

.recent-list li img {
    width: 65px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.recent-title {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-date {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 3px;
}

/* ============ Article Full Page ============ */
.breadcrumbs {
    font-size: 0.83rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding: 10px 0;
}

.breadcrumbs a {
    color: var(--text-light);
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumbs .sep {
    margin: 0 8px;
    color: var(--border);
}

.article-full {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.article-header {
    padding: 30px 30px 20px;
}

.article-category-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 4px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 3px;
    margin-bottom: 14px;
}

.article-header h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 12px;
}

.article-meta {
    display: flex;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.article-hero {
    margin: 0;
}

.article-hero img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.article-body {
    padding: 30px;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text);
}

.article-share {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 30px;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-light);
}

.share-btn {
    padding: 6px 16px;
    border-radius: 4px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    transition: var(--transition);
}

.share-btn.fb { background: #1877f2; }
.share-btn.wa { background: #25d366; }
.share-btn.tw { background: #1da1f2; }
.share-btn:hover { opacity: 0.85; }

.related-section {
    margin-top: 35px;
}

/* ============ Pagination ============ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 8px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    transition: var(--transition);
    color: var(--text);
}

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

.page-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    font-weight: 700;
}

.page-dots {
    padding: 8px 6px;
    color: var(--text-muted);
}

/* ============ Empty State ============ */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text);
}

.empty-state p {
    color: var(--text-muted);
}

/* ============ Footer ============ */
.site-footer {
    margin-top: 50px;
}

.footer-top {
    background: var(--bg-dark);
    color: #ccc;
    padding: 40px 0;
}

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

.footer-col h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.footer-col p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: #aaa;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    font-size: 0.88rem;
    color: #aaa;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: #fff;
    padding-right: 5px;
}

.footer-bottom {
    background: #111;
    padding: 16px 0;
    text-align: center;
}

.copyright {
    font-size: 0.82rem;
    color: #666;
    cursor: default;
    user-select: none;
}

.admin-footer-link {
    font-size: 0.72rem;
    color: #444;
    margin-right: 12px;
}
.admin-footer-link:hover {
    color: #999;
}

/* ============ Toast Notification ============ */
.toast {
    position: fixed;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark);
    color: #fff;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    transition: bottom 0.4s ease;
    z-index: 9999;
    white-space: nowrap;
}

.toast.show {
    bottom: 30px;
}

.toast.success {
    background: #059669;
}

.toast.error {
    background: var(--accent);
}

/* ============ Responsive ============ */
@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .featured-slider {
        aspect-ratio: 16/9;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .logo-main {
        font-size: 2rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--accent);
    }

    .nav-links.open {
        display: flex;
    }

    .main-nav .container {
        flex-wrap: wrap;
    }

    .nav-links li a {
        padding: 12px 20px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .slide-overlay h2 {
        font-size: 1.2rem;
    }

    .slide-overlay {
        padding: 30px 20px 20px;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .article-header {
        padding: 20px;
    }

    .article-header h1 {
        font-size: 1.5rem;
    }

    .article-body {
        padding: 20px;
        font-size: 0.95rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .ticker-bar {
        display: none;
    }
}

@media (max-width: 480px) {
    .top-bar {
        display: none;
    }

    .logo-main {
        font-size: 1.6rem;
    }

    .logo-sub {
        font-size: 0.7rem;
        letter-spacing: 3px;
    }

    .featured-slider {
        aspect-ratio: 4/3;
    }
}

/* ============================================
   Admin Panel Styles
   ============================================ */

.admin-body {
    background: #f0f2f5;
    min-height: 100vh;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Admin Header */
.admin-header {
    background: var(--bg-dark);
    padding: 16px 0;
    box-shadow: var(--shadow-md);
}

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

.admin-header h1 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
}

.admin-header-actions {
    display: flex;
    gap: 10px;
}

/* Admin Main */
.admin-main {
    padding: 30px 0;
}

/* Admin Buttons */
.admin-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.admin-btn-primary {
    background: var(--accent);
    color: #fff;
}
.admin-btn-primary:hover { background: var(--accent-dark); }
.admin-btn-primary:disabled { background: #999; cursor: not-allowed; }

.admin-btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}
.admin-btn-outline:hover { background: rgba(255,255,255,0.1); }

.admin-btn-ghost {
    background: transparent;
    color: rgba(255,255,255,0.7);
}
.admin-btn-ghost:hover { color: #fff; }

.admin-btn-sm {
    padding: 5px 14px;
    font-size: 0.82rem;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
}
.admin-btn-sm:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.admin-btn-full {
    width: 100%;
    padding: 12px;
}

/* Admin Stats */
.admin-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    align-items: center;
}

.admin-stat-card {
    background: var(--bg);
    padding: 16px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
}

.admin-stat-label {
    font-size: 0.88rem;
    color: var(--text-light);
}

.admin-scrape-form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-scrape-result {
    font-size: 0.85rem;
    color: #059669;
    font-weight: 500;
}

/* Add Post by URL */
.admin-add-post-box {
    background: var(--bg);
    padding: 18px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.admin-add-post-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.admin-url-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.9rem;
    direction: ltr;
    text-align: left;
}

.admin-url-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(187, 20, 28, 0.1);
}

.admin-add-post-loading {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

/* Admin Table */
.admin-table-wrapper {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow-x: auto;
}

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

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

.admin-table th {
    padding: 14px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-light);
    text-align: right;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: #fafbfc;
}

.admin-table tbody tr.row-hidden {
    opacity: 0.5;
}

.col-img { width: 70px; }
.col-cat { width: 100px; }
.col-date { width: 100px; }
.col-status { width: 80px; }
.col-actions { width: 80px; }

.admin-thumb {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.admin-thumb-placeholder {
    width: 60px;
    height: 45px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.admin-article-title {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text);
    display: block;
    margin-bottom: 4px;
}
.admin-article-title:hover { color: var(--accent); }

.admin-article-excerpt {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.admin-cat-badge {
    display: inline-block;
    background: var(--bg-light);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Status Button */
.admin-status-btn {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    transition: var(--transition);
}

.status-visible {
    background: #d1fae5;
    color: #065f46;
}
.status-visible:hover { background: #a7f3d0; }

.status-hidden {
    background: #fee2e2;
    color: #991b1b;
}
.status-hidden:hover { background: #fecaca; }

/* Admin Pagination */
.admin-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 16px 0;
}

.admin-page-info {
    font-size: 0.88rem;
    color: var(--text-light);
}

/* ============ Admin Login ============ */
.admin-login-page {
    background: linear-gradient(135deg, var(--bg-dark), #2d2d5e);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.admin-login-box {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 40px 32px;
}

.admin-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.admin-login-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 6px;
}

.admin-login-header p {
    color: var(--text-light);
    font-size: 0.92rem;
}

.admin-back-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.admin-back-link:hover { color: var(--accent); }

/* ============ Admin Forms ============ */
.admin-form-group {
    margin-bottom: 18px;
}

.admin-form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.admin-form-group input[type="text"],
.admin-form-group input[type="password"],
.admin-form-group textarea,
.admin-form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.92rem;
    color: var(--text);
    transition: var(--transition);
    background: var(--bg);
}

.admin-form-group input:focus,
.admin-form-group textarea:focus,
.admin-form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(187, 20, 28, 0.1);
}

.admin-form-group textarea {
    resize: vertical;
    line-height: 1.7;
}

.admin-form-group select {
    cursor: pointer;
}

/* Admin Alert */
.admin-alert {
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 20px;
}
.admin-alert.error { background: #fee2e2; color: #991b1b; }
.admin-alert.success { background: #d1fae5; color: #065f46; }

/* ============ Admin Edit Page ============ */
.admin-edit-form {
    width: 100%;
}

.admin-edit-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}

.admin-edit-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-card {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.admin-card-header {
    padding: 14px 20px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.admin-card-header h2 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

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

/* Checkbox */
.admin-checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 400 !important;
}

.admin-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.admin-info-text {
    font-size: 0.88rem;
    color: var(--text-light);
    padding: 8px 0;
}

/* Image Grid */
.admin-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}

.admin-image-option {
    position: relative;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.admin-image-option:hover {
    border-color: var(--border);
}

.admin-image-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.admin-image-option input[type="radio"]:checked + img,
.admin-image-option input[type="radio"]:checked + .admin-no-image {
    border: none;
}

.admin-image-option input[type="radio"]:checked ~ .admin-image-check {
    display: flex;
}

.admin-image-option:has(input:checked) {
    border-color: var(--accent);
}

.admin-image-option img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
}

.admin-no-image {
    width: 100%;
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--text-muted);
    font-size: 0.82rem;
}

.admin-image-check {
    display: none;
    position: absolute;
    top: 8px;
    left: 8px;
    width: 26px;
    height: 26px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Admin Responsive */
@media (max-width: 768px) {
    .admin-edit-grid {
        grid-template-columns: 1fr;
    }

    .admin-header-content {
        flex-direction: column;
        gap: 10px;
    }

    .admin-stats {
        flex-direction: column;
    }

    .admin-table th,
    .admin-table td {
        padding: 8px 10px;
    }

    .col-img, .admin-thumb, .admin-thumb-placeholder {
        display: none;
    }
}
