/* Blog Admin Styles - Consistent with Care4Me Design */

/* Import main Care4Me styles */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;600;700&family=Nunito:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #2db094;
    --primary-hover: #259d7f;
    --secondary-color: #37c8a9;
    --text-dark: #222222;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-section: #f0fbf9;
    --border-color: #e9ecef;
    --shadow: 0 4px 15px rgba(45, 176, 148, 0.1);
    --shadow-hover: 0 8px 25px rgba(45, 176, 148, 0.15);
}

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

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header */
.blog-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

.blog-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.blog-header h1 {
    font-family: 'Lora', serif;
    font-size: 1.8rem;
    font-weight: 700;
}

.blog-header .user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.blog-header .user-greeting {
    text-align: center;
}

.blog-header .user-greeting span {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.blog-header .user-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* Header primary button - FORCE white background, green text, no border */
header.blog-header div.container div.user-info a.btn.btn-primary[href="editor.php"] {
    background: white !important;
    background-image: none !important;
    background-color: white !important;
    color: var(--primary-color) !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

header.blog-header div.container div.user-info a.btn.btn-primary[href="editor.php"]:hover {
    background: white !important;
    background-image: none !important;
    background-color: white !important;
    color: var(--primary-color) !important;
    border: none !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover) !important;
}

/* All header buttons same size and centered */
.blog-header .btn,
.blog-header .btn-primary,
.blog-header .btn-secondary {
    padding: 6px 12px !important;
    font-size: 0.85rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 0.3rem !important;
}

/* Header primary button specific styles */
.blog-header .btn-primary {
    background: white !important;
    background-image: none !important;
    color: #2db094 !important;
    border: none !important;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px;
    overflow: visible !important;
    min-height: auto !important;
}

/* Login Form */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-section) 0%, var(--bg-light) 100%);
}

.login-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-card .logo {
    width: 200px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.login-card h2 {
    font-family: 'Lora', serif;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

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

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 176, 148, 0.1);
}

/* Mobile-First Touch-Optimized Buttons */
.btn {
    /* Touch-friendly minimum sizes for 2025 standards */
    min-height: 48px;
    min-width: 48px;
    padding: 12px 24px;
    margin: 8px 4px;
    
    /* Visual styling */
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px; /* Prevents iOS zoom */
    text-decoration: none;
    text-align: center;
    
    /* Layout and interaction */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    cursor: pointer;
    
    /* Touch optimizations */
    touch-action: manipulation; /* Prevents double-tap zoom */
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    
    /* Smooth animations */
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateZ(0); /* Force hardware acceleration */
    will-change: transform, box-shadow;
}

