/* ==================== CSS VARIABLES ==================== */
:root {
    --primary: #10b981;
    --secondary: #6366f1;
    --bg: #0f0e17;
    --bg-card: #1a1925;
    --bg-elevated: #232132;
    --text: #e4e4e7;
    --text-muted: #8b8b96;
    --border: #2a2937;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.3);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg: #fafafa;
    --bg-card: #ffffff;
    --bg-elevated: #f4f4f5;
    --text: #18181b;
    --text-muted: #71717a;
    --border: #e4e4e7;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

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

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

.hidden { display: none !important; }

/* ==================== HEADER ==================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    transition: background var(--transition);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 1px;
    color: var(--primary);
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 20px;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition);
}

.nav-links a:hover { color: var(--primary); }

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

.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition);
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Secret Green Button */
.secret-btn {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: all 0.15s ease;
    opacity: 0.5;
}

.secret-btn:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.secret-btn:active {
    transform: scale(0.85);
    opacity: 1;
}

/* ==================== HERO ==================== */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px 60px;
    text-align: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== ARTICLES GRID ==================== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

[data-layout="list"] .articles-grid {
    grid-template-columns: 1fr;
}

[data-layout="magazine"] .articles-grid {
    grid-template-columns: 2fr 1fr 1fr;
    grid-auto-rows: 280px;
}

[data-layout="magazine"] .article-card:first-child {
    grid-row: span 2;
    grid-column: span 1;
}

[data-layout="magazine"] .article-card:first-child .article-card-image {
    height: 400px;
}

/* Article Card */
.article-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid var(--border);
}

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

.article-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.article-card-image .placeholder {
    font-size: 48px;
    color: var(--text-muted);
    opacity: 0.3;
}

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

.article-card-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.article-card-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    color: var(--text);
}

.article-card-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.article-featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

/* ==================== ARTICLE MODAL ==================== */
.article-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.article-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.article-modal-content {
    position: relative;
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--border);
}

.article-modal-content .close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-elevated);
    border: none;
    color: var(--text);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.article-modal-content .close-btn:hover {
    background: var(--primary);
    color: white;
}

#articleContent h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 12px;
}

#articleContent .article-meta {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

#articleContent .article-hero-img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 24px;
}

#articleContent .article-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    white-space: pre-wrap;
}

/* ==================== LOADING ==================== */
.loading {
    text-align: center;
    padding: 60px;
    color: var(--text-muted);
}

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

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

.no-articles {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

/* ==================== FOOTER ==================== */
.footer {
    border-top: 1px solid var(--border);
    padding: 32px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ==================== PASSWORD MODAL ==================== */
.password-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
}

.password-modal-box {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.password-lock-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-modal-box h2 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    font-size: 22px;
}

.password-modal-box input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 16px;
    margin-bottom: 12px;
    outline: none;
    transition: border-color var(--transition);
}

.password-modal-box input:focus {
    border-color: var(--primary);
}

.password-error {
    color: #ef4444;
    font-size: 14px;
    margin-bottom: 12px;
}

.password-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.password-actions button {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
}

.btn-cancel {
    background: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--border) !important;
}

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

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

.btn-submit:hover { opacity: 0.9; }

/* ==================== ADMIN DASHBOARD ==================== */
.admin-dashboard {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 250;
    background: var(--bg);
    overflow-y: auto;
}

.admin-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.admin-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
}

.admin-badge {
    background: var(--primary);
    color: white;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 1px;
}

.admin-nav {
    display: flex;
    gap: 4px;
}

.admin-tab {
    padding: 8px 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all var(--transition);
}

.admin-tab:hover { color: var(--text); }

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

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

.btn-view-site, .btn-logout {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    transition: all var(--transition);
}

.btn-view-site:hover { border-color: var(--primary); color: var(--primary); }
.btn-logout:hover { border-color: #ef4444; color: #ef4444; }

.admin-body {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
}

.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.tab-header h2 {
    font-family: var(--font-heading);
    font-size: 26px;
}

.tab-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity var(--transition);
}

.btn-primary:hover { opacity: 0.9; }

.btn-secondary {
    padding: 10px 20px;
    background: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

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

.btn-danger {
    padding: 6px 12px;
    background: rgba(239,68,68,0.1);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
}

.btn-danger:hover { background: rgba(239,68,68,0.2); }

/* Upload Progress */
.upload-progress {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.upload-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-elevated);
    border-radius: 3px;
    margin-bottom: 12px;
    overflow: hidden;
}

