/**
 * Estilos Torneo Actual - TradingNote (estética landing)
 */

.tn-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
}

:root {
    --gold-color: #ffd700;
    --silver-color: #c0c0c0;
    --bronze-color: #cd7f32;
}

/* Hero compacto para torneos */
.torneo-hero-compact {
    min-height: auto !important;
    padding: 140px 0 60px !important;
}

.torneo-hero-compact::before {
    background: radial-gradient(circle, rgba(var(--ln-accent-rgb, 92, 230, 210), .12) 0%, transparent 70%);
}

.torneo-wrapper {
    background: var(--ln-bg, #0b0b0f);
    min-height: calc(100vh - 80px);
    padding-top: 72px;
}

.torneo-main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 0 80px;
}

/* Alinear header de página con secciones (Próximos, etc.) a la izquierda */
.torneo-page-header {
    text-align: left;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

/* === Page Header (dashboard style) === */
.torneo-page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-light, #fff);
}

.torneo-page-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted, #aaa);
}

.page-title-box .breadcrumb {
    background: transparent;
    padding: 0;
}

.page-title-box .breadcrumb-item a {
    color: var(--text-muted, #aaa);
}

.page-title-box .breadcrumb-item a:hover {
    color: var(--primary-color, #5CE6D2);
}

.page-title-box .breadcrumb-item.active {
    color: var(--primary-color, #5CE6D2);
}

.badge-status {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

.badge-status.badge-success {
    background: rgba(28, 200, 138, 0.2);
    color: #1cc88a;
}

.badge-status.badge-info {
    background: rgba(23, 162, 184, 0.2);
    color: #17a2b8;
}

.badge-status.badge-secondary {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
}

/* === Summary cards (dashboard style) === */
.summary-card.torneo-info-card {
    background-color: var(--dark-card, #1e1e1e);
    border: 1px solid var(--dark-border, #333);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    height: 100%;
}

.summary-card.torneo-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.summary-icon.icon-primary {
    background: linear-gradient(135deg, rgba(92, 230, 210, 0.2) 0%, rgba(92, 230, 210, 0.1) 100%);
    color: var(--primary-color, #5CE6D2);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.summary-icon.icon-success {
    background: linear-gradient(135deg, rgba(28, 200, 138, 0.2) 0%, rgba(28, 200, 138, 0.1) 100%);
    color: #1cc88a;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.summary-icon.icon-info {
    background: linear-gradient(135deg, rgba(54, 185, 204, 0.2) 0%, rgba(54, 185, 204, 0.1) 100%);
    color: #36b9cc;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.summary-icon.icon-warning {
    background: linear-gradient(135deg, rgba(246, 194, 62, 0.2) 0%, rgba(246, 194, 62, 0.1) 100%);
    color: #f6c23e;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.torneo-info-label {
    font-size: 0.8rem;
    color: var(--text-muted, #aaa);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.torneo-info-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light, #fff);
}

/* === Torneo cards === */
.torneo-card-link {
    display: block;
    color: inherit;
}

.torneo-card-link:hover {
    color: inherit;
}

.torneo-card {
    background: var(--ln-card, #16161e);
    border: 1px solid var(--ln-border, rgba(255,255,255,.06));
    border-radius: var(--ln-radius-lg, 20px);
    overflow: hidden;
    height: 100%;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.torneo-card-link:hover .torneo-card {
    border-color: rgba(var(--ln-accent-rgb, 92, 230, 210), .35);
    box-shadow: 0 16px 48px rgba(0, 0, 0, .4), 0 0 0 1px rgba(var(--ln-accent-rgb, 92, 230, 210), .12);
    transform: translateY(-6px);
}

.torneo-card-image {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.torneo-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.torneo-card-link:hover .torneo-card-img {
    transform: scale(1.06);
}

.torneo-card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
}

.torneo-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.torneo-card-countdown {
    position: absolute;
    bottom: 12px;
    left: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 10px;
    border-radius: 6px;
}

.torneo-badge-proximo {
    background: linear-gradient(135deg, var(--ln-accent, #5CE6D2), var(--ln-accent-dark, #3bbfae));
    color: #000;
    font-weight: 700;
}

.torneo-badge-curso {
    background: linear-gradient(135deg, var(--ln-green, #10b981), #059669);
    color: #fff;
    font-weight: 700;
}

.torneo-badge-finalizado {
    background: rgba(108, 117, 125, 0.5);
    color: var(--ln-text-secondary, #8a8a9a);
    font-weight: 600;
}

.torneo-card-body {
    padding: 1.25rem 1.25rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.torneo-card-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ln-text, #f0f0f5);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.torneo-card-fechas {
    font-size: 0.875rem;
    color: var(--ln-text-secondary, #8a8a9a);
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
}

.torneo-card-premios {
    margin-bottom: 0.75rem;
}

.torneo-premios-label {
    font-size: 0.7rem;
    color: var(--text-muted, #888);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.torneo-premios-dollar {
    font-weight: 700;
    color: var(--primary-color, #5CE6D2);
    font-size: 1rem;
}

.torneo-premios-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.torneo-premio {
    font-size: 0.8rem;
    color: var(--text-muted, #bbb);
    display: flex;
    align-items: center;
    gap: 8px;
}

.torneo-premio .tn-icon {
    flex-shrink: 0;
}

.torneo-premio-1 {
    color: var(--gold-color, #ffd700);
    font-weight: 600;
}

.torneo-premio-2 {
    color: var(--silver-color, #c0c0c0);
}

.torneo-premio-3 {
    color: var(--bronze-color, #cd7f32);
}

.torneo-card-reglas {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0.75rem;
}

.torneo-regla-chip {
    font-size: 0.7rem;
    padding: 4px 10px;
    background: rgba(var(--ln-accent-rgb, 92, 230, 210), .1);
    color: var(--ln-accent, #5CE6D2);
    border-radius: var(--ln-radius-sm, 8px);
    border: 1px solid rgba(var(--ln-accent-rgb, 92, 230, 210), .2);
}

.torneo-card-metrics {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.torneo-card-metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.torneo-metric-label {
    font-size: 0.7rem;
    color: var(--text-muted, #888);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.torneo-metric-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ln-text, #f0f0f5);
}

.torneo-metric-free {
    color: var(--primary-color, #5CE6D2);
}

.torneo-card-footer {
    margin-top: auto;
}

.torneo-card-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.torneo-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light, #fff);
    margin-bottom: 1rem;
}

.min-h-patrocinadores {
    min-height: 140px;
}

.torneo-badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light, #fff);
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.torneo-reglas-bar .torneo-reglas-list-inline {
    color: var(--text-muted, #aaa);
    font-size: 0.95rem;
}

.torneo-reglas-bar .torneo-reglas-list-inline span {
    display: inline-flex;
    align-items: center;
}

/* === Countdown card === */
.torneo-countdown-card {
    background: linear-gradient(135deg, rgba(92, 230, 210, 0.08) 0%, rgba(92, 230, 210, 0.02) 100%);
    border-color: rgba(92, 230, 210, 0.2);
}

.torneo-countdown-note {
    font-size: 0.875rem;
    color: var(--text-muted, #aaa);
}

.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.timer-unit {
    text-align: center;
}

.timer-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color, #5CE6D2);
    margin: 0;
}

.timer-label {
    font-size: 0.75rem;
    color: var(--text-muted, #aaa);
    margin: 0;
    text-transform: uppercase;
}

.timer-separator {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-muted, #aaa);
}

/* === Podio premios === */
.premios-podium {
    padding: 0.5rem 0;
    min-height: 200px;
}

.podium-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.prize-badge {
    border-radius: 20px;
    padding: 4px 12px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light, #fff);
}

.prize-badge.prize-gold {
    background: linear-gradient(135deg, #ffd700, #b8860b);
    color: #1a1a1a;
}

.podium-prize-text {
    font-size: 0.75rem;
    color: var(--text-muted, #aaa);
    text-align: center;
    margin-bottom: 8px;
    min-height: 2em;
}

.podium-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    min-width: 60px;
}

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

.podium-first {
    background: linear-gradient(180deg, #ffd700, #daa520);
    height: 100px;
}

.podium-second {
    background: linear-gradient(180deg, #e8e8e8, #c0c0c0);
    height: 70px;
}

.podium-third {
    background: linear-gradient(180deg, #cd7f32, #8b4513);
    height: 50px;
}

.podium-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.5);
}

.podium-base {
    height: 10px;
    background: var(--dark-border, #333);
    border-radius: 0 0 8px 8px;
    width: 100%;
}

/* === Ranking table === */
.torneo-ranking-table {
    color: var(--text-light, #fff);
}

.torneo-ranking-table thead th {
    border-bottom: 1px solid var(--dark-border, #333);
    color: var(--text-muted, #aaa);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.torneo-ranking-table tbody td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.ranking-row-1 {
    background: rgba(255, 215, 0, 0.05);
}

.ranking-row-2 {
    background: rgba(192, 192, 192, 0.03);
}

.ranking-row-3 {
    background: rgba(205, 127, 50, 0.03);
}

.badge.ranking-bronze {
    background-color: #cd7f32 !important;
    color: #fff !important;
}

.torneo-ranking-table .text-success {
    color: #1cc88a !important;
}

.torneo-ranking-table .text-danger {
    color: #e74a3b !important;
}

.torneo-ranking-table .btn-sm {
    white-space: nowrap;
}

/* === Botones === */
.torneo-card .btn-primary {
    background: linear-gradient(135deg, var(--ln-accent, #5CE6D2), var(--ln-accent-dark, #3bbfae)) !important;
    border: none !important;
    color: #000 !important;
    font-weight: 700;
    border-radius: var(--ln-radius-sm, 8px);
}

.torneo-card .btn-primary:hover {
    box-shadow: 0 6px 24px rgba(var(--ln-accent-rgb, 92, 230, 210), .35);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border-color: var(--ln-accent, #5CE6D2);
    color: var(--ln-accent, #5CE6D2);
}

.btn-outline-primary:hover {
    background: rgba(var(--ln-accent-rgb, 92, 230, 210), .1);
    border-color: var(--ln-accent, #5CE6D2);
    color: var(--ln-accent, #5CE6D2);
}
