/* ==========================================================================
   Profile - Modern Dark Theme (inside content-card wrapper)
   ========================================================================== */

.profile-wrapper {
    padding: 0.5rem 0;
}

/* Avatar */
.profile-avatar-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

.profile-avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(142, 68, 173, 0.5);
    position: relative;
    z-index: 1;
}

.profile-avatar-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: conic-gradient(from 0deg, #8e44ad, #00d2ff, #8e44ad) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: profile-ring-spin 6s linear infinite;
}

@keyframes profile-ring-spin {
    to { transform: rotate(360deg); }
}

/* Group badges */
.profile-groups {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.profile-group-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(142, 68, 173, 0.15);
    color: var(--badge-color, #8e44ad);
    border: 1px solid rgba(142, 68, 173, 0.3);
}

/* Info panel */
.profile-info-panel {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.profile-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

.profile-info-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

.profile-info-icon {
    color: #8e44ad;
    font-size: 1rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.profile-info-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.profile-info-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 1px;
}

.profile-info-value {
    font-size: 0.85rem;
    color: #e0e0e0;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Characters section */
.profile-characters-section {
    padding-top: 0.25rem;
}

.profile-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-section-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: #8e44ad;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(142, 68, 173, 0.5);
}

.profile-section-title i {
    color: #00d2ff;
    font-size: 0.9rem;
}

/* Realm blocks */
.profile-realm-block {
    margin-bottom: 1.5rem;
}

.profile-realm-block:last-child {
    margin-bottom: 0;
}

.profile-realm-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 0.6rem;
    margin-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Characters table */
.profile-characters-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.profile-characters-table thead th {
    padding: 0.5rem 0.65rem;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-characters-table tbody tr {
    transition: all 0.25s ease;
}

.profile-characters-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.profile-characters-table tbody td {
    padding: 0.65rem;
    font-size: 0.82rem;
    color: #e0e0e0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
}

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

.profile-char-icon {
    width: 28px;
}

.profile-char-icon img {
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.5));
}

.profile-char-name {
    font-weight: 600;
    color: #fff;
}

.profile-char-level {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.profile-char-gold .gold-points,
.profile-char-gold .silver-points,
.profile-char-gold .copper-points {
    font-size: 0.78rem;
    margin-right: 0.3rem;
}

.profile-char-gold .gold-points > svg > path { color: goldenrod; }
.profile-char-gold .silver-points > svg > path { color: silver; }
.profile-char-gold .copper-points > svg > path { color: #b87333; }

.profile-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
    background: rgba(142, 68, 173, 0.3);
    border: 1px solid rgba(142, 68, 173, 0.4);
    text-decoration: none;
    transition: all 0.25s ease;
}

.profile-view-btn:hover {
    background: rgba(142, 68, 173, 0.5);
    border-color: rgba(142, 68, 173, 0.6);
    color: #fff;
    transform: translateY(-1px);
}

/* Empty state */
.profile-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: rgba(255, 255, 255, 0.3);
}

.profile-empty i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.profile-empty p {
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 991px) {
    .profile-avatar-wrapper {
        width: 100px;
        height: 100px;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }
}
