/* ============================================
   Sponsor Ad Panel Styles
   ============================================ */

.sponsor-panel {
    width: 180px;
    min-width: 180px;
    height: 100%;
    background: var(--bg-dark);
    border-left: 1px solid var(--border);
    display: flex !important;
    flex-direction: column;
    flex-shrink: 0;
}

.sponsor-header {
    height: 28px;
    background: var(--bg-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border);
}

.sponsor-title {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
}

.sponsor-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 5px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Ad container - responsive sizing for tower ads */
.ad-container {
    width: 160px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-darkest);
    border: 1px dashed var(--border);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

/* AdSense container */
.ad-container .adsbygoogle {
    display: block;
    width: 100%;
    height: 100%;
}

/* Fallback content when ad isn't showing */
.ad-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 15px;
    width: 100%;
    height: 100%;
    min-height: 280px;
}

.ad-fallback-icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.7;
}

.ad-fallback-title {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ad-fallback-text {
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.ad-fallback-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.ad-fallback-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Hide fallback when ad is loaded */
.ad-container.ad-loaded .ad-fallback {
    display: none;
}

/* Responsive - smaller width on medium screens but still visible */
@media (max-width: 1200px) {
    .sponsor-panel {
        width: 160px;
        min-width: 160px;
    }
    .ad-container {
        width: 140px;
    }
}

/* Even on small screens, keep it visible but narrower */
@media (max-width: 900px) {
    .sponsor-panel {
        width: 120px;
        min-width: 120px;
    }
    .ad-container {
        width: 100px;
    }
    .ad-fallback {
        padding: 15px 10px;
    }
    .ad-fallback-icon {
        font-size: 24px;
    }
    .ad-fallback-title {
        font-size: 11px;
    }
    .ad-fallback-text {
        font-size: 10px;
    }
    .ad-fallback-btn {
        padding: 6px 12px;
        font-size: 10px;
    }
}
