* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: #e2e8f0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background-image: url(../../resources/background.jpg);
    background-size: 180px;
}
h2.mb-4{
    color: #ffffff;
    text-shadow: 0px 0px 8px black;
    background: #0000002b;
    padding: 15px;
    border-radius: 15px;
}

.navbar {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    padding: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.navbar-brand img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.nav-link {
    color: #cbd5e1 !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ffe795 !important;
}

.nav-link.active {
    color: #e8c755 !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e8c755, #ffe795);
    border-radius: 2px;
}

.ranking-container {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 2rem;
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ranking-header {
    text-align: center;
    margin-bottom: 3rem;
}

.ranking-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px rgba(96, 165, 250, 0.3);
}

.ranking-subtitle {
    color: #94a3b8;
    font-size: 1rem;
}

.ranking-table {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 0 40px rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.table {
    color: #e2e8f0;
    margin-bottom: 0;
}

.table thead th {
    background: rgba(51, 65, 85, 0.95);
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 1.25rem 1rem;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.table tbody tr {
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s ease;
    background: rgba(30, 41, 59, 0.3);
}

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

.table td {
    padding: 1.25rem 1rem;
    vertical-align: middle;
}

.participant-logo {
    height: 60px;
    transition: all 0.3s ease;
}
.participant-logo.trainer-list{
    position: absolute;
    left: 12px;
}

.position-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.position-1 { 
    background: linear-gradient(135deg, #ffd700, #ffed4e); 
    color: #000;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.3);
}

.position-2 { 
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8); 
    color: #000;
    box-shadow: 0 4px 12px rgba(192, 192, 192, 0.5), 0 0 20px rgba(192, 192, 192, 0.3);
}

.position-3 { 
    background: linear-gradient(135deg, #cd7f32, #e8a06c); 
    color: #fff;
    box-shadow: 0 4px 12px rgba(205, 127, 50, 0.5), 0 0 20px rgba(205, 127, 50, 0.3);
}

.position-other { 
    background: linear-gradient(135deg, #475569, #64748b); 
    color: #e2e8f0;
}

.participant-name {
    font-weight: 600;
    font-size: 1.05rem;
    color: #f1f5f9;
}

.stat-number {
    font-weight: 700;
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    background: #f4f4f491;
    color: #110d00;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.table tbody tr:hover .stat-number {
    background: rgba(59, 130, 246, 0.2);
    transform: scale(1.05);
}

.stat-wins {
    color: #34d399;
}

/* Responsive */
@media (max-width: 768px) {
    .ranking-header h2 {
        font-size: 2rem;
    }

    .table thead th {
        font-size: 0.7rem;
        padding: 1rem 0.5rem;
    }

    .table td {
        padding: 1rem 0.5rem;
    }

    .participant-logo {
        width: 35px;
        height: 35px;
    }

    .position-badge {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .participant-name {
        font-size: 0.95rem;
    }

    .stat-number {
        font-size: 1rem;
        min-width: 40px;
        height: 40px;
    }
}

.hide-journey{
    display: none;
}
.btn-journey{
    background: #324054;
    color: white;
    border: 0;
    border-radius: 5px;
    padding: 0px 5px 2px 5px;
    margin: 0px 15px;
}
.btn-journey svg{
    margin-top: -8px;
}
.btn-journey:hover{
    background: #536175;
}
.journey-result{
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}
.journey-pending{
    color: #95a5a6;
    font-style: italic;
    font-weight: 600
}
.journey-vs{
    color: #e74c3c;
    font-weight: 700;
    margin: 0 8px;
}
.journey-winner{
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
}
.journey-players{
    font-weight: 500;
}


.trainers-container{
    /*max-width: 1400px;
    margin: 0 auto;*/
}
.trainers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.trainer-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.trainer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.trainer-header {
    background: rgba(51, 65, 85, 0.95);
    color: white;
    text-align: center;
    position: relative;
    background-position: center;
}
.trainer-header div.header-background{
    background: #313131d1;
    padding: 20px;
}

.trainer-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.trainers-grid .pokemon-list {
    padding: 20px;
    background-size: 53%;
    background-position: center;
    background-repeat: no-repeat;
}

.trainers-grid .pokemon-item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    background: rgb(248 249 250 / 66%);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.trainers-grid .pokemon-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.trainers-grid .pokemon-item:last-child {
    margin-bottom: 0;
}

.trainers-grid .pokemon-sprite {
    width: 50px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    position: relative;
}
.trainers-grid .pokemon-sprite img{
    width: 100%;
}

.trainers-grid .pokemon-name {
    font-size: 15px;
    font-weight: 500;
    color: #2c3e50;
    flex-grow: 1;
    text-transform: capitalize;
    text-shadow: 0px 0px 12px white;
}

.trainers-grid .pokemon-type {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    margin-left: 8px;
    width: 27px;
    padding: 4px;
    height: 27px;
    border-radius: 100px;
}

/* Tipos de Pokémon */
.type-fire { background: #e62829; }
.type-water { background: #2980ef; }
.type-grass { background: #3fa129; }
.type-electric { background: #fac000; }
.type-psychic { background: #ef4179; }
.type-ice { background: #3fd8ff; }
.type-dragon { background: #5061e1; }
.type-dark { background: #50413f; }
.type-fairy { background: #ef71ef; }
.type-fighting { background: #ff8000; }
.type-flying { background: #81b9ef; }
.type-poison { background: #8f41cb; }
.type-ground { background: #915121; }
.type-rock { background: #afa981; }
.type-bug { background: #91a119; }
.type-ghost { background: #704170; }
.type-steel { background: #60a1b8; }
.type-normal { background: #9fa19f; }

.trainer-social{
    cursor: pointer;
    width: 28px;
    margin: 0px 5px;
}
.trainer-header a{
    text-decoration: none;
    color: white;
}

.pokemon-item.favorite{
    box-shadow: inset 0px 0px 5px gold;
}
.pokemon-item .favorite-icon{
    width: 14px !important;
    position: absolute;
    left: -6px;
    top: -6px;
}