/* Fotora Rankings Styles */

:root {
    --fotorabg: #0a0a0f;
    --fotorabg2: #12121a;
    --fotoracard: #1b1b2d;
    --fotoracardPAR: #282841;
    --fotoratext: #fff;
    --fotoratext2: #aaa;
    --fotorapurple: #8b5cf6;
    --fotorapurple2: #6366f1;
    --fotoragold: #fbbf24;
    --fotoraborder: rgb(46 53 75);
}

/* Container */
.fotora-container {
    background: linear-gradient(0deg, var(--fotorabg), var(--fotorabg2));
    color: var(--fotoratext);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Header */
.fotora-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--fotoraborder);
}

.fotora-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--fotorapurple);
}

.fotora-header h3 i {
    margin-right: 8px;
}

.fotora-header .subtitle {
    font-size: 14px;
    color: var(--fotoratext2);
    margin: 5px 0 0;
    font-weight: 400;
}

.fotora-subtitle {
    font-size: 13px;
    color: var(--fotoratext2);
    text-align: center;
    margin: -15px 0 20px;
    font-weight: 400;
}

/* Bar rows */
.fotora-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: var(--fotoracard);
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid var(--fotorubber);
}

.fotora-bar:nth-child(odd) {
    background: var(--fotoracardPAR);
}

.fotora-bar:hover {
    border-color: var(--fotorapurple);
}

.fotora-bar.has-bar {
    display: grid;
    grid-template-columns: 35px 40px 1fr 55px;
    gap: 10px;
    align-items: center;
    padding: 8px 12px;
}

.fotora-bar .pos {
    font-weight: 700;
    color: var(--fotorapurple);
    min-width: 35px;
}

.fotora-bar .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.fotora-bar .name {
    flex: 1;
    font-weight: 500;
}

.fotora-bar .pts {
    font-weight: 700;
    color: var(--fotorapurple);
    text-align: right;
    min-width: 50px;
}

.fotora-bar .pts.positive {
    color: #10b981;
}

.fotora-bar .pts.negative {
    color: #ef4444;
}

/* Bar chart with progress bar */
.fotora-bar.has-bar {
    display: grid;
    grid-template-columns: 35px 40px 100px 1fr 55px;
    gap: 10px;
    align-items: center;
    padding: 0px 12px;
}

.fotora-bar .bar-name {
    font-size: 12px;
    color: var(--fotoratexto);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fotora-bar .bar-fill {
    height: 8px;
    background: linear-gradient(90deg, var(--fotorapurple), var(--fotorapurple2));
    border-radius: 4px;
    min-width: 4px;
    transition: width 0.3s ease;
}

.fotora-bar .bar-bg {
    height: 8px;
    background: var(--fotorabg2);
    border-radius: 4px;
    overflow: hidden;
}

/* Mom cards */
.fotora-mom-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: var(--fotoracard);
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid var(--fotoraborder);
}

.fotora-mom-card .pos {
    font-weight: 700;
    color: var(--fotorapurple);
}

.fotora-mom-card .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.fotora-mom-card .name {
    flex: 1;
    font-weight: 500;
}

.fotora-mom-card .trend {
    font-weight: 700;
    color: #10b981;
}

.fotora-mom-card .trend.positive {
    color: #10b981;
}

.fotora-mom-card .trend.negative {
    color: #ef4444;
}

/* User stats */
.fotora-user-header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding: 80px 20px 20px;
}

.fotora-user-header .avatar-lg {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
}

.fotora-user-header h2 {
    margin: 15px 0 0;
    font-size: 28px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Biography */
.fotora-bio {
    text-align: center;
    font-size: 14px;
    color: var(--fotoratext2);
    font-style: italic;
    margin-bottom: 15px;
    padding: 10px;
    background: var(--fotoracard);
    border-radius: 8px;
}

/* Social networks row */
.fotora-redes-row {
    text-align: center;
    margin-bottom: 15px;
    padding: 10px;
}

.fotora-redes-row ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.fotora-redes-row li {
    display: inline-block;
}

.fotora-redes-row a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--fotoracard);
    border-radius: 50%;
    color: var(--fotoratext);
    border: 1px solid var(--fotorapunov);
    transition: all 0.2s;
}

.fotora-redes-row a:hover {
    background: var(--fotorapurple);
    border-color: var(--fotorapurple);
}

.fotora-redes-row i {
    font-size: 16px;
}

/* Info row with icons */
.fotora-info-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 15px;
    background: var(--fotoracard);
    border-radius: 8px;
    border: 1px solid var(--fotorapunov);
}

.fotora-info-row .info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--fotoratext);
}

.fotora-info-row .info-item i {
    color: var(--fotorapurple);
    font-size: 14px;
}

/* TOP 3 icons row - one image + count per column */
.fotora-top3-row {
    display: flex;
    text-align: center;
    padding: 10px;
    margin-bottom: 15px;
    min-height: 30px;
    flex-direction: row;
    justify-content: center;
    gap: 4rem;
    align-items: center;
}

.top3-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 130px;
    height: 130px;
    padding: 10px;
    background: linear-gradient(0deg, var(--fotorabg2), var(--fotoracard));
    border: 1px solid var(--fotoraborder);
    border-radius: 50%;
    justify-content: center;
}

.top3-col .cnt {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    margin-top: 4px;
}

/* Bars row */
.fotora-bars-row {
    margin-bottom: 20px;
    padding: 10px;
    background: var(--fotoracard);
    border-radius: 8px;
    border: 1px solid var(--fotorapunov);
}

