/* ============================================
   AD SLOT COMPONENT - STYLESHEET
   Job-Scouts.com | Advertisement slot styling
   ============================================ */

/* ========== AD SLOT CONTAINER ========== */
.ad-slot {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.ad-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ad-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

/* ========== BANNER AD STYLES ========== */
.ad-banner {
    position: relative;
    height: 220px;
    background: #f3f4f6;
}

.ad-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem;
}

.ad-info {
    margin-top: auto;
}

.ad-overlay .ad-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.ad-overlay .ad-company {
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* ========== TEXT AD STYLES ========== */
.ad-text {
    padding: 1.5rem;
    background: #fff;
}

.ad-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ad-text .ad-title {
    margin: 0 0 0.375rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
}

.ad-text .ad-company {
    display: block;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.ad-description {
    margin: 0 0 1.25rem 0;
    font-size: 0.9375rem;
    color: #4b5563;
    line-height: 1.6;
}

/* ========== CTA BUTTON ========== */
.ad-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #3b82f6;
    color: #fff;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.ad-cta:hover {
    background: #2563eb;
}

.ad-cta::after {
    content: '→';
    font-size: 1.125rem;
}

/* ========== SPONSOR BADGE ========== */
.sponsor-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(8px);
    align-self: flex-start;
}

.sponsor-badge.light {
    background: #f3f4f6;
    color: #6b7280;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .ad-slot {
        margin-bottom: 1.5rem;
    }

    .ad-banner {
        height: 180px;
    }

    .ad-overlay .ad-title {
        font-size: 1.25rem;
    }

    .ad-text .ad-title {
        font-size: 1.125rem;
    }

    .ad-text {
        padding: 1.25rem;
    }

    .ad-header {
        flex-direction: column;
        gap: 0.75rem;
    }
}