
/* blog.css - Updated for a neutral, professional, and inviting look */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1f2937;
    color: white;
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-consent p {
    margin: 0;
    font-size: 0.9rem;
}

.cookie-consent a {
    color: white;
    text-decoration: underline;
}

.cookie-consent a:hover {
    color: #e5e7eb;
}

@media (max-width: 768px) {
    .cookie-consent .col-md-4 {
        text-align: center !important;
        margin-top: 1rem;
    }
}

/* Global style adjustments */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background-color: #ffffff;
    color: #374151;
    line-height: 1.6;
    font-size: 1rem;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

h1 { 
    font-size: 2.25rem; 
    font-weight: 700;
    line-height: 1.2;
}
h2 { 
    font-size: 1.875rem; 
    font-weight: 600;
    line-height: 1.3;
}
h3 { 
    font-size: 1.5rem; 
    font-weight: 600;
}
h4 { 
    font-size: 1.25rem; 
    font-weight: 600;
}
h5 { 
    font-size: 1.125rem; 
    font-weight: 600;
}
h6 { 
    font-size: 1rem; 
    font-weight: 600;
}

p {
    color: #6b7280;
    margin-bottom: 1.25rem;
    line-height: 1.6;
    font-size: 1rem;
}

/* Navbar customizations */
.logo {
    height: 80px;
    width: auto;
}

/* Use full width for navbar */
.navbar .container {
    max-width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Navbar links - make them black with high specificity */
.navbar.navbar-light .navbar-brand,
.navbar.navbar-light .navbar-brand:hover,
.navbar.navbar-light .navbar-brand:focus {
    color: #000000 !important;
}

.navbar.navbar-light .navbar-nav .nav-link,
.navbar.navbar-light .navbar-nav .nav-link:hover,
.navbar.navbar-light .navbar-nav .nav-link:focus {
    color: #000000 !important;
}

.navbar.navbar-light .navbar-nav .nav-link:hover {
    color: #333333 !important;
}

/* Main content area */
main {
    padding: 1rem;
    background-color: #ffffff;
}

/* Blog Grid Layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Post Cards */
.post-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.post-card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 1.5rem;
}

.post-card-category {
    margin-bottom: 0.75rem;
}

