/* Blog Page Styles - Matching Fooodis Design */

html {
    font-size: 16px;
}

:root {
    --primary-color: #e8f24c; /* Yellow accent color */
    --secondary-color: #1e2127; /* Dark background */
    --text-color: #ffffff; /* White text */
    --accent-color: #c7d037; /* Darker yellow for hover states */
    --dark-accent: #1d2029; /* Slightly darker background for cards */
    --light-gray: #f5f5f5; /* Light gray for backgrounds */
    --border-color: rgba(232, 242, 76, 0.3); /* Semi-transparent yellow for borders */
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); /* Shadow for cards */
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Blog Banner Section */
.blog-banner-section {
    width: 100%;
    margin-top: 20px;
    overflow: hidden;
}

.blog-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-banner {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 40px;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.blog-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-banner:hover img {
    transform: scale(1.05);
}

.blog-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    box-sizing: border-box;
}

.blog-banner-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--primary-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.blog-banner-description {
    font-size: 16px;
    margin: 0;
    max-width: 80%;
    color: var(--text-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Main Blog Content */
.blog-content-section {
    padding: 40px 0 80px;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
}

.blog-main {
    flex: 1;
}

.blog-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--primary-color);
}

.blog-subtitle {
    font-size: 18px;
    font-weight: 300;
    margin: 0 0 40px;
    color: var(--text-color);
    opacity: 0.8;
}

/* Blog Posts Grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.blog-post-card {
    background-color: var(--dark-accent);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.blog-post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

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

.blog-post-category {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.blog-post-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px;
    color: var(--text-color);
    line-height: 1.3;
}

.blog-post-excerpt {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
    margin: 0 0 20px;
    flex-grow: 1;
}

/* Read more link */
.read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.read-more:hover {
    color: var(--accent-color);
}

/* Share container and social icons */
.share-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.2s, opacity 0.2s;
    font-size: 12px;
}

.social-icons a:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.social-icons a:nth-child(1) {
    background-color: #3b5998; /* Facebook */
}

.social-icons a:nth-child(2) {
    background-color: #1da1f2; /* Twitter */
}

.social-icons a:nth-child(3) {
    background-color: #0077b5; /* LinkedIn */
}

.social-icons a:nth-child(4) {
    background-color: #ea4335; /* Email */
}

/* Blog Sidebar */
.blog-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.sidebar-section {
    background-color: var(--dark-accent);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--card-shadow);
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.category-list, .subcategory-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li, .subcategory-list li {
    margin-bottom: 10px;
}

.category-list a, .subcategory-list a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.category-list a:hover, .subcategory-list a:hover {
    color: var(--primary-color);
}

.category-count, .subcategory-count {
    float: right;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    background-color: rgba(232, 242, 76, 0.1);
    color: var(--text-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.tag:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Blog Post Modal */
.blog-post-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-post-modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background-color: var(--secondary-color);
    margin: 5% auto;
    padding: 0;
    width: 80%;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalFadeIn 0.4s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-color);
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 30px;
}

.modal-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

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

.modal-category {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin: 20px 0 10px;
    letter-spacing: 1px;
}

.modal-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 20px;
    color: var(--text-color);
    line-height: 1.3;
}

.modal-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.modal-tag {
    display: inline-block;
    background-color: rgba(232, 242, 76, 0.1);
    color: var(--text-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    border: 1px solid var(--border-color);
}

/* Footer Styles */
.footer-section {
    background-color: #1e2127;
    color: #ffffff;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 0 0 200px;
}

.logoland-logo {
    width: 180px;
    height: auto;
}

.footer-info {
    flex: 1;
    min-width: 300px;
}

.footer-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #e8f24c;
    font-weight: 600;
}

.footer-description {
    line-height: 1.8;
    color: #f5f5f5;
    font-size: 15px;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-button {
    display: inline-block;
    background-color: transparent;
    color: #e8f24c;
    border: 2px solid #e8f24c;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.footer-button:hover {
    background-color: #e8f24c;
    color: #1e2127;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-copyright {
        margin-top: 20px;
    }
}

/* Blog Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 15px;
}

.pagination-btn {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 8px;
}

.page-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background-color: transparent;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-number:hover {
    background-color: rgba(232, 242, 76, 0.2);
}

.page-number.active {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .blog-container {
        flex-direction: column;
    }
    
    .blog-sidebar {
        width: 100%;
        position: static;
        margin-top: 40px;
    }
    
    .modal-content {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .blog-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .blog-banner-title {
        font-size: 24px;
    }
    
    .blog-banner-description {
        font-size: 14px;
    }
    
    .blog-title {
        font-size: 28px;
    }
    
    .blog-subtitle {
        font-size: 16px;
    }
    
    .modal-title {
        font-size: 24px;
    }
    
    .modal-image {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-banner {
        height: 250px;
    }
    
    .blog-banner-overlay {
        padding: 20px;
    }
    
    .blog-banner-title {
        font-size: 20px;
    }
    
    .blog-banner-description {
        font-size: 13px;
        max-width: 100%;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-image {
        height: 200px;
    }
}

/* Full width no margin container */
.full-width-container {
    width: 100%;
    margin: 0;
}
