/* Player profile page - dark theme */
.player-profile-header {
    background: var(--bg-surface-elevated);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.player-main-info {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 1;
}

.player-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--border-primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.player-info h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-heading);
    border: none;
    text-align: left;
}

.player-global-stats {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Compact favorites in header */
.player-favorites-compact {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.favorites-compact-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.favorites-compact-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.favorites-compact-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.favorite-compact-item {
    position: relative;
    display: block;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid var(--border-primary);
    background: var(--bg-surface);
}

.favorite-compact-item:hover {
    transform: scale(1.1);
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.favorite-compact-item img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.favorite-count-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: var(--accent);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-surface-elevated);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.season-selector {
    background: var(--bg-surface);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid var(--border-primary);
    margin-top: 20px;
}

.season-selector label {
    font-weight: 600;
    margin-right: 10px;
    color: var(--text-secondary);
}

.season-selector select {
    padding: 8px 12px;
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    font-weight: 500;
    min-width: 150px;
    outline: none;
}

/* Right section */
.header-right-section {
    min-width: 300px;
    flex-shrink: 0;
}

/* Most picked compact */
.header-most-picked-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.header-most-picked-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.header-most-picked-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

.header-most-picked-icons {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.header-most-picked-icon {
    position: relative;
    display: block;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid var(--border-primary);
    background: var(--bg-surface);
}

.header-most-picked-icon:hover {
    transform: scale(1.1);
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.header-most-picked-icon img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.header-count-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: var(--accent);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-surface-elevated);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.header-most-banned-icon {
    border-color: rgba(239, 68, 68, 0.5);
}

.header-most-banned-icon:hover {
    border-color: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.header-ban-badge {
    background: #ef4444;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

/* Most picked blocks */
.most-picked-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.most-picked-block {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--card-border);
}

.most-picked-block h3 {
    margin: 0 0 20px 0;
    color: var(--text-heading);
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 8px;
}

.most-picked-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.most-picked-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-surface-elevated);
    padding: 12px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-primary);
}

.most-picked-item:hover {
    background: var(--bg-surface-hover);
    border-color: var(--accent);
}

.most-picked-item img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    border: 2px solid var(--border-primary);
}

.most-picked-info {
    flex: 1;
}

.most-picked-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.most-picked-count {
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
}

.stat-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.section-title {
    color: var(--text-heading);
    font-size: 24px;
    font-weight: 700;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--accent-hover);
    transform: translateX(-5px);
}

.hero-cell { vertical-align: top; }
.hero-container { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.abilities-inline { display: flex; flex-wrap: wrap; align-items: flex-start; }
.ability-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ability-icon-shared { width: 44px; height: 44px; }
.items-inline { display: flex; flex-wrap: wrap; align-items: flex-start; }
.item-icon-shared { width: 44px; height: 44px; }
.ability-icon-shared, .item-icon-shared {
    height: 44px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}
.abilities-inline, .items-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
}

/* Match history pagination */
.match-pagination {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    justify-content: center;
}

.match-pagination .pagination-btn {
    padding: 6px 14px;
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    background: var(--bg-surface);
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}

.match-pagination .pagination-btn:hover {
    background: var(--bg-surface-elevated);
}

.match-pagination .pagination-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}
