/* MyFest - Estilos para Sistema de Deep Links (Uber/99) */

/* Modal */
.ride-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
    padding: 1rem;
}

.ride-modal-content {
    background: linear-gradient(135deg, #1F1F1F 0%, #2D1B4E 100%);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(168, 85, 247, 0.3);
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.ride-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #F5F5F5;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.ride-modal-close:hover {
    background: rgba(168, 85, 247, 0.8);
    transform: rotate(90deg);
}

.ride-modal-content h2 {
    color: #F5F5F5;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    padding-right: 2.5rem;
    font-weight: 700;
}

/* Destino */
.ride-destination {
    background: rgba(15, 15, 15, 0.5);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.ride-destination h3 {
    color: #A855F7;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.ride-address {
    color: rgba(245, 245, 245, 0.7);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.ride-info {
    display: flex;
    gap: 1.5rem;
    color: rgba(245, 245, 245, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Opções de Transporte */
.ride-options {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ride-option {
    background: rgba(31, 31, 31, 0.6);
    border-radius: 12px;
    padding: 1.25rem;
    border: 2px solid rgba(168, 85, 247, 0.2);
    transition: all 0.3s;
}

.ride-option:hover {
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.2);
}

.ride-option-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.service-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.ride-option-header h4 {
    color: #F5F5F5;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.ride-option-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.ride-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    color: rgba(245, 245, 245, 0.6);
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.price-value {
    color: #A855F7;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.price-range {
    color: rgba(245, 245, 245, 0.5);
    font-size: 0.75rem;
}

/* Botões de Chamar */
.btn-call-ride {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-uber {
    background: linear-gradient(135deg, #000000, #333333);
    color: #FFFFFF;
}

.btn-uber:hover {
    background: linear-gradient(135deg, #333333, #000000);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.btn-99 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000000;
}

.btn-99:hover {
    background: linear-gradient(135deg, #FFA500, #FFD700);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

/* Tabs */
.ride-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(168, 85, 247, 0.2);
}

.ride-tab {
    background: none;
    border: none;
    color: rgba(245, 245, 245, 0.6);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.ride-tab:hover {
    color: rgba(245, 245, 245, 0.9);
}

.ride-tab.active {
    color: #A855F7;
    border-bottom-color: #A855F7;
}

.ride-tab-content {
    display: none;
}

.ride-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* Resumo */
.ride-summary {
    background: rgba(15, 15, 15, 0.5);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(31, 31, 31, 0.5);
    border-radius: 8px;
}

.summary-label {
    color: rgba(245, 245, 245, 0.8);
    font-size: 0.95rem;
}

.summary-value {
    color: #A855F7;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Disclaimer */
.ride-disclaimer {
    color: rgba(245, 245, 245, 0.5);
    font-size: 0.8rem;
    text-align: center;
    margin: 1rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
}

/* Loading */
.ride-modal-loading {
    text-align: center;
    padding: 3rem 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(168, 85, 247, 0.2);
    border-top-color: #A855F7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.ride-modal-loading p {
    color: rgba(245, 245, 245, 0.8);
    font-size: 1.1rem;
}

/* Botão "Como chegar" */
.btn-ride-estimate {
    background: linear-gradient(135deg, #A855F7, #EC4899);
    color: #F5F5F5;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.btn-ride-estimate:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.4);
}

.btn-ride-estimate:active {
    transform: translateY(-1px);
}

.btn-ride-estimate::before {
    content: '🚗';
    font-size: 1.3rem;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .ride-modal {
        padding: 0.5rem;
    }
    
    .ride-modal-content {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .ride-modal-content h2 {
        font-size: 1.5rem;
    }
    
    .ride-option-body {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ride-price {
        margin-bottom: 0.75rem;
    }
    
    .btn-call-ride {
        width: 100%;
    }
    
    .ride-tabs {
        gap: 0.25rem;
    }
    
    .ride-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .ride-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .ride-modal-content {
        padding: 1.25rem;
    }
    
    .ride-modal-content h2 {
        font-size: 1.25rem;
    }
    
    .service-logo {
        height: 24px;
    }
    
    .price-value {
        font-size: 1.25rem;
    }
    
    .summary-value {
        font-size: 1.1rem;
    }
}

/* Scrollbar personalizado */
.ride-modal-content::-webkit-scrollbar {
    width: 8px;
}

.ride-modal-content::-webkit-scrollbar-track {
    background: rgba(15, 15, 15, 0.5);
    border-radius: 10px;
}

.ride-modal-content::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.5);
    border-radius: 10px;
}

.ride-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.7);
}

