/**
 * Report Simplified AdSense Ad Styles
 * These styles are used for the contextual ads displayed within report summaries
 */

/* Base ad container styling */
.ad-container {
    margin: 24px 0;
    padding: 16px;
    background-color: #f9f9f9;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    text-align: center;
    clear: both;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    transition: background-color 0.3s ease;
}

/* Hover effect for better visibility */
.ad-container:hover {
    background-color: #f5f5f5;
}

/* Advertisement label styling */
.ad-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 400;
}

/* AdSense element styling */
.ad-container .adsbygoogle {
    display: block;
    min-height: 100px;
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ad-container {
        margin: 16px 0;
        padding: 12px;
    }
}

/* For smaller screens, reduce padding further */
@media (max-width: 480px) {
    .ad-container {
        margin: 12px 0;
        padding: 10px;
    }
}

/* Specialied styling for different report sections */

/* Style for ads placed after major sections like roof, foundation, etc. */
.ad-container[data-section="roof"],
.ad-container[data-section="foundation"],
.ad-container[data-section="electrical"],
.ad-container[data-section="plumbing"] {
    background-color: #f0f7ff;
    border-left: 3px solid #4285f4;
}

/* Style for ads placed after critical/safety sections */
.ad-container[data-section="critical"],
.ad-container[data-section="safety"] {
    background-color: #fff0f0;
    border-left: 3px solid #ea4335;
}

/* Style for ads placed after maintenance sections */
.ad-container[data-section="maintenance"],
.ad-container[data-section="minor"] {
    background-color: #f0fff5;
    border-left: 3px solid #34a853;
}

/* Helpful Resources Section Styles */
.helpful-resources-section {
    margin-top: 40px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-top: 3px solid #3498db;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Resources section header */
.resources-header {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

/* Resources description text */
.resources-description {
    font-size: 16px;
    line-height: 1.5;
    color: #34495e;
    margin-bottom: 20px;
    text-align: center;
}

/* Resources note text */
.resources-note {
    font-size: 14px;
    font-style: italic;
    color: #7f8c8d;
    margin-top: 15px;
    text-align: center;
}

/* Special styling for the resources section ad container */
.resources-ad-container {
    background-color: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    padding: 20px;
    margin: 0 auto;
    max-width: 90%;
}

.resources-ad-container .ad-label {
    font-weight: 500;
    color: #3498db;
}

/* Responsive adjustments for resources section */
@media (max-width: 768px) {
    .helpful-resources-section {
        padding: 20px 15px;
        margin-top: 30px;
    }
    
    .resources-header {
        font-size: 18px;
    }
    
    .resources-description {
        font-size: 15px;
    }
    
    .resources-ad-container {
        max-width: 100%;
    }
} 