/* Profile Styles - iOS Modern */

/* History Styles */
.history-card {
    border-left: none;
    /* Remove colored border */
    background: #FFFFFF;
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.history-meta {
    display: flex;
    flex-direction: column;
}

.history-date {
    font-weight: 600;
    color: #000;
    font-size: 15px;
}

.history-gym {
    font-size: 13px;
    color: #8E8E93;
}

.history-type {
    font-size: 11px;
    background: #F2F2F7;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    color: #8E8E93;
}

.history-body {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.history-notes {
    font-style: italic;
    color: #8E8E93;
    margin-top: 4px;
}

.history-footer {
    display: flex;
    justify-content: flex-end;
}

.mood-badge {
    font-size: 12px;
    font-weight: 500;
    color: #8E8E93;
}

/* Profile Actions */
.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.bjj-btn-logout {
    display: block;
    width: 100%;
    padding: 16px;
    background: #FFFFFF;
    color: #FF3B30;
    /* iOS Red */
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s;
}

.bjj-btn-logout:active {
    background: #F2F2F7;
    opacity: 0.8;
}

.bjj-btn-delete {
    background: transparent;
    border: none;
    color: #8E8E93;
    font-size: 13px;
    font-weight: 500;
    padding: 12px;
    cursor: pointer;
    text-decoration: none;
    margin-top: 8px;
}

.bjj-section-title h3 {
    text-align: center;
    padding-left: 0;
    margin-bottom: 24px;
    font-size: 22px;
    font-weight: 700;
    color: #000;
}

#view-profile {
    padding-bottom: 120px;
}

.bjj-section-title.centered-title {
    justify-content: center !important;
    display: flex;
}

/* Profile Styles */
.profile-header-card {
    text-align: center;
    background: #FFFFFF;
    padding: 32px 20px;
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.profile-avatar-large {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #F2F2F7;
    margin: 0 auto 16px;
    overflow: hidden;
    border: none;
    box-shadow: none;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header-card h2 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: #000;
}

.profile-belt {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #000;
    background: #F2F2F7;
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.profile-team {
    margin: 0;
    font-size: 13px;
    color: #8E8E93;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.profile-stats-grid {
    display: flex;
    gap: 12px;
}

.p-stat {
    flex: 1;
    background: #FFFFFF;
    padding: 16px 8px;
    border-radius: 16px;
    text-align: center;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.p-val {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin-bottom: 4px;
}

.p-label {
    font-size: 11px;
    color: #8E8E93;
    text-transform: uppercase;
    font-weight: 500;
}

/* Badges Grid */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.badge-item {
    background: #FFFFFF;
    padding: 16px 8px;
    border-radius: 16px;
    text-align: center;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    opacity: 1;
}

.badge-item.locked {
    opacity: 0.4;
    filter: grayscale(1);
    box-shadow: none;
    background: #F2F2F7;
}

.badge-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}

.badge-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #000;
    margin-bottom: 2px;
}

.badge-desc {
    display: block;
    font-size: 10px;
    color: #8E8E93;
    line-height: 1.3;
}

/* Secondary Buttons */
.bjj-btn-secondary {
    width: 100%;
    padding: 16px;
    background: #FFFFFF;
    color: #007AFF;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.bjj-btn-text {
    width: 100%;
    padding: 14px;
    background: transparent;
    color: #FF3B30;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 12px;
}

/* Kimono Image */
.bjj-profile-kimono {
    width: 140px;
    height: auto;
    margin: 24px auto 0;
    display: block;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
}