/**
 * TORNEIOS PRO - Design Premium
 * Área Pública Modernizada
 * Cores em harmonia com a logo
 */

:root {
    --primary-dark: #3e4a6e;
    --primary-medium: #4a5a7e;
    --primary-light: #5a6b8f;
    --gold-primary: #d4af37;
    --gold-light: #f0d97d;
    --gold-dark: #b8941f;
    --white-soft: #f8f9fa;
    --shadow-premium: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Container principal */
.public-content {
    padding: 0;
    margin: 0;
}

/* Seção de Banners Premium */
.banners-section {
    background: linear-gradient(180deg, rgba(62, 74, 110, 0.3) 0%, transparent 100%);
    padding: 2rem 0 3rem;
    margin-bottom: 2rem;
}

.banner-card {
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-premium);
    border: 3px solid rgba(212, 175, 55, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.banner-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 8s infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30%, -30%); }
}

.banner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.4);
    border-color: var(--gold-primary);
}

.banner-tipo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.banner-titulo {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.banner-descricao {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Cards de Competições Premium */
.card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--gold-primary) 0%, var(--gold-light) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.3);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    color: white;
    padding: 1.5rem;
    border-bottom: 3px solid var(--gold-primary);
}

.card-header h4 {
    margin: 0;
    font-weight: 700;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header i {
    color: var(--gold-primary);
    font-size: 1.6rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.card-body {
    padding: 1.8rem;
}

/* Badge Premium */
.badge {
    padding: 8px 16px;
    font-weight: 600;
    border-radius: 50px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.badge-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-warning {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 100%);
    color: var(--primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #868e96 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Botões Premium */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    border: 2px solid var(--gold-primary);
    color: white;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.1);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 100%);
    color: var(--primary-dark);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

/* Lista de Times/Grupos */
.list-group-item {
    border: none;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    padding: 1rem 1.5rem;
    background: rgba(248, 249, 250, 0.8);
    margin-bottom: 8px;
    border-radius: 10px;
}

.list-group-item:hover {
    border-left-color: var(--gold-primary);
    background: white;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

/* Tabelas Premium */
.table {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.table thead {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    color: white;
}

.table thead th {
    border: none;
    padding: 1.2rem 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table tbody tr:hover {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.05) 0%, rgba(212, 175, 55, 0.1) 50%, rgba(212, 175, 55, 0.05) 100%);
    transform: scale(1.01);
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* Seção de Título */
.section-title {
    text-align: center;
    margin: 3rem 0 2rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    padding: 0 20px;
    position: relative;
}

.section-title h2::before,
.section-title h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-primary));
}

.section-title h2::before {
    right: 100%;
    margin-right: 20px;
}

.section-title h2::after {
    left: 100%;
    margin-left: 20px;
    background: linear-gradient(90deg, var(--gold-primary), transparent);
}

/* Animações de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .list-group-item, .table {
    animation: fadeInUp 0.6s ease-out;
}

/* Carousel indicators premium */
.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold-primary);
    border: 2px solid white;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    opacity: 1;
    transform: scale(1.3);
    box-shadow: 0 0 15px var(--gold-primary);
}

/* Carousel controls premium */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    opacity: 0;
    transition: all 0.3s ease;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--gold-primary);
    border-color: white;
    transform: translateY(-50%) scale(1.1);
}

/* Escudos dos times */
.time-escudo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--gold-primary);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.time-escudo:hover {
    transform: scale(1.2) rotate(5deg);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.5);
}

/* Responsividade */
@media (max-width: 768px) {
    .banner-titulo {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .section-title h2::before,
    .section-title h2::after {
        display: none;
    }
}

/* Loading spinner premium */
.spinner-border {
    border-color: var(--gold-primary);
    border-right-color: transparent;
}

/* Alert premium */
.alert {
    border-radius: 15px;
    border: none;
    border-left: 5px solid;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.alert-info {
    background: linear-gradient(135deg, rgba(62, 74, 110, 0.1) 0%, rgba(90, 107, 143, 0.1) 100%);
    border-left-color: var(--primary-medium);
    color: var(--primary-dark);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(240, 217, 125, 0.1) 100%);
    border-left-color: var(--gold-primary);
    color: var(--gold-dark);
}

/* Footer premium (se existir) */
footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 3px solid var(--gold-primary);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}
