@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@200..1000&display=swap');

:root {
    /* Brand Colors: Rose Red & Dark Slate */
    --primary: #e11d48;
    --primary-hover: #be123c;
    --primary-light: #fff1f2;
    
    --bg-body: #f8fafc;
    --bg-white: #ffffff;
    --bg-dark: #0f172a;
    
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --border: #e2e8f0;
    
    --success: #10b981;
    --success-bg: #ecfdf5;
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --danger: #ef4444;
    --danger-bg: #fef2f2;
    --info: #4f46e5;
    --info-bg: #eef2ff;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    --radius: 0.75rem; /* 12px */
    
    /* Plyr Customization */
    --plyr-color-main: var(--primary);
    --plyr-video-background: #000;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: 'Noto Sans Arabic', 'Segoe UI', sans-serif; background: var(--bg-body); color: var(--text-main); line-height: 1.6; -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh; }

/* RTL Support */
body[dir="rtl"] { direction: rtl; text-align: right; font-family: 'Noto Sans Arabic', 'Segoe UI', sans-serif; }

a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
h1, h2, h3, h4, h5 { margin: 0; color: #0f172a; letter-spacing: -0.025em; }

/* Layout & Utils */
.container { max-width: 1200px; margin: 0 auto; padding: 2rem 1rem; width: 100%; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }
.w-full { width: 100%; }

/* Navbar - Updated to match design (Sticky & Fixed) */
.navbar { background: var(--bg-dark); border-bottom: 1px solid #1e293b; position: sticky; top: 0; z-index: 1000; height: 4rem; width: 100%; }
.navbar .container { padding: 0 1rem; display: flex; justify-content: space-between; align-items: center; margin: 0 auto; height: 100%; }
.nav-left { display: flex; align-items: center; gap: 2rem; }
.nav-brand { font-weight: 800; font-size: 1.25rem; color: white; display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.brand-icon { background: var(--primary); padding: 6px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; }
.nav-links { display: flex; gap: 0.5rem; }
.nav-link { color: #cbd5e1; padding: 0.5rem 1rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500; text-decoration: none; transition: all 0.2s; display: flex; align-items: center; gap: 0.5rem; }
.nav-link:hover { background: #1e293b; color: white; }
.nav-link.active { background: var(--primary); color: white; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.btn-logout { background: #1e293b; padding: 0.5rem 1rem; border-radius: 6px; font-size: 0.875rem; color: #cbd5e1; font-weight: 500; transition: all 0.2s; display: flex; align-items: center; gap: 0.5rem; }
.btn-logout:hover { background: var(--primary); color: white; }

/* Mobile */
@media (max-width: 768px) {
    .nav-links span { display: none; }
    .nav-left { gap: 1rem; }
}

/* Admin Dashboard Layout (New) */
.admin-layout { display: flex; min-height: calc(100vh - 4rem); background: var(--bg-body); }
.admin-sidebar { width: 260px; background: white; border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 1.5rem 0; flex-shrink: 0; }
body[dir="rtl"] .admin-sidebar { border-right: none; border-left: 1px solid var(--border); }

.sidebar-nav { display: flex; flex-direction: column; gap: 0.5rem; padding: 0 1rem; }
.sidebar-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border-radius: 0.5rem; color: var(--text-muted); font-weight: 600; font-size: 0.95rem; transition: all 0.2s; }
.sidebar-link:hover { background: #f8fafc; color: var(--text-main); }
.sidebar-link.active { background: var(--primary-light); color: var(--primary); }
.sidebar-link svg { width: 20px; height: 20px; }

.admin-main { flex: 1; padding: 2rem; overflow-y: auto; max-width: 100%; }
@media (max-width: 900px) {
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); padding: 1rem 0; }
    .sidebar-nav { flex-direction: row; overflow-x: auto; padding-bottom: 0.5rem; }
    .sidebar-link { white-space: nowrap; }
}

/* Stats Cards */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.stat-card { background: white; border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; display: flex; flex-direction: column; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--text-main); margin: 0.5rem 0 0; }
.stat-label { font-size: 0.9rem; color: var(--text-muted); font-weight: 600; }
.stat-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.5rem; }

/* Existing Styles */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.6rem 1.25rem; border-radius: 8px; font-weight: 600; border: none; cursor: pointer; font-size: 0.95rem; transition: all 0.2s; }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 2px 4px rgba(225, 29, 72, 0.3); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 4px 6px rgba(225, 29, 72, 0.4); }

.action-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px; margin: 0 2px; transition: all 0.2s; border: 1px solid transparent; }
.btn-delete { color: var(--danger); border-color: #fecaca; }
.btn-delete:hover { background: var(--danger); color: white; border-color: var(--danger); }
.btn-view { color: var(--text-muted); border-color: var(--border); }
.btn-view:hover { background: var(--text-muted); color: white; border-color: var(--text-muted); }
.btn-edit { color: var(--info); border-color: #c7d2fe; }
.btn-edit:hover { background: var(--info); color: white; border-color: var(--info); }

input, textarea { font-family: inherit; }
.form-control { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: 8px; font-size: 0.95rem; outline: none; transition: 0.2s; background: white; color: var(--text-main); }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1); }

/* Search Hero */
.search-container { max-width: 700px; margin: 2rem auto 4rem; text-align: center; }
.search-title { font-size: 3rem; font-weight: 900; margin-bottom: 1rem; line-height: 1.1; }
.search-subtitle { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; }
.search-box { position: relative; max-width: 600px; margin: 0 auto; }
.search-input { width: 100%; padding: 1.25rem 1.5rem; padding-inline-end: 8rem; border-radius: 999px; border: 1px solid var(--border); font-size: 1.1rem; outline: none; transition: all 0.2s; box-shadow: var(--shadow-lg); }

/* LTR Specifics */
body:not([dir="rtl"]) .search-input { padding-right: 8rem; }
body:not([dir="rtl"]) .search-btn { right: 8px; }

/* RTL Specifics */
body[dir="rtl"] .search-input { padding-left: 8rem; }
body[dir="rtl"] .search-btn { left: 8px; }
body[dir="rtl"] .nav-left { margin-left: 0; } 
body[dir="rtl"] .play-icon { margin-left: 0; margin-right: 4px; transform: scaleX(-1); }

.search-input:focus { border-color: var(--primary); ring: 2px solid var(--primary); }
.search-btn { position: absolute; top: 8px; bottom: 8px; border-radius: 999px; background: var(--primary); color: white; padding: 0 2rem; font-weight: 700; border: none; cursor: pointer; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.search-btn:hover { background: var(--primary-hover); }

/* Grid & Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
.section-title { font-size: 1.75rem; font-weight: 800; }

.card { background: var(--bg-white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; height: 100%; position: relative; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #cbd5e1; }
.card-thumb { position: relative; aspect-ratio: 16/9; background: #e2e8f0; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.card:hover .card-thumb img { transform: scale(1.05); }
.card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent); display: flex; align-items: center; justify-content: center; opacity: 1; transition: 0.3s; }
.play-btn-circle { width: 56px; height: 56px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 6px rgba(0,0,0,0.3); transform: scale(0.8); opacity: 0; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.card:hover .play-btn-circle { transform: scale(1); opacity: 1; }
.play-icon { width: 24px; height: 24px; fill: white; margin-left: 4px; }
.video-badge { position: absolute; bottom: 10px; right: 10px; background: rgba(15, 23, 42, 0.9); color: white; font-size: 0.75rem; padding: 4px 8px; border-radius: 4px; font-weight: 700; display: flex; align-items: center; gap: 4px; backdrop-filter: blur(4px); }
/* RTL Badge */
body[dir="rtl"] .video-badge { right: auto; left: 10px; }

.card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 0.75rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text-main); }
.card:hover .card-title { color: var(--primary); }
.card-footer { margin-top: auto; padding-top: 1rem; border-top: 1px solid #f1f5f9; display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); font-weight: 600; align-items: center; }
.watch-link { color: var(--primary); display: flex; align-items: center; gap: 4px; transition: transform 0.2s; }
.card:hover .watch-link { transform: translateX(4px); }

/* Admin Styles */
.admin-login-card { max-width: 400px; margin: 10vh auto; background: white; padding: 2.5rem; border-radius: 1rem; box-shadow: var(--shadow-lg); text-align: center; border: 1px solid var(--border); }
.admin-icon { width: 60px; height: 60px; background: var(--primary-light); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.admin-card { background: white; border-radius: 1rem; box-shadow: var(--shadow); border: 1px solid var(--border); margin-bottom: 2rem; overflow: hidden; }
.admin-card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); background: #f8fafc; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.admin-card-body { padding: 1.5rem; }

.alert { padding: 1rem; border-radius: 0.5rem; margin-bottom: 1rem; font-size: 0.9rem; border: 1px solid transparent; font-weight: 500; }
.alert-success { background: var(--success-bg); color: #065f46; border-color: #a7f3d0; }
.alert-danger { background: var(--danger-bg); color: #991b1b; border-color: #fecaca; }

.table-responsive { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; text-align: left; }
.table th { background: #f8fafc; padding: 1rem 1.5rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 700; border-bottom: 1px solid var(--border); }
.table td { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; vertical-align: middle; color: var(--text-main); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover { background: #f8fafc; }

.badge { display: inline-flex; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; border: 1px solid transparent; }
.badge-success { background: var(--success-bg); color: #065f46; border-color: #6ee7b7; }
.badge-info { background: var(--warning-bg); color: #92400e; border-color: #fcd34d; }
.badge-secondary { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }

/* Watch Page */
.watch-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media(min-width: 1024px) { .watch-layout { grid-template-columns: 7fr 3fr; } }

/* Player Wrapper */
.player-wrapper { background: black; border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid #334155; position: relative; z-index: 1; }
/* Plyr customization */
.player-wrapper .plyr { width: 100%; height: 100%; border-radius: 1rem; }

/* 
CRITICAL: Zoom video to hide native YouTube controls (Title, Copy Link, More Videos shelf).
Disable pointer events on iframe to prevent interaction with YouTube UI.
*/
.plyr__video-embed iframe { 
    transform: scale(1.25); 
    pointer-events: none; 
}

/* Custom Click Blocker (Full Cover) */
.yt-click-blocker { position: absolute; inset: 0; z-index: 20; background: transparent; cursor: pointer; }

.video-info { background: white; padding: 1.5rem; border-radius: 1rem; border: 1px solid var(--border); margin-top: 1.5rem; box-shadow: var(--shadow-sm); }
.video-info h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; line-height: 1.3; }
.video-description { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1rem; }

.channel-info { display: flex; align-items: center; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.channel-avatar { width: 40px; height: 40px; background: #f1f5f9; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; color: var(--text-muted); }

.playlist-box { background: white; border-radius: 1rem; border: 1px solid var(--border); overflow: hidden; max-height: calc(100vh - 4rem); display: flex; flex-direction: column; position: sticky; top: 5.5rem; box-shadow: var(--shadow-sm); }
.playlist-header { padding: 1rem 1.25rem; background: #f8fafc; border-bottom: 1px solid var(--border); font-weight: 700; display: flex; justify-content: space-between; color: var(--text-main); }
.playlist-items { overflow-y: auto; padding: 0.75rem; }
.playlist-items::-webkit-scrollbar { width: 6px; }
.playlist-items::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

.playlist-item { display: flex; gap: 0.75rem; padding: 0.75rem; border-radius: 0.75rem; cursor: pointer; transition: 0.2s; border: 1px solid transparent; margin-bottom: 0.25rem; }
.playlist-item:hover { background: #f1f5f9; border-color: #e2e8f0; }
.playlist-item.active { background: var(--primary-light); border-color: #fecdd3; }
.playlist-item img { width: 130px; aspect-ratio: 16/9; border-radius: 0.5rem; object-fit: cover; background: #e2e8f0; }
.playlist-item-content { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.playlist-item h4 { font-size: 0.9rem; font-weight: 600; margin: 0 0 4px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text-main); }
.playlist-item.active h4 { color: var(--primary); }
.playlist-item span { font-size: 0.75rem; color: var(--text-muted); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; flex-wrap: wrap; }
.btn-page { padding: 0.5rem 1rem; border: 1px solid var(--border); border-radius: 6px; background: white; color: var(--text-main); font-weight: 600; text-decoration: none; transition: all 0.2s; }
.btn-page:hover { background: #f1f5f9; border-color: #cbd5e1; }
.btn-page.active { background: var(--primary); color: white; border-color: var(--primary); pointer-events: none; }

/* Stylish Footer */
.footer { margin-top: auto; border-top: 1px solid var(--border); background: white; padding: 2rem 0; text-align: center; color: var(--text-muted); font-size: 0.9rem; }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.footer-brand { font-weight: 800; font-size: 1.25rem; color: var(--text-main); display: flex; align-items: center; gap: 0.5rem; }
.footer-brand span { color: var(--primary); }

/*
* Plyr.
*/

.plyr {
    position: relative; 
}

.yt-click-blocker {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 50px; 
    background: transparent; 
    z-index: 10;
    cursor: pointer;
}
.plyr__video-embed iframe {
    pointer-events: auto !important; 
}
.plyr--full-ui.plyr--video .plyr__controls {
    pointer-events: auto !important;
    padding-right: 20px;
}
/* --- قسم إدارة المصادر التلقائية --- */

.sources-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid #edf2f7;
}

.sources-header {
    padding: 1.5rem;
    border-bottom: 1px solid #edf2f7;
    background: #fcfcfd;
}

.sources-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #1a202c;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modern-form {
    padding: 1.5rem;
    background: #fff;
    border-bottom: 1px solid #edf2f7;
}

.form-grid {
    display: grid;
    grid-template-columns: 2.5fr 1.2fr 1fr 1.2fr auto;
    gap: 15px;
    align-items: flex-end;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
}

.modern-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s;
    background: #f8fafc;
}

.modern-input:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
    background: #fff;
}


.table-wrapper {
    overflow-x: auto;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

.modern-table th {
    background: #f8fafc;
    padding: 14px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
}

.modern-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}


.badge-type {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-rss { background: #e0f2fe; color: #0369a1; }
.badge-html { background: #f3e8ff; color: #7e22ce; }
.badge-priority { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }

.btn-delete {
    color: #ef4444;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

    .footer {
        background-color: var(--bg-secondary, #1e293b);
        padding: 20px 0;
        margin-top: auto;
        border-top: 1px solid var(--border-color, #334155);
    }
    
    .footer-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .footer-social-links {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .footer-social-links a {
        color: var(--text-secondary, #94a3b8);
        text-decoration: none;
        transition: color 0.3s ease;
        font-size: 0.95rem;
    }

    .footer-social-links a:hover {
        color: var(--primary-color, #3b82f6);
    }

    .footer-social-links .separator {
        color: #475569;
    }

    @media (max-width: 600px) {
        .footer-container {
            flex-direction: column;
            text-align: center;
        }
    }
    
.page-container {
    padding: 40px 0;
    min-height: 60vh;
}
.page-title {
    color: var(--text-main, #fff);
    margin-bottom: 25px;
    font-size: 2rem;
    border-bottom: 2px solid var(--primary-color, #3b82f6);
    padding-bottom: 10px;
    display: inline-block;
}
.page-content {
    background: #eaebec;
    padding: 30px;
    border-radius: 8px;
    color: #1a1b1b;
    line-height: 1.8;
    font-size: 1.1rem;
}
/* Contact form */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text-main); }
.form-control {
    width: 100%;
    padding: 12px 12px 12px 12px;
    
    background: #eaebec;
    border: 1px solid var(--border-color, #334155);
    color: #1a1b1b;
    border-radius: 6px;
}
.form-control:focus { border-color: var(--primary-color, #3b82f6); outline: none; }
.btn-submit {
    background: var(--primary-color, #3b82f6);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}
.btn-submit:hover { opacity: 0.9; }

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /*  16:9 */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* Mobile player */
@media (max-width: 768px) {
    .player-column, .watch-layout {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow-x: hidden;
    }
}

/* Editor */
.author-header { background: #fff; padding: 40px 20px; text-align: center; border-bottom: 1px solid #eee; margin-bottom: 30px; } .author-avatar { width: 120px; height: 120px; border-radius: 50%; margin-bottom: 15px; border: 4px solid #f0f0f0; } .author-name { font-size: 24px; font-weight: bold; margin-bottom: 5px; color: var(--text-main); } .author-role { color: var(--primary-color); font-weight: bold; font-size: 16px; margin-bottom: 15px; display: block; } .author-meta { display: flex; justify-content: center; gap: 20px; color: #666; font-size: 14px; flex-wrap: wrap; } .author-bio { max-width: 700px; margin: 20px auto 0; line-height: 1.6; color: #444; background: #f9f9f9; padding: 15px; border-radius: 8px; } .posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; padding: 0 20px; max-width: 1200px; margin: 0 auto; } .navbar { background: var(--bg-secondary, #1e293b); padding: 15px 0; border-bottom: 1px solid var(--border-color, #334155); } .navbar .container { display: flex; justify-content: space-between; align-items: center; } .logo { font-size: 1.5rem; font-weight: bold; color: var(--primary-color, #3b82f6); text-decoration: none; } .nav-links a { color: var(--text-secondary, #cbd5e1); text-decoration: none; margin-left: 20px; } .nav-links a:hover { color: #fff; }