/* Restaurant Partners Carousel Styles */
.rpc-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 20px 0;
}

.rpc-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.rpc-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.rpc-carousel-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.rpc-partner-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    padding: 15px;
    border-radius: 8px;
}

.rpc-partner-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.rpc-logo-container {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rpc-logo {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.rpc-logo-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.rpc-logo-text {
    text-transform: uppercase;
}

.rpc-restaurant-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: #333;
    margin-top: 8px;
    text-align: center;
    word-wrap: break-word;
    hyphens: auto;
}

/* Carousel Controls */
.rpc-carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.rpc-prev-btn,
.rpc-next-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: #333;
}

.rpc-prev-btn:hover,
.rpc-next-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.rpc-prev-btn:active,
.rpc-next-btn:active {
    transform: scale(0.95);
}

.rpc-prev-btn svg,
.rpc-next-btn svg {
    width: 20px;
    height: 20px;
}

/* Carousel Dots */
.rpc-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 8px;
}

.rpc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.rpc-dot:hover {
    background-color: #999;
    transform: scale(1.2);
}

.rpc-dot.active {
    background-color: #007cba;
    transform: scale(1.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .rpc-carousel-item {
        padding: 0 10px;
    }
    
    .rpc-restaurant-name {
        font-size: 12px;
    }
    
    .rpc-logo-placeholder {
        width: 60px;
        height: 60px;
        font-size: 14px;
    }
    
    .rpc-prev-btn,
    .rpc-next-btn {
        width: 35px;
        height: 35px;
    }
    
    .rpc-prev-btn svg,
    .rpc-next-btn svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .rpc-carousel-item {
        padding: 0 5px;
    }
    
    .rpc-restaurant-name {
        font-size: 11px;
    }
    
    .rpc-logo-placeholder {
        width: 50px;
        height: 50px;
        font-size: 12px;
    }
}

/* Error Messages */
.rpc-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 20px 0;
    text-align: center;
}

/* Loading State */
.rpc-carousel-container.loading {
    opacity: 0.6;
    pointer-events: none;
}

.rpc-carousel-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: rpc-spin 1s linear infinite;
    z-index: 100;
}

@keyframes rpc-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Accessibility */
.rpc-partner-link:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.rpc-prev-btn:focus,
.rpc-next-btn:focus,
.rpc-dot:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .rpc-carousel-controls,
    .rpc-carousel-dots {
        display: none;
    }
    
    .rpc-carousel-track {
        transform: none !important;
    }
    
    .rpc-carousel-item {
        page-break-inside: avoid;
    }
}
