/*
Theme Name: MonetizePro AI
Description: High-converting, monetizable WordPress theme with integrated AI writing, image generation, and automated content creation workflows. Features AI-powered Gutenberg blocks, native admin AI tools, and intelligent support systems for maximum revenue generation.
Author: Manus AI
Version: 2.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: monetize-pro-ai
Tags: monetization, ai, affiliate-marketing, email-capture, responsive, seo, performance, gutenberg, blocks, automation
*/

/* ==========================================================================
   CSS Reset & Base Styles
   ========================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Typography System
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    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: 1.125rem; }

p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.7;
}

a {
    color: #007cba;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* ==========================================================================
   Layout & Grid System
   ========================================================================== */

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

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
    flex: 1;
}

.col-1 { flex: 0 0 8.333333%; }
.col-2 { flex: 0 0 16.666667%; }
.col-3 { flex: 0 0 25%; }
.col-4 { flex: 0 0 33.333333%; }
.col-6 { flex: 0 0 50%; }
.col-8 { flex: 0 0 66.666667%; }
.col-9 { flex: 0 0 75%; }
.col-12 { flex: 0 0 100%; }

/* ==========================================================================
   Header Styles
   ========================================================================== */

.site-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: #f8f9fa;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo img {
    max-height: 60px;
    width: auto;
}

.site-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    color: #1a1a1a;
}

.site-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* ==========================================================================
   Navigation Styles
   ========================================================================== */

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu a {
    font-weight: 500;
    font-size: 1rem;
    color: #333;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #007cba;
    text-decoration: none;
}

/* ==========================================================================
   Content Area Styles
   ========================================================================== */

.site-main {
    padding: 40px 0;
    min-height: 60vh;
}

.content-area {
    flex: 1;
    margin-right: 40px;
}

.sidebar {
    flex: 0 0 300px;
}

.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    margin-bottom: 15px;
}

.entry-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.entry-content {
    margin-bottom: 30px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ==========================================================================
   Monetization Zones
   ========================================================================== */

.ad-zone {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    padding: 20px;
    text-align: center;
    margin: 30px 0;
    border-radius: 8px;
}

.ad-zone-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    margin: -20px -20px 20px -20px;
    border-radius: 6px 6px 0 0;
    font-weight: 600;
}

.affiliate-section {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    text-align: center;
}

.product-showcase {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Call-to-Action Buttons
   ========================================================================== */

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.cta-button-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.cta-button-success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* ==========================================================================
   Email Capture Forms
   ========================================================================== */

.email-capture {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0;
}

.email-capture h3 {
    color: white;
    margin-bottom: 15px;
}

.email-form {
    display: flex;
    max-width: 400px;
    margin: 20px auto 0;
    gap: 10px;
}

.email-input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
}

.email-submit {
    background: #ffffff;
    color: #667eea;
    padding: 15px 25px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.email-submit:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

/* ==========================================================================
   Sidebar Styles
   ========================================================================== */

.widget {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

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

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

.widget li:last-child {
    border-bottom: none;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */

.site-footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.25rem;
}

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

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

.footer-widget a {
    color: #cccccc;
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: #ffffff;
}

.site-info {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #999;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .row {
        margin: 0 -10px;
    }
    
    .col {
        padding: 0 10px;
    }
    
    .content-area {
        margin-right: 0;
        margin-bottom: 40px;
    }
    
    .sidebar {
        flex: 1;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .nav-menu {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0;
        border-bottom: 1px solid #f1f3f4;
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 20px;
    }
    
    .email-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.5rem;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .email-capture {
        padding: 30px 20px;
    }
    
    .widget {
        padding: 20px;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.hidden { display: none; }
.visible { display: block; }

.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .ad-zone,
    .affiliate-section,
    .email-capture,
    .site-header,
    .site-footer,
    .sidebar {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

