/* PetBlip Blog - COMPLETE COLOR FIX - All Pages */
/* Primary: #DC143C (Red) | Secondary: #1E3A8A (Blue) */

/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    line-height: 1.6;
}

/* ===== HEADERS - DEEP BLUE ===== */
header, .blog-header, .post-header, header.blog-header {
    background: linear-gradient(135deg, #1E3A8A 0%, #0f172a 100%) !important;
    color: white !important;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.header-container { max-width: 1400px; margin: 0 auto; }
.blog-header h1, .post-header h1 { font-size: 42px; margin-bottom: 10px; font-weight: 700; color: white; }
.blog-header p { font-size: 18px; opacity: 0.9; margin-bottom: 20px; color: white; }

/* ===== NAVIGATION ===== */
.header-nav { display: flex; gap: 15px; margin-top: 20px; flex-wrap: wrap; }
.header-nav a { 
    padding: 10px 20px; 
    background: rgba(255,255,255,0.1); 
    border-radius: 8px; 
    text-decoration: none; 
    color: white !important; 
    font-weight: 600; 
    transition: all 0.3s; 
}
.header-nav a:hover { background: rgba(255,255,255,0.2); }

/* ===== BUTTONS - RED ===== */
.btn-create, .btn-submit, .btn-primary, .btn-publish, button[type="submit"], input[type="submit"] {
    background: linear-gradient(135deg, #DC143C 0%, #b8102f 100%) !important;
    color: white !important;
    padding: 12px 24px;
    border: none !important;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-create:hover, .btn-submit:hover, .btn-primary:hover, button[type="submit"]:hover {
    background: linear-gradient(135deg, #b8102f 0%, #DC143C 100%) !important;
    transform: translateY(-2px);
}

/* ===== MAIN CONTENT ===== */
.blog-main { max-width: 1400px; margin: 40px auto; padding: 0 30px; }

/* ===== SECTIONS ===== */
.featured-section, .posts-grid-section, .category-filter, .post-content, .form-container {
    background: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Section Headings - BLUE */
/* Section headings ONLY (not headers) */
.blog-main h1,
.blog-main h2,
.blog-main h3.section-title,
.featured-section h2,
.posts-grid-section h2,
.category-filter h3 {
    color: #1E3A8A;
    margin-bottom: 20px;
}


/* ===== CATEGORY BADGES - RED ===== */
.category-badge, .tag, span.category-badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #DC143C 0%, #b8102f 100%) !important;
    color: white !important;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* ===== CATEGORY FILTER ===== */
.category-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.category-btn {
    padding: 10px 20px;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s;
}
.category-btn:hover { background: #e0e0e0; border-color: #DC143C; }
.category-btn.active {
    background: linear-gradient(135deg, #DC143C 0%, #b8102f 100%) !important;
    color: white !important;
    border-color: #DC143C;
}

/* ===== FEATURED POSTS ===== */
.featured-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.featured-post {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
}
.featured-post:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
.featured-image { width: 100%; height: 250px; overflow: hidden; background: #f5f5f5; }
.featured-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.featured-post:hover .featured-image img { transform: scale(1.05); }
.featured-content { padding: 25px; }
.featured-content h3 a { color: #333; text-decoration: none; transition: color 0.3s; }
.featured-content h3 a:hover { color: #DC143C; }

/* ===== POST GRID ===== */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s;
}
.post-card:hover { transform: translateY(-5px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.post-card-image { width: 100%; height: 200px; overflow: hidden; background: #f5f5f5; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.post-card:hover .post-card-image img { transform: scale(1.05); }
.post-card-content { padding: 20px; }
.post-card-content h3 a { color: #333; text-decoration: none; transition: color 0.3s; }
.post-card-content h3 a:hover { color: #DC143C; }
.read-more { display: inline-block; color: #DC143C !important; font-weight: 600; text-decoration: none; transition: all 0.3s; }
.read-more:hover { color: #b8102f !important; transform: translateX(3px); }

/* ===== POST META ===== */
.post-meta { display: flex; gap: 10px; align-items: center; font-size: 14px; color: #999; margin-top: 10px; }
.excerpt { color: #666; line-height: 1.6; margin: 10px 0; font-size: 14px; }

/* ===== PAGINATION - RED ===== */
.pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 40px; }
.page-btn, .pagination a {
    padding: 12px 24px;
    background: linear-gradient(135deg, #DC143C 0%, #b8102f 100%) !important;
    color: white !important;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}
.page-btn:hover, .pagination a:hover {
    background: linear-gradient(135deg, #b8102f 0%, #DC143C 100%) !important;
    transform: translateY(-2px);
}
.page-info { color: #666; font-weight: 600; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #333; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #DC143C !important;
}

/* ===== INFO BOXES ===== */
.info-box, .alert-info {
    background: #fff3cd !important;
    border-left: 4px solid #DC143C !important;
    color: #856404 !important;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.error { background: #f8d7da; color: #721c24; padding: 15px 20px; border-radius: 8px; border-left: 4px solid #DC143C; }
.success { background: #d4edda; color: #155724; padding: 15px 20px; border-radius: 8px; border-left: 4px solid #28a745; }

/* ===== NO POSTS ===== */
.no-posts { text-align: center; padding: 60px 20px; color: #666; }
.no-posts p { font-size: 18px; margin-bottom: 20px; }

/* ===== FOOTER - BLUE ===== */
.blog-footer, footer {
    background: linear-gradient(135deg, #1E3A8A 0%, #0f172a 100%) !important;
    color: white !important;
    padding: 30px;
    text-align: center;
    margin-top: 60px;
}
.blog-footer p, footer p { margin: 10px 0; color: white; }
.blog-footer a, footer a { color: white !important; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3); transition: all 0.3s; }
.blog-footer a:hover, footer a:hover { color: #DC143C !important; border-bottom-color: #DC143C; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .blog-header h1, .post-header h1 { font-size: 32px; }
    .header-nav { flex-direction: column; }
    .blog-main { padding: 0 20px; }
    .featured-grid, .posts-grid { grid-template-columns: 1fr; }
    .pagination { flex-direction: column; }
}

/* ===== KILL ANY REMAINING CYAN/TEAL ===== */
[style*="#17B9D1"] { color: #DC143C !important; }
[style*="background:#17B9D1"], [style*="background-color:#17B9D1"] { background: linear-gradient(135deg, #1E3A8A 0%, #0f172a 100%) !important; }
