/* Leaderboard Template Styles for RankingBrokersLatam */

/* Leaderboard Hero */
.hero-leaderboard {
    background: linear-gradient(135deg, #FF6B35 0%, #004E89 100%);
    color: white;
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-leaderboard::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.leaderboard-header {
    position: relative;
    z-index: 1;
}

.ranking-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1.1rem;
}

.ranking-badge i {
    font-size: 1.5rem;
    color: #FFA726;
}

.hero-leaderboard h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-leaderboard .hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.ranking-filters {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: translateY(-2px);
}

/* Ranking Section */
.ranking-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.ranking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.ranking-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1A1A1A;
}

.ranking-update {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 0.95rem;
}

.ranking-update i {
    color: #FF6B35;
    animation: spin 2s linear infinite;
}

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

/* Ranking Table */
.ranking-table-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

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

.ranking-table thead {
    background: linear-gradient(135deg, #FF6B35 0%, #004E89 100%);
    color: white;
}

.ranking-table th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ranking-table tbody tr {
    border-bottom: 1px solid #e1e5e9;
    transition: all 0.3s;
}

.ranking-table tbody tr:hover {
    background: #f8f9fa;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ranking-table tbody tr:last-child {
    border-bottom: none;
}

.ranking-table td {
    padding: 20px;
    vertical-align: middle;
}

.rank-col {
    width: 60px;
    text-align: center;
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
}

.rank-number.rank-1 {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.rank-number.rank-2 {
    background: linear-gradient(135deg, #C0C0C0 0%, #808080 100%);
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.4);
}

.rank-number.rank-3 {
    background: linear-gradient(135deg, #CD7F32 0%, #8B4513 100%);
    box-shadow: 0 4px 15px rgba(205, 127, 50, 0.4);
}

.rank-number.rank-other {
    background: #FF6B35;
}

.broker-col {
    min-width: 200px;
}

.broker-info-table {
    display: flex;
    align-items: center;
    gap: 15px;
}

.broker-logo-table {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e1e5e9;
}

.broker-logo-table img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.broker-name-table {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1A1A1A;
}

.rating-col {
    width: 150px;
}

.rating-stars-table {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-value-table {
    font-weight: 600;
    color: #FF6B35;
}

.spread-col {
    width: 120px;
}

.spread-value {
    font-weight: 600;
    color: #004E89;
    font-size: 1.05rem;
}

.regulation-col {
    width: 150px;
}

.regulation-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.regulation-badge {
    background: #2E7D32;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.payment-col {
    width: 180px;
}

.payment-methods-table {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.payment-method-badge {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
}

.action-col {
    width: 150px;
}

.table-action-btn {
    background: #FF6B35;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.table-action-btn:hover {
    background: #004E89;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* View Toggle */
.view-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.view-btn {
    background: white;
    border: 2px solid #e1e5e9;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-btn:hover,
.view-btn.active {
    background: #FF6B35;
    color: white;
    border-color: #FF6B35;
}

/* Country Filters Section */
.country-filters-section {
    padding: 80px 0;
    background: white;
}

.country-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.country-card {
    background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
    border: 2px solid #e1e5e9;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

.country-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #FF6B35;
}

.country-flag {
    font-size: 4rem;
    margin-bottom: 15px;
}

.country-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #1A1A1A;
}

.country-card p {
    color: #666;
    margin-bottom: 20px;
}

/* Spread Comparison Section */
.spread-comparison-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.spread-comparison-table {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

.spread-header {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e1e5e9;
    margin-bottom: 20px;
}

.spread-pair {
    font-weight: 600;
    color: #1A1A1A;
}

.spread-brokers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.spread-broker {
    text-align: center;
    font-weight: 600;
    color: #666;
}

.spread-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.spread-row:last-child {
    border-bottom: none;
}

.spread-pair-name {
    font-weight: 600;
    color: #1A1A1A;
}

.spread-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.spread-value-item {
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    font-weight: 600;
    color: #004E89;
}

/* Quick Compare Section */
.quick-compare-section {
    padding: 80px 0;
    background: white;
}

.compare-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.compare-slot {
    background: #f8f9fa;
    border: 3px dashed #e1e5e9;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.compare-slot:hover {
    border-color: #FF6B35;
    background: rgba(255, 107, 53, 0.05);
}

.compare-slot i {
    font-size: 2rem;
    color: #999;
}

.compare-slot.filled {
    border-style: solid;
    border-color: #FF6B35;
    background: white;
}

.compare-btn {
    display: block;
    margin: 30px auto 0;
    padding: 15px 40px;
    font-size: 1.1rem;
}

.compare-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .ranking-table {
        display: block;
        overflow-x: auto;
    }
    
    .ranking-table thead {
        display: none;
    }
    
    .ranking-table tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #e1e5e9;
        border-radius: 12px;
    }
    
    .ranking-table td {
        display: flex;
        justify-content: space-between;
        padding: 15px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .ranking-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #666;
    }
    
    .compare-selector {
        grid-template-columns: 1fr;
    }
    
    .spread-header,
    .spread-row {
        grid-template-columns: 1fr;
    }
    
    .spread-brokers,
    .spread-values {
        grid-template-columns: 1fr;
    }
}

