/* Theme Name: Viking News Child
Template: viking-news
Version: 1.0.0
*/

@import url("../smarttech-news/style.css");

/* =============================================================================
   VIKING NEWS CHILD THEME - OPTIMIZED STYLING
   ============================================================================= */

/* H2 HEADING OVERRIDE - CLEAN STYLING */
body.single-post .entry-content h2,
.single-post .entry-content h2,
.entry-content h2,
article .entry-content h2,
.post .entry-content h2 {
    border-left: 0px solid transparent !important;
    padding-left: 0px !important;
    border: 0px !important;
    background: transparent !important;
    font-size: 24px !important;
    font-weight: bold !important;
    margin: 30px 0 15px 0 !important;
    color: #333 !important;
    position: relative !important;
}

/* Hide any pseudo-elements that might create borders */
.single-post .entry-content h2:before,
.single-post .entry-content h2:after {
    display: none !important;
}

/* ENHANCED ARTICLE STYLING */
.single-post .entry-content {
    font-size: 18px !important;
    line-height: 1.7 !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.single-post .entry-content p {
    margin-bottom: 20px !important;
    text-align: justify !important;
    color: #555 !important;
}

/* FEATURED IMAGE STYLING */
.featured-image-container {
    margin: 30px 0 !important;
    text-align: center !important;
}

.featured-image-container img {
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    max-width: 100% !important;
    height: auto !important;
}

/* ADSENSE AD SPACES STYLING */
.smarttech-ad-space-1,
.smarttech-ad-space-2,
.smarttech-ad-space-3 {
    margin: 20px auto !important;
    text-align: center !important;
    padding: 10px !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    border: 1px solid #e9ecef !important;
}

/* AD SPACE 4 - Teal Widget Replacement */
.adsense-replacement-teal-widget {
    margin: 20px auto !important;
    text-align: center !important;
    padding: 20px !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    border: 1px solid #e9ecef !important;
    min-height: 300px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* VIKING AUTOMATION BANNER STYLING */
.smarttech-viking-automation-full-width {
    margin: 40px 0 !important;
    background: rgba(77, 130, 48, 0.05) !important;
    padding: 20px 0 !important;
}

.smarttech-viking-banner {
    max-width: 1200px !important;
    height: 90px !important;
    background: rgba(77, 130, 48, 0.1) !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 20px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin: 0 auto !important;
    border: 1px solid rgba(59, 141, 174, 0.2) !important;
}

.smarttech-viking-banner:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 20px rgba(59, 141, 174, 0.2) !important;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .single-post .entry-content {
        padding: 0 15px !important;
        font-size: 16px !important;
    }
    
    .smarttech-viking-banner {
        height: 80px !important;
        padding: 0 15px !important;
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .smarttech-ad-space-1,
    .smarttech-ad-space-2,
    .smarttech-ad-space-3 {
        margin: 15px auto !important;
    }
    
    .adsense-replacement-teal-widget {
        min-height: 200px !important;
        padding: 15px !important;
    }
}

/* UAGB POST GRID ENHANCEMENTS */
.uagb-post__image img.external-featured-image,
.uagb-post__image img.wp-post-image {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    transition: transform 0.3s ease !important;
}

.uagb-post__image img:hover {
    transform: scale(1.05) !important;
}

.uagb-post__image {
    display: block !important;
    margin-bottom: 15px !important;
    overflow: hidden !important;
    border-radius: 8px !important;
}

/* HIDE EMPTY CONTAINERS */
.uagb-post__image:empty {
    display: none !important;
}

/* CATEGORY SECTION STYLING - BETER LEESBAAR */
.uagb-section-title,
.uagb-heading-text,
.uagb-block-heading,
h1, h2, h3, h4 {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7) !important;
    margin: 0 0 20px 0 !important;
    line-height: 1.2 !important;
    display: inline-block !important;
    background: rgba(0,0,0,0.3) !important;
    padding: 10px 15px !important;
    border-radius: 8px !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}

/* Fallback voor lichte achtergronden */
.uagb-section-title:not([style*="background"]),
.uagb-heading-text:not([style*="background"]),
.uagb-block-heading:not([style*="background"]) {
    color: #2c3e50 !important;
    text-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}

/* "More in" links - PAARSE KLEUR zoals in afbeelding */
.uagb-section-title + a,
.uagb-heading-text + a,
.uagb-block-heading + a,
.uagb-section-title a,
.uagb-heading-text a,
.uagb-block-heading a,
a[href*="more"],
a:contains("More") {
    font-size: 14px !important;
    color: #8e44ad !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    margin-left: 15px !important;
    display: inline !important;
    vertical-align: baseline !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}

/* Kleine pijl na "More in" tekst */
.uagb-section-title + a::after,
.uagb-heading-text + a::after,
.uagb-block-heading + a::after,
.uagb-section-title a::after,
.uagb-heading-text a::after,
.uagb-block-heading a::after,
a[href*="more"]::after,
a:contains("More")::after {
    content: " →" !important;
    font-size: 14px !important;
    color: #8e44ad !important;
    margin-left: 2px !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}

/* Verwijder grote pijl afbeeldingen */
.uagb-section-title img,
.uagb-heading-text img,
.uagb-block-heading img,
.uagb-section-title svg,
.uagb-heading-text svg,
.uagb-block-heading svg {
    display: none !important;
}

/* Category section containers */
.uagb-section,
.uagb-block {
    margin-bottom: 40px !important;
}

/* GEFIXTE LAYOUT VOOR TITEL EN LINK - HORIZONTAAL HOUDEN */
.uagb-section .uagb-section-title,
.uagb-block .uagb-heading-text,
.uagb-section h1,
.uagb-section h2,
.uagb-section h3,
.uagb-section h4 {
    display: inline-block !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    width: auto !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    vertical-align: baseline !important;
}

/* FORCE HORIZONTAL TEXT IN ALL SECTIONS */
.uagb-section *,
.uagb-block *,
.uagb-section-title *,
.uagb-heading-text *,
.uagb-block-heading * {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    direction: ltr !important;
}

/* READING TIME STYLING */
.reading-time {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    margin-bottom: 25px !important;
    font-size: 14px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

/* SOURCE ATTRIBUTION STYLING */
.source-attribution {
    background: #f8f9fa !important;
    padding: 20px !important;
    border-radius: 8px !important;
    margin-top: 30px !important;
    border-left: 4px solid #28a745 !important;
}

/* AUTOMATION INFO STYLING */
.automation-info {
    background: linear-gradient(135deg, #e8f4fd 0%, #d6eaf8 100%) !important;
    border-left: 4px solid #2196F3 !important;
    border-radius: 8px !important;
    padding: 18px !important;
    margin-top: 35px !important;
    font-size: 14px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}