/**
 * Profiles Module - Custom Roles, Age Verification, Settings Pages
 * User profile customization and settings UI
 */

/* ===== PROFILE SETTINGS MODAL ===== */
/* Using CodyChat Classes - SCOPED TO MODALS ONLY */

/* Pagination Controls */
.pad_box .page_element {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.pad_box .page_indicator {
    display: flex;
    gap: 8px;
}

.pad_box .page_dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

.pad_box .page_dot.active {
    background: #4CAF50;
    transform: scale(1.3);
}

.pad_box .page_dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* Settings Pages */
.pad_box .settings_page {
    display: none;
}

.pad_box .settings_page.active {
    display: block;
}

/* Settings Items - Mobile First */
.pad_box .settings_item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 40px;
}

.pad_box .settings_item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-left: 3px solid #4CAF50;
}

.pad_box .settings_item:last-child {
    border-bottom: none;
}

.pad_box .settings_icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 6px;
}

.pad_box .settings_icon i {
    font-size: 14px;
    color: #4CAF50;
}

.pad_box .settings_text {
    flex: 1;
    min-width: 0;
}

.pad_box .settings_title {
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.3;
    margin: 0;
}

.pad_box .settings_subtitle {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.pad_box .settings_arrow {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    flex-shrink: 0;
}

.pad_box .settings_arrow i {
    font-size: 12px;
    color: #666;
    transition: all 0.2s ease;
}

.pad_box .settings_item:hover .settings_arrow i {
    color: #4CAF50;
    transform: translateX(2px);
}

/* ===== CUSTOM ROLE STYLES ===== */
/* Font preview styling for custom role modal */
#custom_role_preview {
    font-size: 14px;
    line-height: 1.4;
}

#custom_role_preview .role-value {
    font-weight: 500;
}

/* Custom role display in profiles */
.profile_custom_role {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0;
    padding: 4px 8px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 12px;
    max-width: fit-content;
    flex-wrap: nowrap;
}

.profile_custom_role:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateX(2px);
}

.profile_custom_role i {
    font-size: 12px;
    flex-shrink: 0;
}

.role-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    opacity: 0.8;
}

.role-value {
    font-size: 11px;
    font-weight: 500;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== AGE VERIFICATION ===== */
.age_verification_dropdown {
    margin: 15px 0;
}

.age_verification_label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #4ecdc4;
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: 0.5px;
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 6px;
    padding: 10px;
    background: rgba(78, 205, 196, 0.08);
    position: relative;
}

.age_verification_label::before {
    content: "⚠️";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

.age_verification_dropdown select {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #6c5ce7;
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 18px;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 6px rgba(108, 92, 231, 0.3);
    width: 100%;
}

.age_verification_dropdown select:focus {
    outline: none;
    border-color: #a29bfe;
    background: rgba(108, 92, 231, 0.2);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.3);
    transform: scale(1.02);
}

.age_verification_dropdown select:hover {
    border-color: #a29bfe;
    background: rgba(108, 92, 231, 0.15);
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.4);
}

.age_verification_dropdown select option {
    background: #2a2a2a;
    color: #ffffff;
    padding: 10px;
    text-align: left;
}

.age_verification_dropdown select option:disabled {
    color: #888;
    font-style: italic;
}

/* ===== MOBILE RESPONSIVE ===== */
/* Settings modal - Mobile */
@media screen and (max-width: 768px) {
    .pad_box .settings_section_header {
        font-size: 12px;
        padding: 0 12px;
        margin-bottom: 6px;
    }
    
    .pad_box .settings_item {
        padding: 10px 12px;
        min-height: 44px;
    }
    
    .pad_box .settings_icon {
        width: 28px;
        height: 28px;
        margin-right: 10px;
    }
    
    .pad_box .settings_icon i {
        font-size: 12px;
    }
    
    .pad_box .settings_title {
        font-size: 13px;
    }
    
    .pad_box .settings_arrow {
        width: 18px;
        height: 18px;
        margin-left: 10px;
    }
    
    .pad_box .settings_arrow i {
        font-size: 11px;
    }
    
    /* Custom role */
    .profile_custom_role {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        margin: 6px 0;
        border-radius: 8px;
    }
    
    .profile_custom_role i {
        font-size: 14px;
    }
    
    .role-label {
        font-size: 11px;
    }
    
    .role-value {
        font-size: 12px;
        white-space: normal;
        word-break: break-word;
        line-height: 1.3;
        flex: 1;
        min-width: 0;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .profile_custom_role {
        flex-direction: row;
        align-items: center;
        gap: 6px;
        padding: 8px;
        font-size: 11px;
    }
    
    .role-value {
        white-space: nowrap;
    }
}

/* Settings modal - Desktop */
@media screen and (min-width: 769px) {
    .pad_box .settings_section {
        margin-bottom: 24px;
    }
    
    .pad_box .settings_section_header {
        font-size: 14px;
        padding: 0 20px;
        margin-bottom: 10px;
    }
    
    .pad_box .settings_item {
        padding: 14px 20px;
        min-height: 52px;
    }
    
    .pad_box .settings_icon {
        width: 36px;
        height: 36px;
        margin-right: 14px;
    }
    
    .pad_box .settings_icon i {
        font-size: 16px;
    }
    
    .pad_box .settings_title {
        font-size: 15px;
    }
    
    .pad_box .settings_arrow {
        width: 22px;
        height: 22px;
        margin-left: 14px;
    }
    
    .pad_box .settings_arrow i {
        font-size: 13px;
    }
    
    /* Age verification - Desktop */
    .age_verification_dropdown {
        max-width: 400px;
        margin: 15px auto;
    }
}

