/* UNIFIED COLOR PALETTE - Version 20251014 */
/* ===================================
   Nova Estilização de Cards - Spotter
   Baseado em Material Design 3.0
   100% PALETA LOGO - 20251013163202
   =================================== */

/* Card Container - FULLY CLICKABLE */
/* Todo o card é clicável em desktop, tablet e mobile */
.quota-card-new {
    background: rgba(28, 28, 28, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.quota-card-new::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(244, 197, 66, 0.05), rgba(212, 167, 34, 0.05));
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.quota-card-new:hover {
    transform: translateY(-4px);
    border-color: rgba(244, 197, 66, 0.5);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 0 30px rgba(244, 197, 66, 0.2);
}

.quota-card-new:hover::before {
    opacity: 1;
}

.quota-card-new:active {
    transform: translateY(-2px);
}

/* Clickable area for quota details */
.quota-card-clickable {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    cursor: pointer;
}

/* Player Header */
.quota-player-header {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    position: relative;
    z-index: 2;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.quota-player-header:hover {
    background-color: rgba(244, 197, 66, 0.1);
}

.player-avatar-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(244, 197, 66, 0.5);
}

.player-header-info {
    flex: 1;
}

.player-header-info h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary, #f1f5f9);
    line-height: 1.2;
}

.player-header-info p {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: var(--text-secondary, #cbd5e1);
    opacity: 0.7;
}

/* Status and Tournament Type Tags Row */
.status-tags-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}

/* Tournament Type Tags (PKO, Vanilla, etc) */
.tournament-type-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    border: 1px solid;
}

.tournament-type-gold {
    background: rgba(244, 197, 66, 0.15);
    color: #F4C542;
    border-color: rgba(244, 197, 66, 0.3);
}

.tournament-type-blue {
    background: rgba(244, 197, 66, 0.15);
    color: #F4C542;
    border-color: rgba(244, 197, 66, 0.3);
}

.tournament-type-red {
    background: rgba(212, 167, 34, 0.15);
    color: #D4A722;
    border-color: rgba(212, 167, 34, 0.3);
}

.tournament-type-purple {
    background: rgba(244, 197, 66, 0.15);
    color: #F4C542;
    border-color: rgba(244, 197, 66, 0.3);
}

.tournament-type-orange {
    background: rgba(251, 146, 60, 0.15);
    color: #fb923c;
    border-color: rgba(251, 146, 60, 0.3);
}

.tournament-type-green {
    background: rgba(16, 217, 144, 0.15);
    color: #10d990;
    border-color: rgba(16, 217, 144, 0.3);
}

.arrow-icon {
    color: var(--text-muted, #94a3b8);
    font-size: 24px;
}

/* Tournament Section */
.tournament-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.tournament-title-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tournament-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary, #f1f5f9);
    line-height: 1.3;
}

.tournament-datetime {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary, #cbd5e1);
    opacity: 0.8;
}

.tournament-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tournament-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.tournament-tag .tag-icon {
    font-size: 14px;
}

.tournament-tag .tag-label {
    line-height: 1;
}

/* Tag Color Variations */
.tournament-tag-blue {
    background: rgba(244, 197, 66, 0.15);
    color: #F4C542;
    border: 1px solid rgba(244, 197, 66, 0.3);
}

