/**
 * Just For You Ads - Frontend Styles
 */

/* Hero Section */
.just-for-you-hero-section {
    width: 100%;
    margin-bottom: 40px;
}

.just-for-you-hero {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
    object-fit: cover;
}

.just-for-you-hero video {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
}

/* Ads Section */
.just-for-you-ads-section {
    padding: 40px 0;
}

.just-for-you-row {
    margin-bottom: 30px;
}

.just-for-you-ad {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.just-for-you-ad:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.just-for-you-ad img {
    width: 100%;
    height: auto;
    display: block;
}

.just-for-you-ad a {
    display: block;
    text-decoration: none;
}

/* Image Ad */
.ad-type-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Text Overlay Ad */
.ad-text-overlay {
    padding: 60px 40px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ad-overlay-content {
    width: 100%;
}

.ad-overlay-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
    margin-top: 0;
}

.ad-overlay-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.ad-overlay-button {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.ad-overlay-button:hover {
    opacity: 0.9;
}

/* Image + Text Overlay Ad */
.ad-background-image {
    position: relative;
    width: 100%;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.ad-background-image .ad-overlay {
    position: absolute;
    padding: 30px;
    min-width: 300px;
    max-width: 80%;
}

/* Overlay Positions */
.overlay-top-left {
    top: 20px;
    left: 20px;
}

.overlay-top-center {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.overlay-top-right {
    top: 20px;
    right: 20px;
}

.overlay-center-left {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.overlay-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.overlay-center-right {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.overlay-bottom-left {
    bottom: 20px;
    left: 20px;
}

.overlay-bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.overlay-bottom-right {
    bottom: 20px;
    right: 20px;
}

/* Video Ad */
.ad-video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .just-for-you-hero {
        max-height: 300px;
    }
    
    .just-for-you-hero video {
        max-height: 300px;
    }
    
    .ad-text-overlay {
        padding: 40px 20px;
        min-height: 250px;
    }
    
    .ad-overlay-title {
        font-size: 1.5rem;
    }
    
    .ad-overlay-text {
        font-size: 1rem;
    }
    
    .ad-background-image {
        min-height: 300px;
    }
    
    .ad-background-image .ad-overlay {
        min-width: auto;
        max-width: 90%;
        padding: 20px;
    }
    
    /* Remove offsets on mobile - all ads stack */
    .just-for-you-row [class*="offset-"] {
        margin-left: 0 !important;
    }
    
    .just-for-you-row .col-md-4,
    .just-for-you-row .col-md-6 {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .just-for-you-ads-section {
        padding: 20px 0;
    }
    
    .ad-text-overlay {
        padding: 30px 15px;
        min-height: 200px;
    }
    
    .ad-overlay-title {
        font-size: 1.25rem;
    }
    
    .ad-background-image {
        min-height: 250px;
    }
    
    .ad-background-image .ad-overlay {
        padding: 15px;
        font-size: 0.9rem;
    }
}



