/* =====================================================
   Profile Page Styles
   ===================================================== */

.profile-page {
    max-width: 500px;
    margin: 0 auto;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #1c1c1e;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.page-title i {
    font-size: 24px;
    color: #007aff;
}

.profile-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.profile-avatar i {
    font-size: 48px;
    color: #007aff;
}

.profile-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.profile-name {
    font-size: 20px;
    font-weight: 600;
    color: #1c1c1e;
    margin: 0 0 4px 0;
}

.profile-id,
.profile-joined {
    font-size: 14px;
    color: #6d6d7a;
    margin: 2px 0;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #007aff;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #6d6d7a;
}

.action-group {
    margin-bottom: 24px;
}

.action-group-title {
    font-size: 16px;
    font-weight: 600;
    color: #6d6d7a;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.action-item:hover,
.action-item:active {
    text-decoration: none;
    color: inherit;
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.9);
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #007aff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.action-icon.danger {
    background: #ff3b30;
}

.action-content {
    flex: 1;
}

.action-title {
    font-size: 16px;
    font-weight: 500;
    color: #1c1c1e;
    margin-bottom: 2px;
}

.action-subtitle {
    font-size: 14px;
    color: #6d6d7a;
}

.action-arrow {
    color: #c7c7cc;
    font-size: 14px;
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .page-title {
        color: #ffffff;
    }

    .profile-card,
    .stat-item,
    .action-item {
        background: rgba(28, 28, 30, 0.8);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .profile-name,
    .action-title {
        color: #ffffff;
    }

    .profile-id,
    .profile-joined,
    .stat-label,
    .action-subtitle {
        color: #8e8e93;
    }
}

/* Telegram WebApp dark theme support */
body.tg-dark-theme .page-title {
    color: #ffffff;
}

body.tg-dark-theme .profile-card,
body.tg-dark-theme .stat-item,
body.tg-dark-theme .action-item {
    background: rgba(29, 39, 51, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

body.tg-dark-theme .profile-name,
body.tg-dark-theme .action-title {
    color: #ffffff;
}

body.tg-dark-theme .profile-id,
body.tg-dark-theme .profile-joined,
body.tg-dark-theme .stat-label,
body.tg-dark-theme .action-subtitle {
    color: #98989d;
}

body.tg-dark-theme .action-group-title {
    color: #8e8e93;
}

body.tg-dark-theme .action-arrow {
    color: #636366;
}

body.tg-dark-theme .action-item:hover,
body.tg-dark-theme .action-item:active {
    background: rgba(44, 56, 71, 0.9);
}