.tournament-tag-green {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.tournament-tag-purple {
    background: rgba(212, 167, 34, 0.15);
    color: #D4A722;
    border: 1px solid rgba(212, 167, 34, 0.3);
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.metric-card {
    background: rgba(20, 20, 20, 0.6);
    border-radius: 10px;
    padding: 12px 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.metric-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary, #f1f5f9);
    margin-bottom: 3px;
    white-space: nowrap;
}

.metric-label {
    font-size: 11px;
    color: var(--text-secondary, #cbd5e1);
    opacity: 0.7;
    text-transform: capitalize;
}

/* See All Tournaments Link */
.see-all-tournaments {
    text-align: center;
    padding: 8px 0;
}

.see-all-tournaments span {
    color: var(--primary-light, #FFD666);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.see-all-tournaments span:hover {
    border-bottom-color: var(--primary-light, #FFD666);
}

/* Progress Section */
.progress-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    gap: 12px;
}

.progress-label-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.progress-label-item span:first-child {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #f1f5f9);
}

.progress-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary, #f1f5f9);
}

/* Progress Bar */
.progress-bar-new {
    width: 100%;
    height: 12px;
    background: rgba(20, 20, 20, 0.85);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.progress-fill-new {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b 0%, #eab308 100%);
    border-radius: 999px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-fill-new::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Buy Share Button - Estilo igual ao View Shares Button */
.buy-share-btn {
    width: 100%;
    padding: 10px 20px;
    background: rgba(244, 197, 66, 0.1);
    border: 1px solid rgba(244, 197, 66, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #F4C542;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    position: relative;
    z-index: 2;
    text-align: center;
}

.buy-share-btn:active {
    transform: scale(0.98);
}

.buy-share-btn:hover {
    background: rgba(244, 197, 66, 0.2);
    border-color: rgba(244, 197, 66, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(244, 197, 66, 0.3);
}

.buy-share-btn .material-icons {
    font-size: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quota-card-new {
        padding: 18px;
        gap: 14px;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .metric-card {
        padding: 10px 6px;
    }
    
    .metric-value {
        font-size: 15px;
    }
    
    .metric-label {
        font-size: 10px;
    }
    
    .progress-value {
        font-size: 15px;
    }
    
    .progress-labels {
        font-size: 13px;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .progress-label-item {
        gap: 4px;
    }
    
    .tournament-title {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .quota-card-new {
        padding: 16px;
        gap: 14px;
    }
    
    .player-avatar-img {
        width: 48px;
        height: 48px;
    }
    
    .player-header-info h3 {
        font-size: 16px;
    }
    
    .tournament-title {
        font-size: 16px;
    }
    
    .tournament-datetime {
        font-size: 13px;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .metric-card {
        padding: 12px 8px;
    }
    
    .metric-value {
        font-size: 16px;
    }
    
    .metric-label {
        font-size: 11px;
    }
    
    .progress-value {
        font-size: 14px;
    }
    
    .progress-label-item {
        gap: 4px;
        font-size: 12px;
    }
    
    .progress-labels {
        font-size: 12px;
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .buy-share-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* ===================================
   Player Card - New Layout
   =================================== */

/* Card Container - FULLY CLICKABLE */
/* Todo o card é clicável em desktop, tablet e mobile */
.player-card-new {
    background: rgba(28, 28, 28, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.player-card-new::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(244, 197, 66, 0.05), rgba(212, 167, 34, 0.05));
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.player-card-new:hover {
    transform: translateY(-4px);
    border-color: rgba(244, 197, 66, 0.5);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 0 30px rgba(244, 197, 66, 0.2);
}

.player-card-new:hover::before {
    opacity: 1;
}

.player-card-new:active {
    transform: translateY(-2px);
}

/* Player Card Header */
.player-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.player-card-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(244, 197, 66, 0.5);
    flex-shrink: 0;
}

.player-card-info {
    flex: 1;
    min-width: 0;
}

.player-card-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.player-card-name {
    font-size: 16px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.verified-badge-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.verified-badge-inline .material-icons {
    font-size: 16px;
    color: #10d990;
}

.pro-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #000;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.player-card-title {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-card-arrow {
    color: #64748b;
    font-size: 22px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.player-card-new:hover .player-card-arrow {
    transform: translateX(4px);
    color: #F4C542;
}

/* Player Metrics Grid */
.player-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.player-metric-card {
    background: rgba(20, 20, 20, 0.6);
    border-radius: 10px;
    padding: 12px 4px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.player-metric-value {
    font-size: 17px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 3px;
    line-height: 1.2;
    width: 100%;
    max-width: 100%;
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
}

/* Classes dinâmicas para ajuste de tamanho */
.player-metric-value.text-sm {
    font-size: 15px !important;
}

.player-metric-value.text-xs {
    font-size: 13px !important;
}

.player-metric-value.text-2xs {
    font-size: 11px !important;
}

.player-metric-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* View Shares Button */
.view-shares-btn {
    background: rgba(244, 197, 66, 0.1);
    color: #F4C542;
    border: 1px solid rgba(244, 197, 66, 0.3);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.view-shares-btn:hover {
    background: rgba(244, 197, 66, 0.2);
    border-color: rgba(244, 197, 66, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(244, 197, 66, 0.3);
}

/* Desktop Optimizations - Densidade Balanceada */
@media (min-width: 1024px) {
    .players-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .players-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive - Mobile Adjustments */
@media (max-width: 768px) {
    .player-card-new {
        padding: 20px;
        gap: 18px;
    }
    
    .player-card-header {
        gap: 14px;
        padding-bottom: 16px;
    }
    
    .player-card-avatar {
        width: 56px;
        height: 56px;
    }
    
    .player-card-name {
        font-size: 18px;
    }
    
    .player-card-title {
        font-size: 14px;
    }
    
    .verified-badge-inline .material-icons {
        font-size: 18px;
    }
    
    .pro-badge {
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .player-card-arrow {
        font-size: 24px;
    }
    
    .player-metric-card {
        padding: 14px 8px;
    }
    
    .player-metric-value {
        font-size: 20px;
        margin-bottom: 5px;
    }
    
    /* Ajustes para valores com kk no mobile */
    .player-metric-value.text-sm {
        font-size: 18px !important;
    }
    
    .player-metric-value.text-xs {
        font-size: 16px !important;
    }
    
    .player-metric-value.text-2xs {
        font-size: 14px !important;
    }
    
    .player-metric-label {
        font-size: 12px;
    }
    
    .view-shares-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .player-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .player-card-new {
        padding: 18px;
        gap: 16px;
    }
    
    .player-card-name {
        font-size: 19px;
    }
    
    .player-card-title {
        font-size: 15px;
    }
    
    .player-metric-card {
        padding: 16px 8px;
    }
    
    .player-metric-value {
        font-size: 22px;
    }
    
    /* Ajustes para valores com kk no mobile pequeno */
    .player-metric-value.text-sm {
        font-size: 20px !important;
    }
    
    .player-metric-value.text-xs {
        font-size: 18px !important;
    }
    
    .player-metric-value.text-2xs {
        font-size: 16px !important;
    }
    
    .player-metric-label {
        font-size: 13px;
    }
    
    .view-shares-btn {
        padding: 14px 24px;
        font-size: 16px;
    }
}
