/**
 * Pixelary Tools - Centralized Advertisement Styles
 * Designed for Adsterra & responsive ad containers with Zero Layout Shifts
 */

.ad-container {
    width: 100%;
    max-width: 760px;
    margin: 1.5rem auto;
    text-align: center;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow-sm);
}

.ad-container.ad-empty {
    display: none;
    margin: 0;
    padding: 0;
}

.ad-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
    display: block;
}

.ad-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.ad-content iframe,
.ad-content ins,
.ad-content img {
    max-width: 100% !important;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: var(--radius-sm);
}

[data-theme="light"] .ad-container {
    background: #FFFFFF;
    border-color: #E2E8F0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Specific Slot Placements */
.ad-slot-top {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.ad-slot-tool_top {
    margin-top: 1rem;
    margin-bottom: 1.75rem;
}

.ad-slot-tool_middle {
    margin: 1.5rem 0;
}

.ad-slot-tool_bottom {
    margin-top: 2rem;
    margin-bottom: 2.5rem;
}

.ad-slot-footer {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Testing / Placeholder Box */
.ad-placeholder-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 1.5rem 1rem;
    width: 100%;
    max-width: 728px;
    margin: 0 auto;
    background: var(--bg-card-alt);
    border: 1px dashed var(--border-hover);
    border-radius: var(--radius-md);
    color: var(--text-tertiary);
}

.ad-placeholder-box i {
    font-size: 1.75rem;
    color: var(--brand-blue);
}

.ad-placeholder-box span {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.ad-placeholder-box small {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}
