/**
 * Gemini Article Generator Frontend Styles
 */

/* Article container */
.entry-content {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    max-width: 1200px;
    margin: 0 auto;
    color: #303642;
    background-color: #fff;
    position: relative;
    padding: 0 20px;
}

/* Authority badge - adds a subtle pattern in the background */
.entry-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%232c3e50' fill-opacity='0.04' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
}

/* Main title - more professional appearance */
.entry-content h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1a2942;
    border-bottom: none;
    padding-bottom: 15px;
    letter-spacing: -0.5px;
    position: relative;
}

.entry-content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #1a2942, #3d5a80);
}

/* Article summary - more authoritative quote-like appearance */
.entry-content > p:first-of-type {
    margin-top: 35px;
    margin-bottom: 45px;
    padding: 30px;
    background-color: #f8f9fa;
    border-left: 5px solid #3d5a80;
    font-size: 17px;
    line-height: 1.8;
    color: #303642;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    font-style: italic;
}

.entry-content > p:first-of-type::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 60px;
    color: rgba(61, 90, 128, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

/* Section headings - more distinct and authoritative */
.entry-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 25px;
    color: #1a2942;
    border-bottom: 1px solid #e5e8ed;
    padding-bottom: 12px;
    clear: both;
    letter-spacing: -0.3px;
    position: relative;
}

.entry-content h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, #3d5a80, transparent);
    margin-top: 12px;
    position: absolute;
    bottom: -2px;
    left: 0;
}

.entry-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 35px;
    margin-bottom: 18px;
    color: #1a2942;
    letter-spacing: -0.3px;
}

.entry-content h4 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #1a2942;
    position: relative;
    padding-left: 16px;
}

.entry-content h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 20px;
    background: linear-gradient(180deg, #3d5a80, #98c1d9);
    border-radius: 3px;
}

/* Product recommendation cards - more premium look */
.top-recommendation {
    margin-bottom: 40px;
    padding: 30px;
    border: none;
    border-radius: 12px;
    background-color: #fff;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 5px 15px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.3s ease;
}

.top-recommendation:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 12px 20px rgba(0, 0, 0, 0.06);
}

.top-recommendation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #3d5a80, #98c1d9);
}

/* Top badge - more prestigious look */
.top-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #3d5a80, #1a2942);
    color: white;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(26, 41, 66, 0.3);
    z-index: 1;
    letter-spacing: 0.5px;
}

/* Product header container */
.product-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.top-recommendation h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #1a2942;
}

.top-recommendation h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #3d5a80, transparent);
    margin-top: 10px;
}

/* View on Amazon button */
.view-amazon-btn {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: #232f3e;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 183, 0, 0.3);
    letter-spacing: 0.5px;
    display: inline-block;
    margin-top: 5px;
}

