/**
 * Price Comparison Below-Content Modules Styles
 * Styles for modules that appear below price comparison tools
 */

/* ================================
   MODULE CONTAINER
   ================================ */
.price-comparison-module {
    max-width: calc(100% - 230px);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

@media (max-width: 1399px) {
    .price-comparison-module {
        max-width: calc(100% - 140px);
    }
}

@media (max-width: 991px) {
    .price-comparison-module {
        max-width: calc(100% - 60px);
    }
}

@media (max-width: 767px) {
    .price-comparison-module {
        max-width: calc(100% - 30px);
    }
}

/* ================================
   SECTION HEADERS
   ================================ */
.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header-flex h2,
.section-header h2 {
    font-family: 'ClashDisplay-Variable', 'Clash Display', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #004559;
    margin: 0;
}

.see-more-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #004559;
    text-decoration: none;
    transition: color 0.2s ease;
}

.see-more-button:hover {
    color: #00c9a7;
}

.see-more-button .arrow-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e8f5f2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.see-more-button:hover .arrow-circle {
    background: #00c9a7;
}

.see-more-button .arrow-circle svg {
    width: 14px;
    height: 14px;
}

.see-more-button:hover .arrow-circle svg path {
    stroke: white;
}

/* ================================
   THIN HORIZONTAL AD
   ================================ */
.thin-ad {
    padding: 15px 0;
    text-align: center;
}

.advert-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    margin-bottom: 8px;
}

/* ================================
   PRICING UPDATES GRID
   ================================ */
.pricing-updates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pricing-update-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-update-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.pricing-update-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.pricing-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.pricing-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pricing-update-card:hover .pricing-card-image img {
    transform: scale(1.05);
}

.pricing-card-content {
    padding: 15px;
}

.pricing-card-tag {
    display: inline-block;
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #00c9a7;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.pricing-card-title {
    font-family: "ClashDisplay-Variable", sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #004559;
    line-height: 1.3;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pricing-card-date {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    color: #6b7280;
}

@media (max-width: 991px) {
    .pricing-updates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .pricing-updates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ================================
   FIND OUT MORE BANNER (matches tag page style)
   ================================ */
.find-out-more-banner {
    background: #004559;
    border-radius: 12px;
    padding: 30px 40px;
    text-align: center;
}

.find-out-more-banner h2 {
    font-family: 'ClashDisplay-Variable', 'Clash Display', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: white;
    margin: 0 0 20px 0;
}

.find-out-more-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.find-out-more-tag {
    display: inline-block;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 10px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.find-out-more-tag:hover {
    background: white;
    color: #004559;
    border-color: white;
}

@media (max-width: 575px) {
    .find-out-more-banner {
        padding: 25px 20px;
    }
    
    .find-out-more-banner h2 {
        font-size: 18px;
    }
}

/* ================================
   SLIMRCHAT PICKS
   ================================ */
.picks-widget {
    display: flex;
    gap: 30px;
}

.picks-widget .advert-space {
    width: 200px;
    flex-shrink: 0;
}

.picks-widget .picks-content {
    flex: 1;
}

.picks-widget .section-header {
    margin-bottom: 20px;
}

.picks-posts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.picks-featured {
    grid-row: span 2;
}

.picks-featured a {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.picks-featured-image {
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.picks-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.picks-featured:hover .picks-featured-image img {
    transform: scale(1.05);
}

.picks-featured-tag {
    display: inline-block;
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #00c9a7;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.picks-featured-title {
    font-family: "ClashDisplay-Variable", sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #004559;
    line-height: 1.3;
    margin: 0 0 10px 0;
}

.picks-featured-date {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    color: #6b7280;
}

.picks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.picks-card a {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.picks-card-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.picks-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.picks-card:hover .picks-card-image img {
    transform: scale(1.05);
}

.picks-card-content {
    flex: 1;
    min-width: 0;
}

.picks-card-tag {
    display: inline-block;
    font-family: "Inter", sans-serif;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: #00c9a7;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.picks-card-title {
    font-family: "ClashDisplay-Variable", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #004559;
    line-height: 1.3;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.picks-card-date {
    font-family: "Inter", sans-serif;
    font-size: 11px;
    color: #6b7280;
}

@media (max-width: 991px) {
    .picks-widget {
        flex-direction: column;
    }
    
    .picks-widget .advert-space {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .picks-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .picks-posts {
        grid-template-columns: 1fr;
    }
}

/* ================================
   REAL STORIES SECTION (matches blog post style)
   ================================ */
.real-stories-section {
    margin-top: 20px;
}

.real-stories-section h2 {
    font-family: 'ClashDisplay-Variable', 'Clash Display', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #004559;
    margin: 0 0 20px 0;
}

.real-stories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.real-story-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 3/4;
    transition: transform 0.2s ease;
}

.real-story-card:hover {
    transform: translateY(-3px);
}

.real-story-card a {
    display: block;
    height: 100%;
    text-decoration: none;
}

.real-story-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.real-story-card:hover img {
    transform: scale(1.05);
}

.real-story-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 15px 15px;
    margin: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    font-family: 'ClashDisplay-Variable', 'Clash Display', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: white;
    line-height: 1.3;
}

@media (max-width: 1199px) {
    .real-stories-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 991px) {
    .real-stories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .real-stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .real-stories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .real-story-card h3 {
        font-size: 12px;
        padding: 40px 10px 10px;
    }
}

/* ================================
   MOBILE: PICKS LIKE HOMEPAGE
   ================================ */
@media (max-width: 767px) {
    .price-comparison-module .picks-widget {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .price-comparison-module .picks-posts {
        grid-template-columns: 1fr !important;
    }
    
    .price-comparison-module .picks-featured {
        grid-row: auto;
        width: 100%;
    }
    
    .price-comparison-module .picks-featured-image {
        height: auto;
        aspect-ratio: 16 / 10;
    }
    
    .price-comparison-module .picks-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px;
    }
    
    .price-comparison-module .picks-card {
        display: flex;
        flex-direction: column;
        background: #fff;
        border-radius: 10px;
        overflow: hidden;
    }
    
    .price-comparison-module .picks-card a {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    .price-comparison-module .picks-card-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
        border-radius: 0;
    }

    /* Real Stories - horizontal scroll on mobile */
    .price-comparison-module .real-stories-grid {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding-right: 15px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .price-comparison-module .real-stories-grid::-webkit-scrollbar {
        display: none;
    }
    
    .price-comparison-module .real-story-card {
        flex: 0 0 65%;
        scroll-snap-align: start;
    }
    
    .price-comparison-module .real-stories-section {
        margin-right: -15px;
    }
}
