/* css/fvms-components.css - Componentes Específicos FVMS */

/* ===== DASHBOARD COMPONENTS ===== */
.dashboard-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: none;
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 176, 79, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--fvms-green), var(--fvms-blue), var(--fvms-gold));
}

.dashboard-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 176, 79, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* ===== ARBITRAGEM COMPONENTS ===== */
.arbitro-status-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    border-left: 6px solid;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.arbitro-status-card.disponivel {
    border-left-color: var(--fvms-green);
    background: linear-gradient(135deg, rgba(0, 176, 79, 0.02), var(--white));
}

.arbitro-status-card.indisponivel {
    border-left-color: var(--danger);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.02), var(--white));
}

.arbitro-status-card.em-jogo {
    border-left-color: var(--fvms-blue);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.02), var(--white));
}

.escala-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.escala-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.escala-card:hover {
    border-color: var(--fvms-green);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.arbitro-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0, 176, 79, 0.3);
}

/* ===== CAMPEONATO COMPONENTS ===== */
.campeonato-fase {
    background: linear-gradient(145deg, var(--white), var(--gray-50));
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    border: 2px solid var(--gray-100);
    position: relative;
    transition: var(--transition-normal);
}

.campeonato-fase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-secondary);
    border-radius: 20px 20px 0 0;
}

.campeonato-fase:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--fvms-blue);
}

.chaveamento-bracket {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: var(--gray-50);
    border-radius: 16px;
    overflow-x: auto;
}

.chave-jogo {
    background: var(--white);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: var(--transition-normal);
    cursor: pointer;
}

.chave-jogo:hover {
    border-color: var(--fvms-green);
    transform: scale(1.02);
}

.chave-equipe {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    margin: 4px 0;
    transition: var(--transition-fast);
}

.chave-equipe.vencedor {
    background: linear-gradient(135deg, rgba(0, 176, 79, 0.1), rgba(0, 176, 79, 0.05));
    font-weight: 700;
    color: var(--fvms-dark-green);
}

.chave-equipe.perdedor {
    background: var(--gray-100);
    color: var(--gray-500);
}

/* ===== RANKING COMPONENTS ===== */
.ranking-table {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
}

.ranking-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 24px;
    text-align: center;
}

.ranking-position {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    margin-right: 16px;
    flex-shrink: 0;
}

.ranking-position.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: var(--gray-900);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4);
}

.ranking-position.silver {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
    color: var(--gray-900);
    box-shadow: 0 4px 16px rgba(192, 192, 192, 0.4);
}

.ranking-position.bronze {
    background: linear-gradient(135deg, #CD7F32, #B87333);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(205, 127, 50, 0.4);
}

.ranking-position.default {
    background: var(--gray-200);
    color: var(--gray-600);
}

/* ===== JOGO COMPONENTS ===== */
.jogo-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.jogo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--fvms-blue);
}

.jogo-header {
    background: var(--gradient-secondary);
    color: var(--gray-900);
    padding: 16px 24px;
    font-weight: 700;
    text-align: center;
}

.jogo-teams {
    padding: 32px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.team-info {
    text-align: center;
    flex: 1;
}

.team-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 24px;
    color: var(--gray-600);
}

.vs-divider {
    margin: 0 24px;
    text-align: center;
}

.score-display {
    font-size: 48px;
    font-weight: 900;
    color: var(--fvms-green);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* ===== TIMELINE COMPONENTS ===== */
.timeline {
    position: relative;
    padding: 32px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    margin-left: 0;
    text-align: right;
    padding-right: 40px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
    padding-left: 40px;
}

.timeline-content {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    max-width: 400px;
    border: 2px solid var(--gray-100);
    transition: var(--transition-normal);
}

.timeline-content:hover {
    border-color: var(--fvms-green);
    transform: scale(1.02);
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--fvms-gold);
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 0 0 4px var(--fvms-green);
    z-index: 2;
}

/* ===== NOTIFICATION COMPONENTS ===== */
.notification-panel {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition-fast);
    cursor: pointer;
    position: relative;
}

.notification-item:hover {
    background: var(--gray-50);
}

.notification-item.unread {
    background: linear-gradient(135deg, rgba(0, 176, 79, 0.02), var(--white));
    border-left: 4px solid var(--fvms-green);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--fvms-blue);
    border-radius: 50%;
}

/* ===== PAYMENT COMPONENTS ===== */
.payment-card {
    background: linear-gradient(145deg, var(--white), var(--gray-50));
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--gray-100);
    transition: var(--transition-normal);
}

.payment-card:hover {
    border-color: var(--fvms-green);
    transform: translateY(-4px);
}

.pix-qrcode {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--gray-100);
}

.payment-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-status.pending {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(245, 158, 11, 0.1));
    color: var(--fvms-dark-gold);
}

.payment-status.approved {
    background: linear-gradient(135deg, rgba(0, 176, 79, 0.1), rgba(0, 164, 70, 0.1));
    color: var(--fvms-dark-green);
}

.payment-status.rejected {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    color: #dc2626;
}

/* ===== FORM COMPONENTS ESPECÍFICOS ===== */
.fvms-form {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 2px solid var(--gray-100);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section-title {
    color: var(--fvms-green);
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-group-inline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.file-upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    transition: var(--transition-normal);
    cursor: pointer;
    background: var(--gray-50);
}

.file-upload-area:hover {
    border-color: var(--fvms-green);
    background: rgba(0, 176, 79, 0.02);
}

.file-upload-area.dragover {
    border-color: var(--fvms-blue);
    background: rgba(14, 165, 233, 0.02);
}

/* ===== SEARCH COMPONENTS ===== */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 16px 24px 16px 56px;
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    font-size: 16px;
    transition: var(--transition-normal);
    background: var(--white);
}

.search-input:focus {
    border-color: var(--fvms-green);
    box-shadow: 0 0 0 4px rgba(0, 176, 79, 0.1);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 20px;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 8px;
}

.search-result-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition-fast);
    cursor: pointer;
}

.search-result-item:hover {
    background: var(--gray-50);
}

.search-result-item:last-child {
    border-bottom: none;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .dashboard-card {
        margin-bottom: 20px;
    }
    
    .jogo-teams {
        flex-direction: column;
        gap: 24px;
    }
    
    .vs-divider {
        margin: 0;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item .timeline-content {
        margin-left: 60px;
        margin-right: 0;
        text-align: left;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .timeline-marker {
        left: 20px;
        transform: translateX(-50%);
    }
    
    .form-group-inline {
        grid-template-columns: 1fr;
    }
    
    .fvms-form {
        padding: 24px;
        border-radius: 16px;
    }
}

/* ===== LOADING STATES ===== */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 24px;
    margin-bottom: 16px;
    width: 60%;
}

.skeleton-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

/* ===== UTILITY CLASSES ===== */
.bg-fvms-gradient {
    background: var(--gradient-primary);
}

.bg-fvms-gradient-secondary {
    background: var(--gradient-secondary);
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hover-lift {
    transition: transform var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}