/**
 * ================================================================================
 * CO-READIT - Promotions/Advertising Styles
 * ================================================================================
 * 
 * Styles for the promotions/advertising feature
 * 
 * @author      Edu Brazeal
 * @company     Rollsrex Ltd
 * @copyright   Copyright (c) 2025 CO-READIT. All rights reserved.
 * 
 * ================================================================================
 */

/* ========== PROMOTIONS PAGE ========== */

.promotions-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 3px;
}

.promotions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.promotions-header h1 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.promotions-header h1 img {
    width: 28px;
    height: 28px;
    opacity: 0.9;
    filter: var(--icon-filter, none);
}

/* ========== TABS ========== */

.promotions-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.promotions-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.promotions-tab:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.promotions-tab.active {
    background: var(--primary-color);
    color: white;
}

.promotions-tab .tab-count {
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
}

.promotions-tab.active .tab-count {
    background: rgba(255, 255, 255, 0.2);
}

/* ========== PROMOTIONS LIST ========== */

.promotions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.promotion-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    transition: box-shadow 0.2s ease;
}

.promotion-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.promotion-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.promotion-card-header.clickable-header {
    cursor: pointer;
    border-radius: 8px;
    padding: 8px;
    margin: -8px -8px 12px -8px;
    transition: background-color 0.15s ease;
}

.promotion-card-header.clickable-header:hover {
    background-color: var(--bg-tertiary, rgba(0, 0, 0, 0.03));
}

.promotion-thread-info {
    flex: 1;
    min-width: 0;
}