.upload-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Articles List */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color var(--transition);
}

.article-row:hover { border-color: var(--primary); }

.article-row-img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: var(--bg-elevated);
    object-fit: cover;
    flex-shrink: 0;
}

.article-row-img.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 20px;
}

.article-row-info {
    flex: 1;
    min-width: 0;
}

.article-row-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-row-meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    gap: 8px;
    align-items: center;
}

.article-row-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* ==================== APPEARANCE TAB ==================== */
.appearance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.appearance-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.appearance-card label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.appearance-card input[type="text"],
.appearance-card select {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition);
}

.appearance-card input:focus,
.appearance-card select:focus {
    border-color: var(--primary);
}

.color-picker-wrap {
    display: flex;
    gap: 10px;
}

.color-picker-wrap input[type="color"] {
    width: 50px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    background: var(--bg-elevated);
}

.color-picker-wrap input[type="text"] {
    flex: 1;
    padding: 12px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
}

/* ==================== AI GIRL CHAT ==================== */
.ai-girl-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 160px);
}

.ai-girl-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
}

.ai-girl-avatar {
    position: relative;
}

.ai-girl-avatar-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    font-family: var(--font-heading);
}

.ai-girl-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border: 2px solid var(--bg-elevated);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.ai-girl-info h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 2px;
}

.ai-girl-info p {
    font-size: 13px;
    color: var(--text-muted);
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-message {
    display: flex;
    gap: 12px;
    max-width: 85%;
    animation: fadeIn 0.3s ease;
}

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

.ai-message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.ai-message-content {
    background: var(--bg-elevated);
    padding: 14px 18px;
    border-radius: 4px 16px 16px 16px;
    font-size: 15px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.user-message {
    display: flex;
    gap: 12px;
    max-width: 85%;
    align-self: flex-end;
    flex-direction: row-reverse;
    animation: fadeIn 0.3s ease;
}

.user-message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-elevated);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.user-message-content {
    background: var(--primary);
    color: white;
    padding: 14px 18px;
    border-radius: 16px 4px 16px 16px;
    font-size: 15px;
    line-height: 1.6;
}

.ai-typing {
    display: flex;
    gap: 4px;
    padding: 14px 18px;
}

.ai-typing span {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-8px); opacity: 1; }
}

.ai-chat-suggestions {
    display: flex;
    gap: 8px;
    padding: 12px 24px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
}

.ai-chat-suggestions button {
    padding: 6px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition);
}

.ai-chat-suggestions button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.ai-chat-input {
    display: flex;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    gap: 10px;
}

.ai-chat-input input {
    flex: 1;
    padding: 14px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: border-color var(--transition);
}

.ai-chat-input input:focus { border-color: var(--primary); }

.ai-send-btn {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition);
}

.ai-send-btn:hover { opacity: 0.9; }

/* ==================== ARTICLE EDIT MODAL ==================== */
.article-edit-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 280;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.article-edit-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.article-edit-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
}

.article-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.article-edit-header h2 {
    font-family: var(--font-heading);
}

.article-edit-header .close-btn {
    background: var(--bg-elevated);
    border: none;
    color: var(--text);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
}

.article-edit-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 18px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group { flex: 1; }

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    font-family: var(--font-body);
    outline: none;
    transition: border-color var(--transition);
    resize: vertical;
}

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

.form-group label input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.article-edit-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    justify-content: flex-end;
}

/* ==================== TOAST ==================== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--primary);
    color: var(--text);
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    z-index: 500;
    box-shadow: var(--shadow);
    animation: toastSlide 0.3s ease;
}

@keyframes toastSlide {
    from { transform: translate(-50%, 100px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .header-inner {
        padding: 12px 16px;
        gap: 8px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 48px 16px 40px;
    }
    
    .main-content {
        padding: 0 16px 60px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    [data-layout="magazine"] .articles-grid {
        grid-template-columns: 1fr;
    }
    
    [data-layout="magazine"] .article-card:first-child .article-card-image {
        height: 200px;
    }
    
    .admin-header-inner {
        flex-wrap: wrap;
        padding: 12px 16px;
    }
    
    .admin-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    
    .tab-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .article-edit-content {
        max-height: 90vh;
    }
    
    .article-modal-content {
        padding: 24px;
    }
    
    #articleContent h1 {
        font-size: 24px;
    }
}