.fotora-bars-row .bars-label {
    display: block;
    font-size: 11px;
    color: var(--fotoratext2);
    margin-bottom: 8px;
    text-align: left;
}

.fotora-bars-flex {
    display: flex;
    gap: 2px;
    height: 84px;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
}

.fotora-bars-flex .bar-col {
    flex: 1;
    min-width: 6px;
    border-radius: 3px 3px 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-size: 9px;
    color: white;
    padding-top: 2px;
    font-weight: 700;
}

.fotora-bars-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fotora-bars-nums {
    display: flex;
    gap: 2px;
    justify-content: space-between;
    width: 100%;
}

.fotora-bars-nums .bar-num {
    flex: 1;
    min-width: 6px;
    text-align: center;
    font-size: 10px;
    color: #888;
}

.fotora-bars-row .fotora-current-line {
    position: absolute;
    right: -3px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #737373;
}

.fotora-stats-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.fotora-stat-card {
    background: linear-gradient(0deg, var(--fotoracard), var(--fotorabg2));
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    border: 1px solid var(--fotoraborder);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    min-width: 200px;
    flex: 1;
}

a.fotora-stat-card {
    color: white;
}

a.fotora-stat-card:hover {
    filter: brightness(1.5);
}

ul.redes-ul li {
    color: #acdff14f;
    background: #9bcee247;
}

.fotora-stat-card .ic {
    font-size: 2rem;
    color: var(--fotorapurple);
    margin-bottom: 4px;
}

.fotora-stat-card.highlight {
    background: var(--fotorapurple);
}

.fotora-stat-card.muted {
    background: var(--fotorabg2);
    opacity: 0.7;
}

.fotora-stat-card .val {
    display: block;
    font-size: 24px;
    font-weight: 700;
}

.fotora-stat-card .lbl {
    font-size: 11px;
    color: var(--fotoratext2);
    text-transform: uppercase;
}

.fotora-stat-card.fotora-redes-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fotora-stat-card.fotora-redes-card .lbl {
    margin-bottom: 8px;
}

.fotora-stat-card.fotora-redes-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
}

.fotora-stat-card.fotora-redes-card a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--fotorabg2);
    border-radius: 50%;
    color: var(--fotoratext);
    transition: all 0.2s;
}

.fotora-stat-card.fotora-redes-card a:hover {
    background: var(--fotorapurple);
}

.fotora-stat-card.highlight .val,
.fotora-stat-card.highlight .lbl,
.fotora-stat-card.highlight .ic {
    color: white;
}

.fotora-race-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.fotora-semana-actual {
    margin-bottom: 10px;
    text-align: right;
}

.play-btn {
    background: var(--fotorapurple);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.play-btn:hover {
    background: var(--fotorapurple2);
}

.fotora-slider {
    flex: 1;
    min-width: 150px;
    height: 8px;
    -webkit-appearance: none;
    background: var(--fotorabg2);
    border-radius: 4px;
    outline: none;
}

.fotora-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--fotorapurple);
    border-radius: 50%;
    cursor: pointer;
}

.fotora-race-svg {
    width: 100%;
    max-width: 100%;
    min-height: 480px;
    overflow: visible;
    display: block;
}

.fotora-race-container {
    min-height: 300px;
    margin-bottom: 20px;
}

/* Hall of Fame / Destacados */
.fotora-hof-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fotora-hof-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 6px;
}

.fotora-hof-titles {
    margin-bottom: 10px;
}

.fotora-hof-titles .fotora-hof-col h5 {
    text-align: center;
    margin: 0;
    color: var(--fotoratexto);
    font-size: 14px;
    padding: 10px;
    background: var(--fotoracard);
    border-radius: 8px;
}

.fotora-hof-col {
    display: flex;
    flex-direction: column;
}

.fotora-hof-col h5 {
    text-align: center;
    margin: 0;
    color: var(--fotoratexto);
}

.fotora-hof-card {
    background: var(--fotoracard);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    border: 2px solid var(--fotoraborder);
    min-height: 142px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.fotora-hof-card.gold {
    border-color: var(--fotoragold);
}

.fotora-hof-card.silver {
    border-color: #94a3b8;
}

.fotora-hof-card.bronze {
    border-color: #d97706;
}

.fotora-hof-card .position {
    display: block;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.fotora-hof-card.top3 {
    border-color: var(--fotoragold);
}

.fotora-hof-card.top3 .position {
    color: var(--fotoragold);
}

.fotora-hof-card .hof-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-bottom: 6px;
    object-fit: cover;
}

.fotora-hof-card.empty {
    opacity: 0.3;
    border-style: dashed;
}

.fotora-hof-card .name {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.fotora-hof-card .stat {
    font-size: 12px;
    color: var(--fotoratext2);
}

/* Empty */
.fotora-empty {
    padding: 30px;
    text-align: center;
    background: var(--fotoracard);
    border-radius: 12px;
    color: var(--fotoratext2);
    border: 1px dashed var(--fotoraborder);
}

.fotora-error {
    padding: 20px;
    text-align: center;
    background: #fee;
    border-radius: 12px;
    color: #c00;
}

/* Tabs */
.fotora-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.fotora-tabs .tab-btn {
    background: var(--fotoracard);
    border: 1px solid var(--fotoraborder);
    color: var(--fotoratext2);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.fotora-tabs .tab-btn:hover {
    border-color: var(--fotorapurple);
    color: var(--fotoratext);
}

.fotora-tabs .tab-btn.active {
    background: var(--fotorapurple);
    border-color: var(--fotorapurple);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}