/* ──────────────────────────────────────────────────────────────
   tj-ad-placeholder.css  —  "أعلن معنا" placeholder
   Applied to public WebAr (RTL) theme only.
   ────────────────────────────────────────────────────────────── */

/* Wrapper — ensures spacing, float clearance, and slot preservation */
.Webads {
    clear: both;
    margin-bottom: 20px;
    box-sizing: border-box;
    position: relative; /* for TAD badge positioning */
}

/* Placeholder card */
.tj-ad-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: var(--tj-ad-min-height, 120px);
    width: 100%;
    background: #f8f9fa;
    border: 1px dashed #d0d5dd;
    border-radius: 10px;
    color: #777;
    text-align: center;
    direction: rtl;
    padding: 24px 16px;
    box-sizing: border-box;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.3s ease;
}

.tj-ad-placeholder:hover {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.09);
}

/* Icon */
.tj-ad-placeholder-icon {
    font-size: 28px;
    color: #b0b8c4;
    margin-bottom: 10px;
}

/* Title */
.tj-ad-placeholder-title {
    font-size: 16px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

/* Body text */
.tj-ad-placeholder-text {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 14px;
    line-height: 1.6;
    max-width: 300px;
}

/* CTA button */
.tj-ad-placeholder-link {
    display: inline-block;
    padding: 8px 24px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #2e8795;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(46, 135, 149, 0.2);
}

.tj-ad-placeholder-link:hover,
.tj-ad-placeholder-link:focus {
    background: #256d78;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(46, 135, 149, 0.3);
}

/* #TAD reference badge — shown on every ad slot for auditing (RTL: right-aligned) */
.tj-ad-ref-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    z-index: 10;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.5px;
    pointer-events: none;
    line-height: 1.4;
}

/* ─── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
    .tj-ad-placeholder {
        padding: 18px 12px;
        min-height: 100px;
        border-radius: 8px;
    }
    .tj-ad-placeholder-title {
        font-size: 14px;
    }
    .tj-ad-placeholder-text {
        font-size: 12px;
        max-width: 260px;
    }
    .tj-ad-placeholder-link {
        padding: 7px 18px;
        font-size: 12px;
    }
}

@media (max-width: 414px) {
    .tj-ad-placeholder {
        padding: 14px 10px;
        min-height: 90px;
    }
    .tj-ad-placeholder-icon {
        font-size: 22px;
        margin-bottom: 6px;
    }
    .tj-ad-placeholder-title {
        font-size: 13px;
    }
    .tj-ad-placeholder-text {
        font-size: 11px;
        max-width: 220px;
        margin-bottom: 10px;
    }
    .tj-ad-placeholder-link {
        padding: 6px 16px;
        font-size: 11px;
    }
}
