/* ==================== Character Profile Page Styling ==================== */

/* Profile Header Card */
.profile-header-card {
    background: linear-gradient(135deg, rgba(26, 29, 41, 0.95), rgba(20, 25, 35, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.profile-header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 40px;
    align-items: center;
}

/* Profile Avatar & Name */
.profile-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar-wrapper {
    position: relative;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    background: linear-gradient(135deg, #2d7ab5, #1d5a8f);
    box-shadow: 0 0 20px rgba(45, 122, 181, 0.4);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-status-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid rgba(20, 25, 35, 0.98);
}

.profile-status-badge.status-alive {
    background: #20c025;
    box-shadow: 0 0 10px rgba(32, 192, 37, 0.6);
}

.profile-status-badge.status-dead {
    background: #c02020;
    box-shadow: 0 0 10px rgba(192, 32, 32, 0.6);
}

.profile-header-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: 0.5px;
}

.profile-member-since {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.profile-current-status {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* Profile Header Stats */
.profile-header-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.profile-stat-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.profile-stat-box:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Profile Header Actions */
.profile-header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.profile-level-badge {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.level-number {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

.level-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Profile Content Grid */
.profile-content-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

.profile-left-column,
.profile-right-column {
    display: flex;
    flex-direction: column;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.stat-item-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-item-value {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.stat-item-value.stat-highlight {
    color: #4facfe;
}

.stat-item-value.stat-danger {
    color: #f5576c;
}

/* Activity Table */
.activity-table {
    overflow-x: auto;
}

.activity-table table {
    width: 100%;
    border-collapse: collapse;
}

.activity-table thead {
    background: rgba(255, 255, 255, 0.03);
}

.activity-table th {
    padding: 12px;
    text-align: left;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.activity-table td {
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.activity-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.activity-player {
    font-weight: 600;
    color: #fff;
}

.activity-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

/* About Section */
.about-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.about-item i {
    font-size: 18px;
    color: rgba(79, 172, 254, 0.8);
}

/* Guild Info */
.guild-info {
    text-align: center;
    padding: 20px;
}

.guild-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

/* Progression Stats */
.progression-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.progression-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.progression-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.progression-value {
    font-size: 20px;
    font-weight: 700;
    color: #4facfe;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .profile-content-grid {
        grid-template-columns: 1fr;
    }

    .profile-header-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .profile-header-stats {
        flex-direction: column;
        width: 100%;
    }

    .profile-stat-box {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .profile-header-card {
        padding: 20px;
    }

    .profile-header-left {
        flex-direction: column;
        text-align: center;
    }

    .profile-name {
        font-size: 22px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .progression-stats {
        grid-template-columns: 1fr;
    }

    .activity-table {
        font-size: 12px;
    }

    .activity-table th,
    .activity-table td {
        padding: 8px;
    }
}