.promotion-thread-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.thread-link-indicator {
    display: inline-flex;
    align-items: center;
    margin-right: 6px;
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

.promotion-card-header.clickable-header:hover .thread-link-indicator {
    opacity: 1;
}

.thread-link-icon {
    width: 14px;
    height: 14px;
    filter: var(--icon-filter, none);
}

.promotion-thread-meta {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.promotion-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.promotion-status.status-pending {
    background: rgba(255, 193, 7, 0.15);
    color: #f59e0b;
}

.promotion-status.status-active {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.promotion-status.status-paused {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
}

.promotion-status.status-completed {
    background: rgba(107, 114, 128, 0.15);
    color: #6b7280;
}

.promotion-status.status-rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.promotion-status.status-approved {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

/* ========== PROMOTION STATS ========== */

.promotion-stats {
    display: flex;
    gap: 24px;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 12px 0;
}

.promotion-stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.promotion-stat-icon {
    width: 18px;
    height: 18px;
    opacity: 0.7;
    filter: var(--icon-filter, none);
}

.promotion-stat-value {
    font-weight: 600;
    color: var(--text-primary);
}

.promotion-stat-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* Budget progress bar */
.promotion-budget {
    margin: 12px 0;
}

.promotion-budget-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.8125rem;
}

.promotion-budget-label {
    color: var(--text-secondary);
}

.promotion-budget-values {
    color: var(--text-primary);
    font-weight: 500;
}

.promotion-budget-bar {
    height: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    overflow: hidden;
}

.promotion-budget-progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.promotion-budget-progress.exhausted {
    background: #ef4444;
}

.promotion-budget-progress.low {
    background: #f59e0b;
}

/* ========== PROMOTION ACTIONS ========== */

.promotion-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.promotion-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.promotion-action-btn:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.promotion-action-btn img {
    width: 14px;
    height: 14px;
    filter: var(--icon-filter, none);
}

.promotion-action-btn.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.promotion-action-btn.btn-primary img {
    filter: brightness(0) invert(1);
}

.promotion-action-btn.btn-primary:hover {
    opacity: 0.9;
}

.promotion-action-btn.btn-danger {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.promotion-action-btn.btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Rejection reason */
.promotion-rejection {
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    border-left: 3px solid #ef4444;
}

.promotion-rejection-label {
    font-size: 0.75rem;
    color: #ef4444;
    font-weight: 500;
    margin-bottom: 4px;
}

.promotion-rejection-text {
    font-size: 0.875rem;
    color: var(--text-primary);
}

/* ========== EMPTY STATE ========== */

.promotions-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.promotions-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    opacity: 0.5;
    filter: var(--icon-filter, none);
}

.promotions-empty-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.promotions-empty-text {
    margin-bottom: 20px;
}

/* ========== CREATE PROMOTION MODAL ========== */

.promotion-modal.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 5px;
}

.promotion-modal .modal-content {
    margin-top: 40px;
    padding: 3px;
    background: var(--bg-primary, white);
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: modalFadeIn 0.2s ease-out;
    overflow: hidden;
}

.promotion-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    flex-shrink: 0;
}

.promotion-modal-header .modal-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.promotion-modal-header .modal-close:hover {
    color: var(--text-primary);
}

.promotion-modal-header img {
    width: 24px;
    height: 24px;
}

.promotion-modal-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.promotion-modal-body {
    padding: 3px;
    overflow-y: auto;
    flex: 1;
}

.promotion-thread-preview {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
}

.promotion-thread-preview-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promotion-thread-preview-meta {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.promotion-form-group {
    margin-bottom: 20px;
}

.promotion-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.promotion-form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.promotion-form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.promotion-form-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* Estimated reach */
.promotion-estimate {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.promotion-estimate-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.promotion-estimate-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.875rem;
}

.promotion-estimate-row img {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.promotion-estimate-value {
    font-weight: 500;
    color: var(--text-primary);
}

.promotion-estimate-label {
    color: var(--text-secondary);
}

/* Pricing info */
.promotion-pricing {
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: 12px;
}

.promotion-pricing-title {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.promotion-pricing-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    padding: 4px 0;
}

.promotion-pricing-label {
    color: var(--text-secondary);
}

.promotion-pricing-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* Wallet balance */
.promotion-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 8px;
    margin-bottom: 20px;
}

.promotion-balance-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.promotion-balance-value {
    font-size: 1rem;
    font-weight: 600;
    color: #22c55e;
}

.promotion-balance.insufficient {
    background: rgba(239, 68, 68, 0.1);
}

.promotion-balance.insufficient .promotion-balance-value {
    color: #ef4444;
}

/* Notice */
.promotion-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    margin-bottom: 20px;
}

.promotion-notice img {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.promotion-notice-text {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* Modal footer */
.promotion-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 5px 10px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
    background: var(--bg-primary, white);
}

button.promotion-cancel-btn {
    padding: 4px 9px;
    color: #ffffff;
    background: var(--primary-color);
    border: none;
    border-radius: 12px;
}

/* ========== PROMOTED THREAD BADGE ========== */

.thread-card.thread-card-promoted {
    border-width: 1px;
    position: relative;
}

.thread-card.thread-card-promoted::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 8px 8px 0 0;
}

.promoted-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    padding: 2px 4px;
    background: rgba(59, 130, 246, 0.15);
    border: none;
    border-radius: 4px;
    font-size: 0.6275rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
    white-space: nowrap;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Additional specificity for thread-meta context */
.thread-meta .promoted-badge {
    display: inline-flex !important;
}

.promoted-badge .promoted-icon {
    width: 12px;
    height: 12px;
    /* Use CSS filter to match primary color (blue) */
    filter: none;
}

/* Ensure thread-meta is flex to position badge at right */
.thread-card-promoted .thread-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* ========== STATS MODAL ========== */

.stats-modal-content {
    max-width: 520px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stats-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}

.stats-card-icon {
    margin-bottom: 6px;
}

.stats-card-icon img {
    width: 20px;
    height: 20px;
    opacity: 0.6;
    filter: var(--icon-filter, none);
}

.stats-card-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.stats-card-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Stats Details Section */
.stats-details {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.stats-details h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.stats-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.stats-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
}

.stats-detail-item:last-child,
.stats-detail-item:nth-last-child(2) {
    border-bottom: none;
}

.stats-detail-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.stats-detail-value {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Mini Chart Section */
.stats-chart-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
}

.stats-chart-section h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.mini-chart-container {
    width: 100%;
}

.mini-chart {
    width: 100%;
    height: 80px;
    display: block;
}

.mini-chart-labels {
    display: flex;
    justify-content: space-between;
    padding: 8px 5px 0;
    font-size: 0.625rem;
    color: var(--text-secondary);
}

.mini-chart-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
    font-size: 0.6875rem;
    color: var(--text-secondary);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.stats-no-data {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.stats-chart {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    min-height: 200px;
}

.stats-chart-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 16px;
}

/* ========== ADMIN STYLES ========== */

.admin-promotions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.admin-promotions-stats {
    display: flex;
    gap: 24px;
}

.admin-stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px 24px;
    text-align: center;
}

