/* ========================================
   CentralVolker - Modern Design 2026
   ======================================== */

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

/* Variables */
:root {
    --primary: #3b82f6;
    --primary-light: #60a5fa;
    --primary-dark: #1d4ed8;
    --accent: #00f0ff;
    --accent-light: #38bdf8;
    --bg-dark: #0a0e17;
    --bg-card: #121824;
    --bg-surface: #1a2234;
    --border: #252f40;
    --border-color: #252f40;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --glass: #121824;
    --glass-border: #252f40;
    --gradient-1: linear-gradient(135deg, #3b82f6, #00f0ff);
    --gradient-2: linear-gradient(135deg, #7c3aed, #ec4899);
    --gradient-3: linear-gradient(135deg, #00f0ff, #10b981);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-glow: none;
    --radius: 12px;
    --radius-sm: 6px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Effects */
body::before {
    display: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========================================
   Header
   ======================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo:hover {
    opacity: 0.9;
}

.nav {
    display: flex;
    gap: 0.5rem;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.nav a:hover {
    color: var(--text);
    background: var(--bg-surface);
}

.nav a.active {
    color: var(--accent);
    background: var(--bg-surface);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.menu-toggle:hover {
    background: var(--bg-surface);
}

/* ========================================
   Main
   ======================================== */
.main {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.main h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.subtitle {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* ========================================
   Posts Grid
   ======================================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

/* ========================================
   Magazine Grid & Featured Grid (Destaques)
   ======================================== */
.section-title {
    font-size: 1.5rem;
    margin: 2.5rem 0 1.25rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.magazine-grid,
.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.featured-lead {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.featured-lead .thumbnail-wrapper {
    height: 280px;
}

.featured-lead .post-card-image {
    height: 100%;
}

.featured-secondary {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.secondary-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 100%;
}

.secondary-card .thumbnail-wrapper {
    width: 130px;
    min-width: 130px;
    height: 100%;
    min-height: 100px;
    border-radius: 8px 0 0 8px;
}

.secondary-card .post-card-image {
    height: 100%;
    border-bottom: none;
}

.secondary-card .post-card-body {
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.secondary-card h2 {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.secondary-card .excerpt {
    display: none;
}

.secondary-card .read-more {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* ========================================
   Scroll Strip (Em Alta)
   ======================================== */
.scroll-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-surface);
    margin-bottom: 2rem;
}

.scroll-strip::-webkit-scrollbar {
    height: 5px;
}

.scroll-strip::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.scroll-strip::-webkit-scrollbar-track {
    background: var(--bg-surface);
}

.strip-card {
    min-width: 260px;
    max-width: 300px;
    scroll-snap-align: start;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.strip-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.strip-card .thumbnail-wrapper {
    height: 140px;
}

.strip-card .post-card-image {
    height: 140px;
}

.strip-card .placeholder-image {
    height: 140px;
}

.strip-card .post-card-body {
    padding: 0.85rem 1rem;
}

.strip-card h2 {
    font-size: 0.9rem;
    line-height: 1.35;
    margin-bottom: 0;
}

.strip-card h2 a {
    color: var(--text);
    text-decoration: none;
}

.strip-card h2 a:hover {
    color: var(--primary-light);
}

.strip-card .post-meta {
    margin-bottom: 0.4rem;
}

/* Destaque cards (larger variant) */
.destaques-strip {
    gap: 1.25rem;
}

.destaque-card {
    min-width: 300px;
    max-width: 350px;
}

.destaque-card .thumbnail-wrapper {
    height: 190px;
}

.destaque-card .post-card-image {
    height: 190px;
}

.destaque-card .placeholder-image {
    height: 190px;
}

.destaque-card .post-card-body {
    padding: 1rem 1.15rem;
}

.destaque-card h2 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.destaque-card .excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.65rem;
}

.destaque-card .read-more {
    font-size: 0.82rem;
}

/* ========================================
   List Grid (Mais Notícias)
   ======================================== */
.list-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.list-card {
    display: flex;
    flex-direction: row;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.list-card:hover {
    transform: translateX(4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.list-card .thumbnail-wrapper {
    width: 200px;
    min-width: 200px;
    height: auto;
    min-height: 140px;
    border-radius: 12px 0 0 12px;
}

.list-card .post-card-image {
    height: 100%;
    min-height: 140px;
}

.list-card .placeholder-image {
    height: 100%;
    min-height: 140px;
}

.list-card .post-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.list-card h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.list-card h2 a {
    color: var(--text);
    text-decoration: none;
}

.list-card h2 a:hover {
    color: var(--primary-light);
}

.list-card .excerpt {
    -webkit-line-clamp: 2;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.list-card .read-more {
    font-size: 0.85rem;
}

/* Post Card */
.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    opacity: 0;
    transition: var(--transition);
    z-index: 5;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
    border-color: var(--accent);
}

.post-card:hover::before {
    opacity: 1;
}

/* Thumbnail Wrapper & Badges */
.thumbnail-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background: var(--bg-surface);
    width: 100%;
}

.placeholder-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-surface), var(--border));
}

.post-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    background: #3b82f6;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.category-android { background: #3b82f6; color: #ffffff; }
.category-software { background: #2563eb; color: #ffffff; }
.category-gaming { background: #7c3aed; color: #ffffff; }

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

.post-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.post-card h2 a {
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

.post-card h2 a:hover {
    color: var(--primary-light);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.post-meta .category {
    color: var(--accent-light);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

time {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.read-more:hover {
    gap: 0.75rem;
    color: var(--accent-light);
}

.read-more::after {
    content: '→';
    transition: var(--transition);
}

.read-more:hover::after {
    transform: translateX(4px);
}

/* ========================================
   Post Full
   ======================================== */
.post-full {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.post-featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.post-body {
    padding: 3rem;
}

.post-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.post-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--primary-light);
}

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

.post-content p {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}

.post-content strong {
    color: var(--text);
    font-weight: 600;
}

.post-content ul,
.post-content ol {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

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

.post-content code {
    background: var(--bg-surface);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.85em;
    color: var(--accent-light);
    word-break: break-word;
}

.post-content pre {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    position: relative;
}

.post-content pre::before {
    content: attr(data-lang);
    position: absolute;
    top: 0;
    right: 0;
    background: #21262d;
    color: var(--text-dim);
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
    border-radius: 0 8px 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: #c9d1d9;
    font-size: 0.875rem;
    line-height: 1.6;
    tab-size: 4;
}

.post-content pre code .keyword { color: #ff7b72; }
.post-content pre code .string { color: #a5d6ff; }
.post-content pre code .comment { color: #8b949e; font-style: italic; }
.post-content pre code .function { color: #d2a8ff; }
.post-content pre code .number { color: #79c0ff; }

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

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.875rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand .logo {
    font-size: 1.75rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.footer-section a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.3rem 0;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-light);
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* ========================================
   No Posts
   ======================================== */
.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--glass);
    border: 1px dashed var(--glass-border);
    border-radius: var(--radius);
}

.no-posts h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.no-posts p {
    color: var(--text-muted);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--primary-light);
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    background: #dc2626;
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--bg-surface);
    color: var(--text);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* ========================================
   Admin
   ======================================== */
.admin-body {
    background: var(--bg-dark);
}

.admin-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1.5rem;
}

.login-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: var(--radius);
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-md);
}

.login-box h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.25rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-box h2 {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 400;
    font-size: 1rem;
}

.admin-header {
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
}

.admin-header .logo {
    color: var(--text);
    -webkit-text-fill-color: unset;
}

.admin-header .nav a {
    color: var(--text-muted);
}

.admin-header .nav a:hover {
    color: var(--text);
}

.admin-main {
    padding: 2rem 0;
}

.admin-actions {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========================================
   Forms
   ======================================== */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.25);
}

.form-group textarea {
    min-height: 200px;
    resize: vertical;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* ========================================
   Table
   ======================================== */
.posts-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

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

.posts-table th,
.posts-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.posts-table th {
    background: var(--bg-dark);
    font-weight: 700;
    color: var(--text);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.posts-table tr:hover {
    background: var(--bg-surface);
}

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

.status-published {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-draft {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ========================================
   Scrollbar
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-surface);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-dim);
}

/* ========================================
   Selection
   ======================================== */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: var(--text);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.post-card {
    animation: fadeIn 0.5s ease-out forwards;
}

.post-card:nth-child(2) { animation-delay: 0.1s; }
.post-card:nth-child(3) { animation-delay: 0.2s; }
.post-card:nth-child(4) { animation-delay: 0.3s; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
    }

    .nav.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .magazine-grid,
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .secondary-card {
        flex-direction: column;
    }

    .secondary-card .thumbnail-wrapper {
        width: 100%;
        height: 180px;
        border-radius: 8px 8px 0 0;
    }

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

    .list-card {
        flex-direction: column;
    }

    .list-card .thumbnail-wrapper {
        width: 100%;
        min-width: 100%;
        height: 180px;
        border-radius: 12px 12px 0 0;
    }

    .strip-card {
        min-width: 220px;
    }

    .strip-card .thumbnail-wrapper {
        height: 120px;
    }

    .strip-card .post-card-image {
        height: 120px;
    }

    .strip-card .placeholder-image {
        height: 120px;
    }

    .main h1 {
        font-size: 1.75rem;
    }

    .post-header h1 {
        font-size: 1.75rem;
    }

    .post-featured-image {
        height: 250px;
    }

    .post-body {
        padding: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .posts-table {
        overflow-x: auto;
    }

    .posts-table table {
        min-width: 600px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .post-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header .container, .admin-header .container {
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .main {
        padding: 1.5rem 0;
    }

    .post-body {
        padding: 1.25rem;
    }

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

    .post-content {
        font-size: 1rem;
    }

    .login-box {
        padding: 2rem 1.5rem;
    }
}

/* Print */
@media print {
    .header, .footer, .nav, .menu-toggle { display: none; }
    .main { padding: 0; }
    body { background: white; color: black; }
    .post-full { box-shadow: none; border: none; background: white; }
    .post-content { color: black; }
}
