/* ViralBites Sponsored Ads Styles */

/* ==========================================================================
   SPONSORED CARDS (INLINE ADS)
   ========================================================================== */

.sponsored-card {
    border: 1px solid #eee;
    border-radius: 12px;
    margin: 24px 0;
    overflow: hidden;
}

.sponsored-header {
    background: #f6f6f6;
    padding: 6px 10px;
    font-size: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #777;
    font-weight: 700;
}

.sponsored-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sponsored-image {
    width: 100%;
    height: auto;
    border-radius: 0;
    flex-shrink: 0;
}

.sponsored-text {
    padding: 12px;
}

.sponsored-text h4 {
    font-weight: 700;
    margin-bottom: 4px;
    color: #333;
    line-height: 1.3;
}

.sponsored-text p {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.sponsored-cta {
    display: block;
    width: 100%;
    background: #ea580c;
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    transition: background-color 0.2s;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsored-cta:hover {
    background: #c2410c;
}

/* Desktop sponsored card layout */
@media (min-width: 768px) {
    .sponsored-content {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 12px;
    }

    .sponsored-image {
        width: 120px;
        height: 90px;
        border-radius: 8px;
        object-fit: cover;
    }

    .sponsored-text {
        padding: 0;
        flex: 1;
    }

    .sponsored-cta {
        display: inline-block;
        width: auto;
        min-width: 140px;
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ==========================================================================
   HERO SPONSORED SECTIONS (LARGE BOTTOM ADS)
   ========================================================================== */

.spon-hero {
    border: 1px solid #eee;
    border-radius: 16px;
    margin: 28px 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.spon-hero__tag {
    background: #f6f6f6;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 800;
    color: #777;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.spon-hero__body {
    display: flex;
    flex-direction: column;
}

.spon-hero__img {
    width: 100%;
    height: auto;
    display: block;
}

.spon-hero__content {
    padding: 14px 16px;
}

.spon-hero__title {
    margin: 0 0 6px 0;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: #333;
}

.spon-hero__text {
    margin: 0 0 10px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.4;
}

.spon-hero__cta {
    display: block;
    width: 100%;
    background: #ea580c;
    color: #fff;
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 16px;
    text-align: center;
    transition: background-color 0.2s;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spon-hero__cta:hover {
    background: #c2410c;
}

.spon-hero__disclaimer {
    margin-top: 10px;
    color: #888;
    font-size: 12px;
    line-height: 1.3;
}

/* Desktop hero layout */
@media(min-width: 768px) {
    .spon-hero__body {
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }
    
    .spon-hero__img {
        width: 50%;
        height: 100%;
        object-fit: cover;
    }
    
    .spon-hero__content {
        padding: 16px 18px;
        flex: 1;
    }
    
    .spon-hero__title {
        font-size: 20px;
    }

    .spon-hero__cta {
        display: inline-block;
        width: auto;
        min-width: 160px;
        padding: 12px 20px;
    }
}

/* ==========================================================================
   POPUP STYLES
   ========================================================================== */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    padding-top: 15vh;
}

.popup-container {
    background: white;
    border-radius: 12px;
    max-width: 480px;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.popup-content {
    position: relative;
}

.close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10001;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-button-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
}

.close-button svg {
    position: relative;
    z-index: 10002;
    color: #333;
}

.image-container {
    cursor: pointer;
    position: relative;
    text-decoration: none;
    display: block;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.text-content {
    padding: 24px;
}

.text-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
    color: #333;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: #ea580c;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
    min-height: 44px;
}

.cta-button:hover {
    background: #c2410c;
}

.arrow-icon {
    margin-left: 8px;
}