.view-amazon-btn:hover {
    background: linear-gradient(135deg, #ffb700, #ff9900);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 183, 0, 0.4);
    text-decoration: none;
    color: #232f3e;
}

/* Manufacturer and price */
.manufacturer-price {
    display: none;
}

/* Purchase link - more premium button */
.purchase-link {
    display: block;
    width: 80%;
    margin: 25px auto 15px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #ff9900, #f57c00);
    border: none;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(245, 124, 0, 0.25);
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 0.8px;
}

.purchase-link:hover {
    background: linear-gradient(135deg, #f57c00, #e65100);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(245, 124, 0, 0.35);
    text-decoration: none;
}

.purchase-link a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.purchase-link a::before {
    content: '🛒';
    margin-right: 10px;
    font-size: 18px;
}

/* Amazon link styling for general product recommendations */
.amazon-link {
    display: block;
    width: 70%;
    margin: 15px auto 20px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #ff9900, #f57c00);
    border: none;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 124, 0, 0.2);
    font-size: 14px;
    letter-spacing: 0.5px;
}

.amazon-link:hover {
    background: linear-gradient(135deg, #f57c00, #e65100);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 124, 0, 0.3);
    text-decoration: none;
}

.amazon-link a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.amazon-link a:hover {
    color: white;
    text-decoration: none;
}

/* Amazon link in regular content (not in recommendation boxes) */
.entry-content .amazon-link {
    width: 60%;
    margin: 10px auto 15px;
    padding: 10px 15px;
    font-size: 13px;
    background: linear-gradient(135deg, #232f3e, #37475a);
    border-radius: 5px;
}

.entry-content .amazon-link:hover {
    background: linear-gradient(135deg, #37475a, #232f3e);
}

/* Pros and Cons container */
.pros-cons-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.pros-section, .cons-section {
    padding: 15px;
    border-radius: 6px;
    position: relative;
}

.pros-section {
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    border-left: 4px solid #28a745;
}

.cons-section {
    background: linear-gradient(135deg, #fdf2f2, #fef5f5);
    border-left: 4px solid #dc3545;
}

.pros-section h4, .cons-section h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pros-section h4 {
    color: #155724;
}

.cons-section h4 {
    color: #721c24;
}

.pros-section ul, .cons-section ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.pros-section li, .cons-section li {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
}

.pros-section li::before {
    content: '•';
    color: #28a745;
    font-weight: bold;
    position: absolute;
    left: -15px;
}

.cons-section li::before {
    content: '•';
    color: #dc3545;
    font-weight: bold;
    position: absolute;
    left: -15px;
}

/* Responsive design for Amazon links and pros/cons */
@media (max-width: 768px) {
    .amazon-link, .entry-content .amazon-link {
        width: 90%;
        margin: 10px auto;
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .purchase-link {
        width: 95%;
        margin: 20px auto 10px;
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .product-header {
        margin-bottom: 15px;
    }
    
    .view-amazon-btn {
        font-size: 12px;
        padding: 6px 12px;
        margin-top: 8px;
    }
    
    .pros-cons-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .pros-section, .cons-section {
        padding: 12px;
    }
    
    .pros-section h4, .cons-section h4 {
        font-size: 15px;
    }
    
    .pros-section li, .cons-section li {
        font-size: 13px;
    }
}

/* Secure payment text - more trustworthy appearance */
.secure-payment {
    font-size: 13px;
    color: #3d5a80;
    margin-top: 12px;
    font-style: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.secure-payment::before {
    content: '✓';
    display: inline-block;
    margin-right: 6px;
    color: #3d5a80;
    font-weight: bold;
    background-color: rgba(61, 90, 128, 0.1);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-size: 11px;
}

/* Information Modules - more authoritative appearance */
.info-module, .faq-module, .comparison-module, .trends-module, .conclusion-module {
    background-color: #f8f9fa;
    padding: 35px;
    border-radius: 12px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    border-top: 5px solid #3d5a80;
}

/* Expert indicator for certain modules */
.info-module::before, .conclusion-module::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 25px;
    height: 25px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233d5a80' width='24px' height='24px'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
    background-size: contain;
    opacity: 0.15;
}

/* FAQ Items - more professional Q&A style */
.faq-item {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border-left: 4px solid #3d5a80;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

.faq-item h3 {
    color: #1a2942;
    font-size: 19px;
    margin-top: 0;
    margin-bottom: 18px;
    cursor: pointer;
    position: relative;
    padding-left: 35px;
    font-weight: 600;
}

.faq-item h3::before {
    content: "Q";
    position: absolute;
    left: 0;
    top: 0;
    color: #3d5a80;
    font-weight: bold;
    font-size: 20px;
    font-family: Georgia, serif;
    background-color: rgba(61, 90, 128, 0.1);
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    border-radius: 50%;
}

.faq-item p {
    position: relative;
    padding-left: 35px;
    color: #303642;
    line-height: 1.7;
}

.faq-item p::before {
    content: "A";
    position: absolute;
    left: 0;
    top: 0;
    color: #f57c00;
    font-weight: bold;
    font-size: 20px;
    font-family: Georgia, serif;
    background-color: rgba(245, 124, 0, 0.1);
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    border-radius: 50%;
}

/* Comparison Table - more authoritative presentation */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.comparison-table th {
    background: linear-gradient(135deg, #1a2942, #3d5a80);
    color: white;
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 15px;
}

.comparison-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #e5e8ed;
    background-color: white;
    font-size: 15px;
    color: #303642;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background-color: #f8f9fa;
}

.comparison-table ul {
    margin: 0;
    padding-left: 20px;
}

.comparison-table li {
    margin-bottom: 8px;
    position: relative;
}

.comparison-table li::marker {
    color: #3d5a80;
}

/* Trends Module - more authoritative styling */
.trends-module ol {
    counter-reset: trend-counter;
    list-style: none;
    padding-left: 0;
}

.trends-module ol li {
    counter-increment: trend-counter;
    margin-bottom: 25px;
    padding-left: 50px;
    position: relative;
}

.trends-module ol li::before {
    content: counter(trend-counter);
    background: linear-gradient(135deg, #3d5a80, #1a2942);
    color: white;
    font-weight: bold;
    font-size: 16px;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(26, 41, 66, 0.2);
}

/* Conclusion Module - authoritative summary style */
.conclusion-module {
    background: linear-gradient(to right, #f8f9fa, #f1f3f5);
    border-left: 5px solid #3d5a80;
    position: relative;
}

.conclusion-module p {
    font-size: 17px;
    line-height: 1.8;
}

/* Add expert citation style to conclusion paragraphs */
.conclusion-module p:last-child {
    margin-bottom: 0;
    padding-top: 15px;
    border-top: 1px solid rgba(61, 90, 128, 0.2);
    font-style: italic;
    color: #3d5a80;
}

/* Strong elements throughout the page - more emphasis */
.entry-content strong {
    color: #1a2942;
    font-weight: 700;
    background: linear-gradient(90deg, rgba(61, 90, 128, 0.08), transparent);
    padding: 1px 6px;
    border-radius: 3px;
}

/* General paragraph styling */
.entry-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Responsive design adjustments */
@media (max-width: 768px) {
    .entry-content {
        padding: 0 15px;
    }
    
    .entry-content h1 {
        font-size: 28px;
    }
    
    .entry-content h2 {
        font-size: 24px;
    }
    
    .entry-content h3 {
        font-size: 20px;
    }
    
    .top-recommendation, 
    .info-module, 
    .faq-module, 
    .comparison-module, 
    .trends-module, 
    .conclusion-module {
        padding: 25px;
    }
    
    .top-badge, 
    .faq-item h3, 
    .comparison-table th, 
    .secure-payment {
        font-size: 14px;
    }
    
    .trends-module ol li {
        padding-left: 45px;
    }
}

@media (max-width: 480px) {
    .top-recommendation, 
    .info-module, 
    .faq-module, 
    .comparison-module, 
    .trends-module, 
    .conclusion-module {
        padding: 20px;
    }
    
    .entry-content h1 {
        font-size: 24px;
    }
    
    .entry-content h2 {
        font-size: 20px;
    }
    
    .comparison-table {
        font-size: 14px;
    }
    
    .comparison-table th, 
    .comparison-table td {
        padding: 12px 10px;
    }
    
    .entry-content > p:first-of-type {
        padding: 20px;
    }
} 