/* Default primary button - EXCEPT header button */
.btn-primary:not(.blog-header .btn-primary) {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover:not(.blog-header .btn-primary) {
    background: linear-gradient(135deg, var(--primary-hover), #2fb396);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Override for content area primary buttons only */
.main-content .btn-primary,
.editor-container .btn-primary,
.container:not(.blog-header *) .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.main-content .btn-primary:hover,
.editor-container .btn-primary:hover,
.container:not(.blog-header *) .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), #2fb396);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

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

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

.btn-success {
    background: #28a745;
    color: white;
}

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

/* btn-sm now uses same size as default btn */

.btn-full {
    width: 100%;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    height: fit-content;
}

.sidebar h3 {
    font-family: 'Lora', serif;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 0.5rem;
}

.sidebar ul li a {
    display: block;
    padding: 10px 15px;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background: var(--bg-section);
    color: var(--primary-color);
    transform: translateX(5px);
}

.main-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: visible !important;
    min-height: auto !important;
    height: auto !important;
}

/* Blog Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    padding-bottom: 20px;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Removed hover effect from blog cards - only buttons should have hover effects */

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

.blog-card-content {
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin: 0;
}

.blog-card h3 {
    font-family: 'Lora', serif;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.blog-card .meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-card .actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
    align-items: flex-end;
}

/* Prvi red - status i objavi */
.blog-card .actions-row-status {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Desktop: hide separate status and publish, show them combined */
.blog-card .actions-row-status-only,
.blog-card .actions-row-publish {
    display: none;
}

/* Desktop: show combined status row with status left + publish right */  
.blog-card .actions-row-status {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Drugi red - uredi i obriši */
.blog-card .actions-row-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.blog-card .actions-row-buttons .btn-sm {
    flex: 1;
}

/* Status badges - disable hover and pointer */
.blog-card .actions .btn[style*="cursor: default"] {
    pointer-events: none;
}

/* Make sure warning button has proper colors */
.blog-card .actions .btn-warning[style*="cursor: default"] {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #212529 !important;
}

.blog-card .actions .btn[style*="cursor: default"]:hover {
    transform: none !important;
}

/* Specific hover override for warning status */
.blog-card .actions .btn-warning[style*="cursor: default"]:hover {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #212529 !important;
}

/* Mobile responsive fixes for buttons */
@media (max-width: 576px) {
    .blog-card .actions {
        gap: 0.5rem;
        align-items: stretch;
    }
    
    /* Mobile: hide desktop combined row, show separate rows */
    .blog-card .actions-row-status {
        display: none;
    }
    
    .blog-card .actions-row-status-only,
    .blog-card .actions-row-publish {
        display: flex !important;
        width: 100%;
        justify-content: flex-start;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    }
    
    .blog-card .actions-row-buttons {
        display: flex;
        gap: 0.4rem;
        justify-content: flex-start;
        width: 100%;
    }
    
    .blog-card .actions-row-status-only .btn-sm,
    .blog-card .actions-row-publish .btn-sm,
    .blog-card .actions-row-publish form,
    .blog-card .actions-row-buttons .btn-sm {
        flex: 1;
        min-width: 0;
        width: 100% !important;
    }
    
    .blog-card .actions-row-publish form {
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
        border: none;
        background: none;
    }
    
    .blog-card .actions-row-publish form .btn-sm {
        width: 100% !important;
        box-sizing: border-box;
        margin: 0 !important;
        padding: 0.3rem 0.25rem;
        border-width: 1px;
        border-style: solid;
    }
    
    .blog-card .actions .btn-sm {
        font-size: 1rem;
        padding: 0.3rem 0.25rem;
        flex: 1;
        min-width: 0;
        height: 32px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .blog-card .actions .btn-sm i {
        font-size: 1rem;
    }
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Editor */
.editor-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.editor-form {
    display: grid;
    gap: 1.5rem;
}

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

textarea.form-control {
    min-height: 200px;
    resize: vertical;
}

/* File Upload */
.file-upload {
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload:hover {
    border-color: var(--primary-color);
    background: var(--bg-section);
}

.file-upload input {
    display: none;
}

/* Responsive Design - Mobile First Approach */

/* Tablet Design */
@media (max-width: 1024px) {
    .container {
        padding: 1.5rem 15px;
    }
    
    .dashboard-grid {
        gap: 1.5rem;
    }
    
    .blog-header .container {
        padding: 0 15px;
    }
    
    .blog-header h1 {
        font-size: 1.5rem;
    }
    
    .blog-card h3 {
        font-size: 1rem;
    }
}

/* Mobile Design */
@media (max-width: 768px) {
    /* Simplified Layout */
    .main-content {
        padding: 1.5rem 1rem;
    }
    
    .container {
        padding: 1rem 10px;
    }
    
    /* Header Mobile */
    .blog-header {
        padding: 0.8rem 0;
    }
    
    .blog-header .container {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
    }
    
    .blog-header h1 {
        font-size: 1.3rem;
        text-align: center;
        margin-bottom: 0;
    }
    
    .user-info {
        justify-content: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .user-info span {
        font-size: 0.9rem;
    }
    
    /* All buttons same size now - no special btn-sm */
    
    /* Login Mobile */
    .login-card {
        margin: 0.5rem;
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .login-card .logo {
        width: 160px;
        margin-bottom: 1.5rem;
    }
    
    .login-card h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Forms Mobile */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .form-control {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
    }
    
    .form-group {
        margin-bottom: 1.2rem;
    }
    
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }
    
    /* Enhanced Mobile Button Optimization */
    .btn {
        /* Premium touch targets for mobile */
        min-height: 56px;
        min-width: 56px;
        padding: 16px 28px;
        margin: 12px 6px;
        
        /* Mobile-optimized typography */
        font-size: 16px; /* Consistent with desktop - prevents zoom */
        font-weight: 600;
        
        /* Enhanced touch feedback */
        border-radius: 12px; /* Slightly less rounded for easier touch */
        
        /* Layout remains consistent */
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        
        /* Mobile-specific touch optimizations */
        position: relative;
        overflow: hidden;
    }
    
    /* Touch feedback animation */
    .btn:active {
        transform: scale(0.96);
        transition: transform 0.1s ease;
    }
    
    /* Ripple effect for better touch feedback */
    .btn::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        transition: width 0.3s, height 0.3s, opacity 0.3s;
        transform: translate(-50%, -50%);
        opacity: 0;
        pointer-events: none;
    }
    
    .btn:active::after {
        width: 100px;
        height: 100px;
        opacity: 1;
    }
    
    .btn-full {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Blog Grid Mobile */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .blog-card {
        border-radius: 12px;
    }
    
    .blog-card-content {
        padding: 1.2rem 0;
        margin: 0;
    }
    
    .blog-card h3 {
        font-size: 1.1rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    
    .blog-card .meta {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }
    
    .blog-card .actions {
        gap: 0.8rem;
        flex-wrap: wrap;
    }
    
    .blog-card .btn {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
    
    /* Dashboard header mobile */
    .main-content h2 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .main-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    /* Editor Mobile */
    .editor-container {
        padding: 1.5rem;
        border-radius: 12px;
        margin: 0.5rem;
    }
    
    .editor-container h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
        text-align: center;
        line-height: 1.2;
    }
    
    textarea.form-control {
        min-height: 150px;
        font-size: 16px; /* Prevents zoom */
    }
    
    /* TinyMCE mobile improvements */
    .tox-tinymce {
        border-radius: 8px !important;
        font-size: 16px !important;
    }
    
    .tox .tox-toolbar__primary {
        flex-wrap: wrap;
        padding: 8px 4px !important;
    }
    
    .tox .tox-tbtn {
        margin: 1px !important;
        min-width: 32px !important;
        height: 32px !important;
    }
    
    /* File upload mobile */
    .file-upload {
        padding: 1.2rem 0.8rem;
        margin: 0.8rem 0;
        border-radius: 8px;
    }
    
    .file-upload i {
        font-size: 2rem !important;
    }
    
    /* Editor form mobile */
    .editor-form .form-group label {
        font-size: 0.95rem;
        font-weight: 600;
        margin-bottom: 0.6rem;
    }
    
    /* Better spacing for form actions */
    .editor-form > div:last-child {
        flex-direction: column;
        gap: 0.8rem !important;
        margin-top: 1.5rem !important;
    }
    
    .editor-form > div:last-child .btn {
        width: 100%;
        padding: 14px;
        font-size: 1rem;
        border-radius: 8px;
    }
    
    /* Alert Mobile */
    .alert {
        padding: 0.8rem;
        border-radius: 8px;
        font-size: 0.9rem;
    }
    
    /* Dashboard Stats Mobile */
    .dashboard-stats {
        text-align: center;
        padding: 1rem;
        background: var(--bg-section);
        border-radius: 10px;
        margin-bottom: 1rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .blog-header .container {
        padding: 0 10px;
    }
    
    .blog-header h1 {
        font-size: 1.2rem;
    }
    
    .user-info {
        font-size: 0.8rem;
    }
    
    .login-card {
        margin: 0.3rem;
        padding: 1.2rem;
    }
    
    .container {
        padding: 0.8rem 8px;
    }
    
    .main-content, .sidebar {
        padding: 1rem;
    }
    
    .blog-card .actions {
        flex-direction: column;
    }
    
    .blog-card .btn {
        width: 100%;
        margin-bottom: 0.3rem;
    }
    
    .editor-container h2 {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

/* Touch & Mobile Enhancements */

/* Better touch targets */
.btn, .form-control, .sidebar ul li a {
    touch-action: manipulation; /* Prevents double-tap zoom */
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Focus states for accessibility */
.btn:focus, .form-control:focus, .sidebar ul li a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading spinner */
.spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Scroll Optimization */
html {
    /* Smooth scrolling with hardware acceleration */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
    scroll-padding-top: 90px; /* Account for fixed header */
}

body {
    /* iOS Safari bounce prevention */
    overscroll-behavior-y: contain;
    
    /* Enable momentum scrolling */
    -webkit-overflow-scrolling: touch;
    
    /* Prevent horizontal scroll */
    overflow-x: hidden;
    
    /* Performance optimizations */
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Scrollable containers optimization */
.main-content,
.editor-container,
.blog-grid {
    /* GPU acceleration for smooth scrolling */
    transform: translateZ(0);
    will-change: scroll-position;
    contain: layout style paint;
}

/* Enhanced scroll performance for mobile */
@media (max-width: 768px) {
    * {
        /* Remove default tap highlights */
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* Allow text selection where needed */
    input, textarea, [contenteditable] {
        -webkit-user-select: auto;
        user-select: auto;
    }
    
    /* Optimize scroll containers */
    .container {
        /* Reduce repaints during scroll */
        backface-visibility: hidden;
        transform: translateZ(0);
    }
    
    /* Fixed header scroll optimization */
    .blog-header.sticky {
        /* Ensure smooth fixed positioning */
        transform: translateZ(0);
        backface-visibility: hidden;
        will-change: transform;
    }
    
    /* Blog cards scroll performance */
    .blog-card {
        /* Optimize rendering during scroll */
        contain: layout style paint;
        transform: translateZ(0);
    }
    
    /* Textarea scroll optimization */
    textarea, .tox-editor-container {
        /* Smooth internal scrolling */
        -webkit-overflow-scrolling: touch;
        overflow-scrolling: touch;
    }
}

/* Simplified Mobile Layout - No More Sidebar */

/* Pull to refresh hint */
.pull-to-refresh {
    text-align: center;
    padding: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

/* Swipe actions for mobile blog cards */
@media (max-width: 768px) {
    .blog-card {
        position: relative;
        overflow: hidden;
    }
    
    .blog-card .swipe-actions {
        position: absolute;
        top: 0;
        right: -200px;
        height: 100%;
        width: 200px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        display: flex;
        align-items: center;
        justify-content: space-around;
        transition: right 0.3s ease;
        z-index: 10;
    }
    
    .blog-card.swiped .swipe-actions {
        right: 0;
    }
    
    .swipe-actions .btn {
        background: white;
        color: var(--primary-color);
        border-radius: 50%;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        padding: 0;
        min-height: auto;
    }
}

/* Better form validation messages */
.form-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: block;
}

.form-control.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Mobile-friendly table alternative */
@media (max-width: 768px) {
    .blog-table {
        display: none;
    }
    
    .blog-cards-mobile {
        display: block;
    }
}

@media (min-width: 769px) {
    .blog-table {
        display: table;
    }
    
    .blog-cards-mobile {
        display: none;
    }
}

/* Sticky header on scroll */
.blog-header.sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(45, 176, 148, 0.2);
}