/* ============================================
   COMPONENTS.CSS - Componentes Reutilizáveis
   Arquivo: components.css
   Descrição: Botões, cards, tabelas, forms e outros componentes
   ============================================ */

/* ===== BOTÕES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-family);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-large {
    padding: 16px 32px;
    font-size: var(--font-size-lg);
}

.btn-sm {
    padding: 8px 16px;
    font-size: var(--font-size-sm);
}

/* ===== CARDS ===== */
.match-card,
.stats-card,
.session-stats-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-light);
    transition: all 0.3s ease;
}

.match-card:hover,
.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.match-card.live {
    border-left: 4px solid var(--danger);
}

.match-card.upcoming {
    border-left: 4px solid var(--warning);
}

/* ===== PREVIEW DE PARTIDAS ===== */
.match-preview {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    max-width: 400px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.match-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.match-status.live {
    background: var(--danger);
    color: var(--white);
}

.teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.team-logo {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.team-logo.small {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

.team-logo.primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.team-logo.secondary {
    background: var(--gradient-accent);
    color: var(--white);
}

/* ===== TABELAS ===== */
.ranking-table-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table th {
    background: var(--light);
    padding: 16px 12px;
    text-align: center;
    font-weight: 600;
    color: var(--gray);
    font-size: var(--font-size-sm);
    border-bottom: 1px solid var(--gray-light);
}

.ranking-table td {
    padding: 16px 12px;
    text-align: center;
    border-bottom: 1px solid var(--gray-light);
    font-weight: 500;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
    transition: transform 0.3s ease;
}

.input-wrapper.focused {
    transform: translateY(-2px);
}

.login-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.login-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-light);
    outline: none;
}

.login-input.success {
    border-color: var(--success);
}

.login-input.error {
    border-color: var(--danger);
}

/* ===== NOTIFICAÇÕES ===== */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}

.notification-toast.success {
    background: var(--success);
    color: var(--white);
}

.notification-toast.error {
    background: var(--danger);
    color: var(--white);
}

.notification-toast.info {
    background: var(--primary);
    color: var(--white);
}

/* ===== BADGES ===== */
.hero-badge,
.date-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-align: center;
}

.hero-badge {
    background: var(--gradient-accent);
    margin-bottom: 24px;
}

.date-badge {
    background: var(--dark-light);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    width: 100%;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

/* Badges com cores específicas */
.today .date-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%) !important;
    color: #333 !important;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.tomorrow .date-badge {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%) !important;
    color: #333 !important;
    box-shadow: 0 2px 4px rgba(192, 192, 192, 0.3);
}

.this-week .date-badge {
    background: linear-gradient(135deg, #cd7f32 0%, #e39e5e 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 4px rgba(205, 127, 50, 0.3);
}

/* ===== SESSÕES ===== */
.session-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: var(--light);
    transition: all 0.2s ease;
    position: relative;
}

.session-item:hover {
    background: #f0f7ff;
    transform: translateX(3px);
}

.session-item.today {
    border-left: 3px solid #ffd700 !important;
}

.session-item.tomorrow {
    border-left: 3px solid #d8d8d8 !important;
}

.session-item.this-week {
    border-left: 3px solid #e39e5e !important;
}

.session-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.session-stats-grid .stat-box {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0f0f0;
    border-top: 2px solid var(--primary);
}
