/*
Theme Name: Bargin-Buy Theme
Theme URI: https://bargin-buy.com
Author: Bargin-Buy Team
Author URI: https://bargin-buy.com
Description: A professional affiliate marketing WordPress theme designed for product reviews and recommendations. Features clean design, mobile-responsive layout, and optimized for SEO.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bargin-buy
Tags: blog, e-commerce, affiliate, reviews, responsive, seo-ready

This theme is designed specifically for Bargin-Buy.com to promote Amazon Associates, CJ Affiliate, and ClickBank products.
*/

/* ==========================================================================
   1. CSS RESET & BASE STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
    font-size: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #007BFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

ul, ol {
    margin-left: 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #1a1a1a;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.25rem;
}

/* ==========================================================================
   2. LAYOUT UTILITIES
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */

.site-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo {
    max-height: 50px;
    width: auto;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #007BFF;
    margin: 0;
}

.site-title a {
    color: #007BFF;
    text-decoration: none;
}

.site-title a:hover {
    color: #0056b3;
    text-decoration: none;
}

.site-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Navigation Menu */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    color: #333333;
    font-weight: 500;
    padding: 10px 0;
    display: block;
    text-decoration: none;
}

.primary-menu a:hover {
    color: #007BFF;
    text-decoration: none;
}

/* Search Form */
.header-search-form {
    position: relative;
}

.header-search-form input[type="search"] {
    padding: 8px 35px 8px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    width: 200px;
    outline: none;
    transition: all 0.3s ease;
}

.header-search-form input[type="search"]:focus {
    border-color: #007BFF;
    width: 250px;
}

.header-search-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #007BFF;
    cursor: pointer;
    padding: 5px 10px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #007BFF;
    color: #ffffff;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #0056b3;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

.btn-primary {
    background-color: #007BFF;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-success {
    background-color: #28a745;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* ==========================================================================
   5. FEATURED REVIEWS SECTION
   ========================================================================== */

.featured-reviews {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.review-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.review-card-content {
    padding: 20px;
}

.review-card-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.review-card-title a {
    color: #333333;
    text-decoration: none;
}

.review-card-title a:hover {
    color: #007BFF;
}

.review-card-excerpt {
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.stars {
    color: #ffc107;
    font-size: 1.1rem;
}

.rating-text {
    color: #666;
    font-size: 0.9rem;
}

.read-more {
    color: #007BFF;
    font-weight: 600;
}

/* ==========================================================================
   6. LATEST BLOG POSTS SECTION
   ========================================================================== */

.latest-posts {
    padding: 60px 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.post-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.post-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.post-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-content {
    padding: 20px;
}

.post-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 10px;
}

.post-card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.post-card-title a {
    color: #333333;
    text-decoration: none;
}

.post-card-title a:hover {
    color: #007BFF;
}

/* ==========================================================================
   7. ABOUT SECTION
   ========================================================================== */

.about-intro {
    padding: 60px 0;
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* ==========================================================================
   8. PRODUCT REVIEW BOX
   ========================================================================== */

.product-review-box {
    background: #f8f9fa;
    border: 3px solid #007BFF;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.product-image-container {
    flex: 0 0 300px;
}

.product-image {
    width: 100%;
    border-radius: 5px;
}

.product-details {
    flex: 1;
}

.product-name {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.product-rating .stars {
    font-size: 1.3rem;
}

.product-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.affiliate-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.amazon-btn {
    background-color: #ff9900;
    color: #333333;
}

.amazon-btn:hover {
    background-color: #e88b00;
    color: #333333;
    text-decoration: none;
}

.cj-btn {
    background-color: #007BFF;
    color: #ffffff;
}

.cj-btn:hover {
    background-color: #0056b3;
    color: #ffffff;
    text-decoration: none;
}

/* ==========================================================================
   9. PROS & CONS
   ========================================================================== */

.pros-cons-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.pros-box, .cons-box {
    padding: 25px;
    border-radius: 10px;
}

.pros-box {
    background: #d4edda;
    border: 2px solid #28a745;
}

.cons-box {
    background: #f8d7da;
    border: 2px solid #dc3545;
}

.pros-box h3, .cons-box h3 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pros-box h3 {
    color: #155724;
}

.cons-box h3 {
    color: #721c24;
}

.pros-box ul, .cons-box ul {
    list-style: none;
    margin-left: 0;
}

.pros-box li, .cons-box li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.pros-box li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.cons-box li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #dc3545;
    font-weight: bold;
}

/* ==========================================================================
   10. KEY FEATURES
   ========================================================================== */

.key-features {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
}

.key-features h3 {
    color: #007BFF;
    margin-bottom: 20px;
}

.key-features ul {
    list-style: none;
    margin-left: 0;
}

.key-features li {
    padding: 10px 0 10px 30px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.key-features li:last-child {
    border-bottom: none;
}

.key-features li::before {
    content: "★";
    position: absolute;
    left: 0;
    color: #007BFF;
    font-size: 1.2rem;
}

/* ==========================================================================
   11. AFFILIATE DISCLOSURE
   ========================================================================== */

.affiliate-disclosure {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 5px;
    padding: 15px 20px;
    margin: 20px 0;
    font-size: 0.9rem;
    color: #856404;
}

.affiliate-disclosure::before {
    content: "ℹ ";
    font-weight: bold;
    margin-right: 5px;
}

/* ==========================================================================
   12. ARTICLE CONTENT
   ========================================================================== */

.article-header {
    margin-bottom: 30px;
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.article-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.article-content img {
    margin: 30px 0;
    border-radius: 5px;
}

.article-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.article-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-content blockquote {
    border-left: 4px solid #007BFF;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #666;
}

/* ==========================================================================
   13. SIDEBAR
   ========================================================================== */

.content-area {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.widget {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007BFF;
}

.widget ul {
    list-style: none;
    margin-left: 0;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.widget li:last-child {
    border-bottom: none;
}

/* ==========================================================================
   14. CONTACT FORM
   ========================================================================== */

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007BFF;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ==========================================================================
   15. FOOTER
   ========================================================================== */

.site-footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p {
    color: #cccccc;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    margin-left: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #007BFF;
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #333333;
    color: #ffffff;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #007BFF;
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333333;
    color: #999999;
    font-size: 0.9rem;
}

/* ==========================================================================
   16. PAGINATION
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #007BFF;
    color: #ffffff;
    border-color: #007BFF;
    text-decoration: none;
}

.pagination .current {
    background: #007BFF;
    color: #ffffff;
    border-color: #007BFF;
}

/* ==========================================================================
   17. RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
    .content-area {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .main-navigation {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 20px;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .primary-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .primary-menu li {
        border-bottom: 1px solid #e0e0e0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .reviews-grid,
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .product-review-box {
        flex-direction: column;
    }
    
    .product-image-container {
        flex: 1;
        width: 100%;
    }
    
    .pros-cons-container {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .header-search-form input[type="search"] {
        width: 150px;
    }
    
    .header-search-form input[type="search"]:focus {
        width: 180px;
    }
    
    .product-buttons {
        flex-direction: column;
    }
    
    .affiliate-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   18. UTILITIES
   ========================================================================== */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }
.pt-5 { padding-top: 3rem; }

.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }
.pb-5 { padding-bottom: 3rem; }

.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

