/**
 * Banner Patrocinador - CSS
 * Estilos para Admin e Front-end
 */

/* ============================================================
   ADMIN STYLES
   ============================================================ */

.rb-sponsor-admin {
    max-width: 900px;
}

.rb-sponsor-admin h1 {
    margin-bottom: 10px;
}

.rb-sponsor-admin .description {
    margin-bottom: 20px;
    color: #666;
}

.rb-sponsor-items {
    margin-bottom: 20px;
}

.rb-sponsor-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: move;
}

.rb-sponsor-item:hover {
    border-color: #999;
}

.rb-sponsor-item.ui-sortable-helper {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.rb-sponsor-item__handle {
    font-size: 18px;
    color: #999;
    cursor: grab;
    padding: 0 5px;
}

.rb-sponsor-item__preview {
    width: 150px;
    height: 60px;
    overflow: hidden;
    border-radius: 4px;
    background: #f0f0f0;
    flex-shrink: 0;
}

.rb-sponsor-item__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rb-sponsor-item__fields {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rb-sponsor-item__fields label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: #555;
}

.rb-sponsor-item__fields input[type="url"] {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    max-width: 350px;
}

.rb-sponsor-item__newtab {
    flex-direction: row !important;
    align-items: center;
}

.rb-sponsor-item__newtab input {
    margin-right: 6px;
}

.rb-sponsor-item__remove {
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.rb-sponsor-item__remove:hover {
    background: #c82333;
}

.rb-sponsor-empty {
    background: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    color: #666;
    margin-bottom: 20px;
}

.rb-sponsor-actions {
    display: flex;
    gap: 10px;
}

/* ============================================================
   FRONT-END STYLES
   ============================================================ */

.rb-sponsor-bar {
    background: #1a1a1a;
    width: 100%;
    overflow: hidden;
}

.rb-sponsor-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.rb-sponsor-slider {
    position: relative;
    width: 100%;
    height: 110px;
}

.rb-sponsor-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rb-sponsor-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.rb-sponsor-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.rb-sponsor-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rb-sponsor-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.rb-sponsor-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.3s;
}

.rb-sponsor-dot:hover {
    background: rgba(255,255,255,0.7);
}

.rb-sponsor-dot.is-active {
    background: #ff6600;
}

/* Hide dots if only 1 slide */
.rb-sponsor-bar[data-count="1"] .rb-sponsor-dots {
    display: none;
}

/* Responsive */
@media (min-width: 768px) {
    .rb-sponsor-slider {
        height: 140px;
    }
}

@media (max-width: 480px) {
    .rb-sponsor-slider {
        height: 90px;
    }
}
