/* Blog System Styles */

/* --- Blog Listing --- */
.blog-header {
    text-align: center;
    padding: 60px 0 40px;
    background: #f8f9fa;
    margin-bottom: 40px;
}

.blog-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
    height: 200px;
    background-color: #e9ecef;
    /* Placeholder color */
    background-size: cover;
    background-position: center;
    position: relative;
}

.blog-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.blog-card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: 700;
    color: #333;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.blog-card-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    margin-top: auto;
    font-size: 0.85rem;
    color: #888;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Single Post - Infographic Style --- */
.article-container {
    max-width: 900px;
    /* Slightly wider to accommodate sidebar */
    margin: 0 auto;
    padding: 0 20px;
}

/* New Header Layout with Sidebar */
.header-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-top: 60px;
    margin-bottom: 40px;
    position: relative;
}

.header-social-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: sticky;
    top: 100px;
    /* Stick when scrolling if needed */
    padding-top: 10px;
}

/* Update Article Header to take remaining space */
.article-header {
    flex: 1;
    text-align: left;
    /* Alignment left for title */
    margin-bottom: 0;
    margin-top: 0 !important;
    /* Override inline style */
}

/* Styles for Circular Social Buttons */
.social-circle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-fb {
    background-color: #03051a;
}

/* Dark Navy matches UI */
.btn-tw {
    background-color: #03051a;
}

.btn-li {
    background-color: #03051a;
}

.social-circle-btn:hover {
    transform: scale(1.15) rotate(5deg);
    color: #fff;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Specific hover colors */
.btn-fb:hover {
    background-color: #1877f2;
}

.btn-tw:hover {
    background-color: #000;
}

.btn-li:hover {
    background-color: #0077b5;
}


.article-category {
    display: inline-block;
    color: #ff5722;
    /* Warning orange/red style from screenshot */
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    padding: 0;
}

.article-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #1a1a1a;
    font-weight: 800;
    /* Bolder as per screenshot */
}

.article-meta {
    display: flex;
    justify-content: flex-start;
    /* Align left */
    align-items: center;
    gap: 20px;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.article-hero {
    margin-bottom: 50px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.article-hero img {
    width: 100%;
    height: auto;
    display: block;
}

/* Infographic Sections */
.infographic-section {
    margin-bottom: 60px;
    padding: 40px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.infographic-section:nth-child(even) {
    background: #fdfdfd;
}

.infographic-section h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: #2c3e50;
    border-left: 5px solid #007bff;
    padding-left: 15px;
}

.infographic-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.infographic-image-placeholder {
    width: 100%;
    height: 300px;
    background-color: #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-weight: 500;
    font-size: 1.2rem;
}

.infographic-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

/* Key Takeaways Box */
.key-takeaways {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    border: 1px solid #cce5ff;
    border-radius: 12px;
    padding: 35px;
    margin: 60px 0;
}

.key-takeaways h3 {
    color: #0056b3;
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.key-takeaways ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.key-takeaways li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #333;
}

.key-takeaways li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* Footer Blocks */
.article-footer-block {
    margin-top: 60px;
    border-top: 1px solid #eee;
    padding-top: 40px;
    font-size: 0.9rem;
    color: #666;
}

.responsible-gambling-notice {
    background: #eee;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 40px;
    font-weight: 500;
}

@media (min-width: 768px) {
    .infographic-content {
        flex-direction: row;
        align-items: center;
    }

    .infographic-section:nth-child(even) .infographic-content {
        flex-direction: row-reverse;
    }

    .infographic-image-placeholder,
    .infographic-text {
        flex: 1;
    }

    .article-title {
        font-size: 3.5rem;
    }
}

/* AI Summary Toolbar */
.ai-summary-toolbar {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    color: #667085;
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
    justify-content: flex-start;
    /* Align left */
}

.ai-summary-label {
    font-weight: 500;
    white-space: nowrap;
}

.ai-summary-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: #03051a;
    /* Dark navy */
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 110px;
    justify-content: center;
}

.ai-btn:hover {
    background-color: #1a1f3c;
    transform: translateY(-1px);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Specific selector to ensure priority */
.ai-summary-buttons .ai-btn .ai-logo {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    /* Force white color by inverting black to white */
    filter: invert(1) brightness(2) !important;
}

.ai-chatgpt:hover {
    border-color: #10a37f;
}

.ai-perplexity:hover {
    border-color: #22b8cf;
}

.ai-grok:hover {
    border-color: #fff;
}

.ai-google:hover {
    border-color: #4285f4;
}

/* Responsive adjustments for header */
/* Responsive adjustments for header */
@media (max-width: 768px) {
    .header-wrapper {
        flex-direction: column;
        gap: 0;
    }

    .header-social-sidebar {
        display: none;
        /* Hide top sidebar on mobile */
    }

    .article-header {
        width: 100%;
    }

    /* Smaller Title for Mobile */
    .article-title {
        font-size: 2rem;
        /* Reduced from 3.5rem desktop/3rem default */
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .ai-summary-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .ai-summary-buttons {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
    }

    .ai-btn {
        width: 100%;
        min-width: 0;
    }

    /* Mobile Footer Social Share */
    .mobile-social-share {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 20px;
    }
}

@media (min-width: 769px) {
    .mobile-social-share {
        display: none;
        /* Hide footer share on desktop */
    }
}