/*
Theme Name: Llozi Divi Child Theme
Description: Child theme for Divi - optimized for affiliate products and blog content
Author: Llozi
Template: Divi
Version: 1.0.0
*/

/* ========================================
   IMPORT PARENT THEME STYLES
   ======================================== */
@import url("../Divi/style.css");

/* ========================================
   CUSTOM STYLES FOR AFFILIATE PRODUCTS & BLOG
   ======================================== */

/* Global Typography Improvements */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Affiliate Product Cards */
.affiliate-product-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 25px;
    margin: 20px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e8e8e8;
}

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

.affiliate-product-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.4em;
    font-weight: 600;
}

.affiliate-product-card .price {
    font-size: 1.8em;
    font-weight: bold;
    color: #e74c3c;
    margin: 10px 0;
}

.affiliate-product-card .affiliate-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.affiliate-product-card .affiliate-button:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Blog Post Styling */
.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.blog-post-content h1 {
    color: #2c3e50;
    font-size: 2.2em;
    margin-bottom: 20px;
    line-height: 1.3;
}

.blog-post-content h2 {
    color: #34495e;
    font-size: 1.8em;
    margin: 30px 0 15px 0;
    border-left: 4px solid #3498db;
    padding-left: 15px;
}

.blog-post-content h3 {
    color: #34495e;
    font-size: 1.4em;
    margin: 25px 0 10px 0;
}

.blog-post-content p {
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.7;
}

.blog-post-content blockquote {
    border-left: 4px solid #3498db;
    background: #f8f9fa;
    padding: 20px;
    margin: 25px 0;
    font-style: italic;
    color: #555;
}

/* Call-to-Action Sections */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
    margin: 40px 0;
    border-radius: 12px;
}

.cta-section h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 2em;
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* Product Comparison Tables */
.product-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-comparison-table th {
    background: #34495e;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.product-comparison-table td {
    padding: 15px;
    border-bottom: 1px solid #ecf0f1;
}

.product-comparison-table tr:nth-child(even) {
    background: #f8f9fa;
}

.product-comparison-table tr:hover {
    background: #e8f4f8;
}

/* Review Stars */
.review-stars {
    color: #f39c12;
    font-size: 1.2em;
    margin: 10px 0;
}

.review-stars .star {
    margin-right: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .affiliate-product-card {
        margin: 15px 10px;
        padding: 20px;
    }
    
    .blog-post-content {
        padding: 15px;
    }
    
    .blog-post-content h1 {
        font-size: 1.8em;
    }
    
    .cta-section {
        padding: 30px 20px;
        margin: 30px 10px;
    }
    
    .product-comparison-table {
        font-size: 0.9em;
    }
}

/* Custom Divi Module Overrides */
.et_pb_module .affiliate-product-card {
    margin: 0;
}

.et_pb_text .affiliate-product-card {
    margin: 20px 0;
}

/* Footer Enhancements */
#main-footer {
    background: #2c3e50;
    color: #ecf0f1;
}

#main-footer a {
    color: #3498db;
    transition: color 0.3s ease;
}

#main-footer a:hover {
    color: #5dade2;
}

/* Header Enhancements */
#main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

/* Custom Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
