/*
Theme Name: BigBullBazaar
Theme URI: https://bigbullbazaar.com
Author: BigBullBazaar Team
Author URI: https://bigbullbazaar.com
Description: A professional WordPress theme designed for stock market news and financial content websites. Features dynamic slider, mega menu, category sections, advertising zones, and a responsive red-green color scheme reflecting the stock market theme.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bigbullbazaar
Tags: news, blog, finance, stock-market, responsive, custom-menu, featured-images, threaded-comments, translation-ready, custom-header, custom-logo
*/

:root {
    --bull-green: #16a34a;
    --bear-red: #dc2626;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

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

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

.site-header {
    background-color: var(--dark-bg);
    color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-bar {
    background-color: rgba(0,0,0,0.3);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.market-ticker {
    display: flex;
    gap: 20px;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ticker-up {
    color: var(--bull-green);
}

.ticker-down {
    color: var(--bear-red);
}

.header-main {
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding h1 {
    font-size: 32px;
    font-weight: bold;
    color: var(--white);
}

.site-branding .tagline {
    font-size: 14px;
    color: var(--text-light);
}

.header-ad-zone {
    max-width: 728px;
    min-height: 90px;
    background-color: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(255,255,255,0.2);
    font-size: 12px;
    color: var(--text-light);
}

.main-navigation {
    background: linear-gradient(135deg, var(--bull-green), var(--bear-red));
    position: relative;
    z-index: 1000;
}

.main-navigation .container {
    position: relative;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 15px;
}

.primary-menu {
    list-style: none;
    display: flex;
    align-items: center;
}

.primary-menu > li {
    position: relative;
}

.primary-menu > li > a {
    display: block;
    padding: 15px 20px;
    color: var(--white);
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a {
    background-color: rgba(0,0,0,0.2);
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    display: none;
    min-width: 600px;
    padding: 30px;
    z-index: 999;
}

.primary-menu > li:hover .mega-menu {
    display: block;
}

.mega-menu-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mega-menu-column h3 {
    color: var(--text-dark);
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bull-green);
}

.mega-menu-column ul {
    list-style: none;
}

.mega-menu-column ul li {
    margin-bottom: 8px;
}

.mega-menu-column ul li a {
    color: var(--text-light);
    font-size: 14px;
    display: block;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.mega-menu-column ul li a:hover {
    color: var(--bull-green);
    padding-left: 5px;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    background-color: var(--dark-bg);
    margin-bottom: 40px;
}

.slider-wrapper {
    position: relative;
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 40px;
    color: var(--white);
}

.slide-category {
    display: inline-block;
    background-color: var(--bull-green);
    padding: 5px 15px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.slide-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.2;
}

.slide-excerpt {
    font-size: 16px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.slide-meta {
    font-size: 14px;
    opacity: 0.7;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.slider-btn {
    pointer-events: all;
    background-color: rgba(255,255,255,0.3);
    border: none;
    color: var(--white);
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-btn:hover {
    background-color: rgba(255,255,255,0.5);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--white);
}

.content-area {
    padding: 40px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.category-section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--bull-green);
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background-color: var(--bull-green);
}

.view-all {
    color: var(--bull-green);
    font-size: 14px;
    font-weight: 600;
}

.view-all:hover {
    color: var(--bear-red);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.news-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

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

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

.news-card:hover .news-card-image img {
    transform: scale(1.1);
}

.news-card-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--bull-green);
    color: var(--white);
    padding: 5px 10px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.news-card-content {
    padding: 20px;
}

.news-card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--text-dark);
}

.news-card-title:hover {
    color: var(--bull-green);
}

.news-card-excerpt {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
}

.ad-zone {
    background-color: var(--white);
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    border: 1px dashed var(--border-color);
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 14px;
}

.sidebar-widget {
    background-color: var(--white);
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.widget-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bull-green);
}

.trending-list {
    list-style: none;
}

.trending-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.trending-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.trending-number {
    font-size: 24px;
    font-weight: bold;
    color: var(--bull-green);
    min-width: 30px;
}

.trending-content h4 {
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.trending-content h4:hover {
    color: var(--bull-green);
}

.trending-meta {
    font-size: 12px;
    color: var(--text-light);
}

.site-footer {
    background-color: var(--dark-bg);
    color: var(--white);
    margin-top: 60px;
}

.footer-widgets {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-widget h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: var(--text-light);
    font-size: 14px;
}

.footer-widget ul li a:hover {
    color: var(--bull-green);
}

.footer-bottom {
    background-color: rgba(0,0,0,0.3);
    padding: 20px 0;
    text-align: center;
}

.copyright {
    font-size: 14px;
    color: var(--text-light);
}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mega-menu-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .primary-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--dark-bg);
    }
    
    .primary-menu.active {
        display: flex;
    }
    
    .primary-menu > li {
        width: 100%;
    }
    
    .mega-menu {
        position: static;
        min-width: auto;
    }
    
    .mega-menu-columns {
        grid-template-columns: 1fr;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .slide-title {
        font-size: 24px;
    }
    
    .slide img {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .market-ticker {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .slide-title {
        font-size: 20px;
    }
    
    .slide-content {
        padding: 20px;
    }
}