.post-card-title {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.post-card-title a {
    color: #111827 !important;
    text-decoration: none !important;
}

.post-card-title a:hover {
    color: #0d6efd !important;
}

.post-card-excerpt {
    color: #6b7280;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.post-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #9ca3af;
    font-weight: 500;
}

.post-card-footer {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

/* Hero Section */
.hero-section {
    margin-bottom: 3rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-image {
    position: relative;
    height: 500px;
    overflow: hidden;
}

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

.hero-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.hero-content {
    color: white;
    max-width: 600px;
}

.hero-category {
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-title a {
    color: white !important;
    text-decoration: none !important;
}

.hero-title a:hover {
    color: #f8f9fa !important;
}

.hero-excerpt {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    opacity: 0.95;
}

.hero-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Category Filter Navigation */
.category-filter {
    margin-bottom: 2rem;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 0;
}

.category-pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    color: #6c757d;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.category-pill:hover {
    background-color: #e9ecef;
    color: #495057;
    transform: translateY(-1px);
}

.category-pill.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.category-pill.active:hover {
    background-color: #0b5ed7;
    color: white;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

/* Responsive Grid */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-card-content {
        padding: 1rem;
    }
    
    .post-card-image {
        height: 180px;
    }
    
    .hero-image {
        height: 400px;
    }
    
    .hero-overlay {
        padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-excerpt {
        font-size: 1rem;
    }
}

/* 404 Error Page */
.error-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    text-align: center;
}

.error-content {
    max-width: 600px;
    padding: 2rem;
}

.error-icon {
    margin-bottom: 2rem;
}

.error-code {
    font-size: 6rem;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 0;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.error-message {
    margin-bottom: 2rem;
}

.error-message h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #111827;
}

.error-message p {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 0;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.error-suggestions {
    text-align: left;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #0d6efd;
}

.error-suggestions h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #111827;
}

.error-suggestions ul {
    margin-bottom: 0;
}

.error-suggestions li {
    margin-bottom: 0.5rem;
    color: #6b7280;
}

.error-suggestions a {
    color: #0d6efd;
    text-decoration: none;
}

.error-suggestions a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .error-code {
        font-size: 4rem;
    }
    
    .error-message h2 {
        font-size: 1.5rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Metadata styling */
.date {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.date::before {
    content: "🕒";
}

/* Sidebar */
#sidebar {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    margin-top: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-left: 3px solid #0d6efd;
}

#sidebar h2::before {
    content: "# ";
    color: #0d6efd;
}

/* Footer */
footer {
    font-size: 0.9rem;
    color: #000000 !important;
    background-color: #ffffff;
    border-top: 1px solid #dee2e6;
}

footer p {
    color: #000000 !important;
}

footer a {
    color: #000000 !important;
    text-decoration: none;
}

footer a:hover {
    color: #333333 !important;
    text-decoration: underline;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    main, #sidebar {
        margin-top: 1rem;
    }
}

a {
    text-decoration: none;
    color: #000000;
}

a:hover {
    text-decoration: underline; /* Optional: show underline on hover */
    color: #333333;
}

/* Blog post titles - ensure they're black */
.post-preview h2 a, .post-preview h3 a {
    color: #000000 !important;
    text-decoration: none !important;
}

.post-preview h2 a:hover, .post-preview h3 a:hover {
    color: #333333 !important;
    text-decoration: underline !important;
}

/* Post images - main content */
.post-image img {
    max-width: 600px;
    max-height: 400px;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin: 20px auto;
    display: block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Post thumbnail images - list view */
.post-thumbnail img {
    max-width: 250px;
    max-height: 200px;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto 1rem auto;
    display: block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive image sizing */
@media (max-width: 768px) {
    .post-image img {
        max-width: 100%;
        max-height: 300px;
        margin: 15px auto;
    }
    
    .post-thumbnail img {
        max-width: 100%;
        max-height: 180px;
        margin: 0 auto 0.5rem auto;
    }
}

@media (max-width: 480px) {
    .post-image img {
        max-height: 250px;
        margin: 10px auto;
    }
    
    .post-thumbnail img {
        max-height: 150px;
    }
}

/* Post content styling */
.post-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.post-content h1, .post-content h2, .post-content h3, 
.post-content h4, .post-content h5, .post-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.post-content h1 { border-bottom: 3px solid #3498db; padding-bottom: 0.5rem; }
.post-content h2 { border-bottom: 2px solid #3498db; padding-bottom: 0.3rem; }
.post-content h3 { border-left: 4px solid #3498db; padding-left: 1rem; }

/* Lists */
.post-content ul, .post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

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

.post-content ul li {
    list-style-type: disc;
}

.post-content ol li {
    list-style-type: decimal;
}

/* Blockquotes */
.post-content blockquote {
    border-left: 4px solid #3498db;
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-radius: 0 0.375rem 0.375rem 0;
    font-style: italic;
    color: #555;
}

.post-content blockquote p {
    margin: 0;
}

/* Code blocks */
.post-content pre {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.post-content code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9rem;
    color: #e74c3c;
}

.post-content pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

/* Tables */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: #fff;
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.post-content th, .post-content td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.post-content th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.post-content tr:hover {
    background-color: #f8f9fa;
}

/* Links in content */
.post-content a {
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px dotted #3498db;
    transition: all 0.2s;
}

.post-content a:hover {
    color: #2980b9;
    border-bottom-style: solid;
}

/* Images in content */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Horizontal rules */
.post-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, #3498db, #2980b9);
    margin: 2rem 0;
    border-radius: 1px;
}