/* Add-on styles for new profile features */

.profile-riot-account-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.riot-logo-icon {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.profile-riot-account {
    color: var(--text-muted);
    font-size: 16px;
    margin: 0;
}

/* Profile Header - Updated to accommodate vertical tabs */
.profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
}

/* Unregistered user notice */
.profile-unregistered-notice {
    color: var(--text-muted);
    font-size: 14px;
    margin: 4px 0 0 0;
    font-style: italic;
}

.profile-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.2);
    border: 4px solid var(--accent-primary);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

/* LoL Stats Overview */
.lol-stats-overview {
    width: 100%;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.stat-card {
    background: rgba(30, 35, 50, 0.6);
    border-radius: 12px;
    padding: var(--spacing-xl);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-card-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-md);
}

/* Circular Progress Chart */
.circular-stat {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-md) auto;
}

.circular-chart {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 8;
}

.circle-progress {
    fill: none;
    stroke: var(--accent-primary);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dasharray 0.6s ease;
}

.circular-chart.green .circle-progress {
    stroke: #10b981;
}

.stat-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-sublabel {
    font-size: 14px;
    color: var(--text-muted);
}

/* Personal Bests Section */
.personal-bests-section {
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.personal-bests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.best-card {
    background: rgba(30, 35, 50, 0.6);
    border-radius: 8px;
    padding: var(--spacing-lg);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.best-icon {
    font-size: 32px;
    margin-bottom: var(--spacing-sm);
}

.best-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: var(--spacing-xs);
}

.best-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* Match History Section */
.match-history-section {
    margin-top: var(--spacing-2xl);
}

.match-history-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(30, 35, 50, 0.4);
    border-radius: 8px;
    overflow: hidden;
}

.match-history-table thead {
    background: rgba(20, 25, 40, 0.8);
}

.match-history-table th {
    padding: var(--spacing-md);
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-history-table tbody tr {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
    cursor: pointer;
}

.match-history-table tbody tr:hover {
    background: rgba(40, 45, 60, 0.6);
}

.match-history-table td {
    padding: var(--spacing-md);
    font-size: 14px;
    color: var(--text-secondary);
}

.match-history-table .rating {
    font-weight: 700;
}

.match-history-table .rating.positive {
    color: #10b981;
}

.match-history-table .rating.negative {
    color: #ef4444;
}

.match-history-table .result {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
}

.match-history-table .result.win {
    color: #10b981;
}

.match-history-table .result.loss {
    color: #ef4444;
}

/* Loading Section (for unregistered users) */
.loading-section {
    text-align: center;
    padding: var(--spacing-2xl);
}

.loading-message {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.progress-bar {
    width: 100%;
    max-width: 500px;
    height: 24px;
    background: rgba(30, 35, 50, 0.6);
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto var(--spacing-md) auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), #8b5cf6);
    transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    width: 0%;
    will-change: width;
}

.progress-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Unregistered Notice */
.unregistered-notice {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
    text-align: center;
}

.unregistered-notice p {
    margin: 4px 0;
    color: #fbbf24;
    font-size: 14px;
}

.unregistered-notice strong {
    font-weight: 700;
}

/* No matches state */
.no-matches {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--text-muted);
    font-size: 16px;
    background: rgba(30, 35, 50, 0.4);
    border-radius: 8px;
}
