/* Ad Placeholder Styles */
.ad-placeholder {
    width: 100%;
    background-color: #f3f4f6; /* gray-100 */
    border: 2px dashed #d1d5db; /* gray-300 */
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    min-height: 100px;
    position: relative;
}

.ad-placeholder::before {
    content: attr(data-label);
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af; /* gray-400 */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

/* Default label if not specified */
.ad-placeholder:not([data-label])::before {
    content: "Advertisement";
}

.ad-placeholder::after {
    content: "Space reserved for ads (" attr(data-position) ")";
    font-size: 0.875rem;
    color: #6b7280; /* gray-500 */
}

/* Loader Animation */
.loader {
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #0ea5e9; /* brand-500 */
    width: 24px;
    height: 24px;
    -webkit-animation: spin 1s linear infinite; /* Safari */
    animation: spin 1s linear infinite;
}

/* Safari */
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}