/*
Theme Name: bigmax
Theme URI: https://example.com/
Author: Gemini
Author URI: https://google.com/
Description: A custom WordPress theme for bigmax, a blog website focusing on bigmax.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, custom-theme, modern, responsive
Text Domain: bigmax
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
# Header
# Footer
# Pages & Single Posts
# Home Page
# Animations
# Responsive
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #f2f2f2;
    --accent-color: #ff4500;
    --font-family-sans-serif: "Poppins", sans-serif;
    --font-family-serif: "Lora", serif;
}

body {
    font-family: var(--font-family-sans-serif);
    background-color: var(--secondary-color);
    color: var(--primary-color);
    margin: 0;
    line-height: 1.6;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform-origin: top center;
    transition: transform 0.3s ease;
}

.site-header.scrolled {
    transform: scaleY(0.9);
}

.site-branding {
    font-size: 1.5rem;
    font-weight: 700;
}

.main-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

/* Sticky Header */
.site-header.sticky-header {
    position: fixed;
    width: 100%;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-widget-area {
    padding: 1rem;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
}

.footer-nav a {
    color: var(--secondary-color);
}

/* Social Media Links */
.social-media-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.social-media-links a {
    color: var(--secondary-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-media-links a:hover {
    color: var(--accent-color);
}

/*--------------------------------------------------------------
# Pages & Single Posts
--------------------------------------------------------------*/
.page-hero, .entry-header-single {
    height: 60vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-title, .entry-header-single .entry-title {
    font-size: 3rem;
    color: white;
    text-align: center;
    position: absolute;
    bottom: 20px;
    left: 20px;
    transform: translateX(0);
    background-color: rgba(0,0,0,0.5);
    padding: 1rem;
}

.page-content, .entry-content-single {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.main-content {
    grid-column: 1 / 2;
}

.sidebar-latest-posts {
    grid-column: 2 / 3;
}

.category-badge {
    background-color: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.8rem;
}

/* News-specific typography adjustments */
body {
    font-size: 1.1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-serif);
    line-height: 1.2;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.entry-content-single p {
    margin-bottom: 1.5em;
    line-height: 1.8;
}

/* Author Box */
.author-box {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.author-avatar {
    margin-right: 1.5rem;
}

.author-avatar img {
    border-radius: 50%;
    width: 90px;
    height: 90px;
    object-fit: cover;
}

.author-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
}

.author-info p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.author-info .author-link {
    font-size: 0.9rem;
    color: var(--accent-color);
}

/* Social Share Buttons */
.social-share-buttons {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.social-share-buttons h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.social-share-buttons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: #eee;
    color: var(--primary-color);
    margin-right: 0.5rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-share-buttons a:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Related Posts */
.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.related-posts h3 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.related-posts .masonry-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/*--------------------------------------------------------------
# Home Page
--------------------------------------------------------------*/
.home-hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.home-hero-content {
    max-width: 800px;
}

.home-hero h1 {
    font-size: 4rem;
    margin: 0;
}

.about-section, .faq-section, .latest-posts-section, .featured-news-section, .category-news-section-1, .category-news-section-2, .trending-news-section {
    padding: 4rem 2rem;
    background-color: var(--secondary-color);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.bento-item {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
}

.faq-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    padding: 1rem;
    background-color: white;
    margin-bottom: 1rem;
    cursor: pointer;
}

.faq-content {
    display: none;
    padding-top: 1rem;
}

/* FAQ Section Styling */
.faq-timeline {
    border-left: 2px solid var(--accent-color);
    padding-left: 20px;
    position: relative;
}

.faq-timeline .faq-item {
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 15px 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
    cursor: pointer;
}

.faq-timeline .faq-item::before {
    content: '';
    position: absolute;
    left: -29px; /* Adjust to align with the timeline */
    top: 20px;
    width: 15px;
    height: 15px;
    background-color: var(--accent-color);
    border-radius: 50%;
    border: 3px solid var(--secondary-color);
}

.faq-timeline .faq-item h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-timeline .faq-item h3::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-timeline .faq-item.active h3::after {
    transform: rotate(45deg);
}

.faq-timeline .faq-content {
    padding-top: 10px;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.masonry-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
}

.masonry-item img {
    transition: transform 0.3s ease;
}

.masonry-item:hover img {
    transform: scale(1.05);
}

/* Latest Posts Section - News Layout */
.latest-posts-section .masonry-grid,
.featured-news-section .masonry-grid,
.category-news-section-1 .masonry-grid,
.category-news-section-2 .masonry-grid,
.trending-news-section .masonry-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.latest-posts-section .masonry-item,
.featured-news-section .masonry-item,
.category-news-section-1 .masonry-item,
.category-news-section-2 .masonry-item,
.trending-news-section .masonry-item {
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.latest-posts-section .masonry-item img,
.featured-news-section .masonry-item img,
.category-news-section-1 .masonry-item img,
.category-news-section-2 .masonry-item img,
.trending-news-section .masonry-item img {
    width: 100%;
    height: 200px; /* Fixed height for news thumbnails */
    object-fit: cover;
}

.latest-posts-section .masonry-item .post-title,
.featured-news-section .masonry-item .post-title,
.category-news-section-1 .masonry-item .post-title,
.category-news-section-2 .masonry-item .post-title,
.trending-news-section .masonry-item .post-title {
    font-size: 1.3rem;
    margin: 1rem 1rem 0.5rem 1rem;
}

.latest-posts-section .masonry-item .post-excerpt,
.featured-news-section .masonry-item .post-excerpt,
.category-news-section-1 .masonry-item .post-excerpt,
.category-news-section-2 .masonry-item .post-excerpt,
.trending-news-section .masonry-item .post-excerpt {
    font-size: 0.9rem;
    color: #555;
    margin: 0 1rem 1rem 1rem;
}

.latest-posts-section .masonry-item .post-date,
.featured-news-section .masonry-item .post-date,
.category-news-section-1 .masonry-item .post-date,
.category-news-section-2 .masonry-item .post-date,
.trending-news-section .masonry-item .post-date {
    font-size: 0.8rem;
    color: #888;
    margin: 0 1rem 1rem 1rem;
    text-align: right;
}

/*--------------------------------------------------------------
# Animations
--------------------------------------------------------------*/
.bento-item, .faq-item, .masonry-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.bento-item.in-view, .faq-item.in-view, .masonry-item.in-view {
    opacity: 1;
    transform: translateY(0);
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 992px) {
    .page-content, .entry-content-single {
        grid-template-columns: 1fr; /* Stack content and sidebar */
    }
    .sidebar-latest-posts {
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
    }

    .main-navigation.toggled {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: center;
    }

    .hamburger-menu {
        display: block;
    }

    .page-content, .entry-content-single {
        grid-template-columns: 1fr;
    }

    .sidebar-latest-posts {
        margin-top: 2rem;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }
    .author-avatar {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    .social-share-buttons {
        text-align: center;
    }
    .social-share-buttons a {
        margin: 0.5rem;
    }
    .related-posts .masonry-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .featured-news-section h2, .category-news-section-1 h2, .category-news-section-2 h2, .trending-news-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .home-hero h1 {
        font-size: 2.5rem;
    }
    .page-title, .entry-header-single .entry-title {
        font-size: 2rem;
    }
    .latest-posts-section .masonry-grid,
    .featured-news-section .masonry-grid,
    .category-news-section-1 .masonry-grid,
    .category-news-section-2 .masonry-grid,
    .trending-news-section .masonry-grid {
        grid-template-columns: 1fr;
    }
}