.admin-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.admin-stat-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.admin-pending-badge {
    background: #ef4444;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Admin approval card */
.admin-promotion-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.admin-promotion-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.admin-promotion-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-promotion-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.admin-promotion-username {
    font-weight: 500;
    color: var(--text-primary);
}

.admin-promotion-time {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.admin-promotion-thread {
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.admin-promotion-thread-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.admin-promotion-thread-preview {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-promotion-actions {
    display: flex;
    gap: 8px;
}

.admin-btn-approve {
    background: #22c55e;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-btn-approve:hover {
    background: #16a34a;
}

.admin-btn-reject {
    background: transparent;
    color: #ef4444;
    border: 1px solid #ef4444;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-btn-reject:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Admin settings */
.admin-settings-form {
    max-width: 500px;
}

.admin-settings-group {
    margin-bottom: 20px;
}

.admin-settings-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.admin-settings-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
}

.admin-settings-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    .promotions-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .promotions-tabs {
        flex-wrap: wrap;
    }

    .promotion-stats {
        flex-wrap: wrap;
        gap: 12px;
    }

    .admin-promotions-stats {
        flex-wrap: wrap;
    }
}

/* ========== COMPACT PROMOTED AD (Thread View) ========== */

.thread-promoted-ad-container {
    margin: 16px 0;
}

.compact-promoted-ad {
    background: var(--card-bg, white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.compact-promoted-ad:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.compact-ad-header {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(147, 51, 234, 0.08));
    border-bottom: 1px solid var(--border-color);
}

.compact-ad-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compact-ad-badge img {
    width: 14px;
    height: 14px;
    filter: var(--icon-filter, none);
    opacity: 0.9;
}

.compact-ad-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
}

.compact-ad-info {
    flex: 1;
    min-width: 0;
}

.compact-ad-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.compact-ad-circle {
    color: var(--primary-color);
    font-weight: 500;
}

.compact-ad-separator {
    color: var(--text-muted);
}

.compact-ad-author {
    color: var(--text-secondary);
}

.compact-ad-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.compact-ad-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.compact-ad-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.compact-ad-stats img {
    width: 14px;
    height: 14px;
    filter: var(--icon-filter, none);
    opacity: 0.7;
}

.compact-ad-thumbnail-container {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
}

.compact-ad-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.compact-ad-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.compact-ad-placeholder img {
    width: 28px;
    height: 28px;
    filter: var(--icon-filter, none);
    opacity: 0.5;
}

/* Dark mode adjustments */
[data-theme="dark"] .compact-ad-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(147, 51, 234, 0.12));
}

[data-theme="dark"] .compact-ad-placeholder {
    background: var(--bg-tertiary);
}

/* Mobile responsive */
@media (max-width: 480px) {
    .compact-ad-content {
        padding: 10px;
        gap: 10px;
    }
    
    .compact-ad-thumbnail-container {
        width: 60px;
        height: 60px;
    }
    
    .compact-ad-title {
        font-size: 0.85rem;
    }
}
