/* ============================================================================
   LREB ADVERTISING SYSTEM — CSS
   ============================================================================ */

/* SPONSORED label (common) */
.lreb-ad-sponsored {
    display: inline-block;
    background: #E53935;
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.lreb-ad-empty {
    text-align: center;
    padding: 30px 20px;
    background: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 12px;
}

.lreb-ad-placeholder {
    font-size: 14px;
    color: #666;
}

.lreb-ad-placeholder-box {
    padding: 20px;
}

.lreb-ad-placeholder-box p {
    font-size: 16px;
    color: #555;
    margin: 0 0 12px 0;
}

.lreb-ad-cta {
    display: inline-block;
    background: #E53935;
    color: white !important;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

/* ============================================================
   1. TICKER AD
   ============================================================ */
.lreb-ad-ticker {
    background: #1a1a1a;
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: hidden;
    border-bottom: 3px solid #E53935;
}

.lreb-ad-ticker .lreb-ad-sponsored {
    margin-bottom: 0;
    flex-shrink: 0;
    background: #E53935;
}

.lreb-ticker-scroll {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 20px;
    animation: lreb-ticker-scroll 30s linear infinite;
}

@keyframes lreb-ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.lreb-ticker-item {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.lreb-ticker-item:hover {
    color: #FFC107;
}

.lreb-ticker-sep {
    color: #E53935;
    font-size: 14px;
}

/* ============================================================
   2. GRAND DISPLAY AD
   ============================================================ */
.lreb-ad-grand {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.lreb-ad-grand-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.lreb-ad-grand-title {
    font-size: 20px;
    font-weight: 700;
    color: #212121;
}

.lreb-ad-grand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.lreb-ad-grand-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 3px solid #FFC107;
}

.lreb-ad-grand-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.lreb-ad-grand-img {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}

.lreb-ad-grand-body {
    padding: 14px;
}

.lreb-ad-grand-body h4 {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 700;
    color: #212121;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lreb-ad-grand-price {
    font-size: 18px;
    font-weight: 700;
    color: #E53935;
}

/* ============================================================
   3. MID-PAGE BANNER AD
   ============================================================ */
.lreb-ad-midpage {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
}

.lreb-ad-midpage-banner {
    display: block;
    width: 100%;
    height: 250px;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    position: relative;
    text-decoration: none;
    border: 3px solid #2196F3;
}

.lreb-ad-midpage-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    color: white;
}

.lreb-ad-midpage-overlay h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
}

.lreb-ad-midpage-price {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #FFC107;
    margin-bottom: 8px;
}

.lreb-ad-midpage-cta {
    display: inline-block;
    background: #E53935;
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
}

/* ============================================================
   4. SOCIAL MEDIA SHOWCASE
   ============================================================ */
.lreb-ad-social {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.lreb-ad-social-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.lreb-ad-social-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #212121;
}

.lreb-ad-social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.lreb-ad-social-card a {
    display: block;
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    border: 3px solid #4CAF50;
}

.lreb-ad-social-card a:hover {
    transform: translateY(-4px);
}

.lreb-ad-social-img {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}

.lreb-ad-social-body {
    padding: 14px;
}

.lreb-ad-social-body h4 {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 700;
    color: #212121;
}

.lreb-ad-social-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lreb-ad-platform-tag {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .lreb-ad-grand-grid { grid-template-columns: repeat(2, 1fr); }
    .lreb-ad-social-grid { grid-template-columns: repeat(2, 1fr); }
    .lreb-ad-midpage-banner { height: 200px; }
}

@media (max-width: 600px) {
    .lreb-ad-grand-grid { grid-template-columns: 1fr; }
    .lreb-ad-social-grid { grid-template-columns: 1fr; }
    .lreb-ad-midpage-banner { height: 180px; }
    .lreb-ad-midpage-overlay { padding: 16px; }
    .lreb-ad-midpage-overlay h3 { font-size: 18px; }
    .lreb-ticker-scroll { animation-duration: 20s; }
}
