/**
 * BuddyBoss Profile Status - Styles
 * Version: 1.0.0
 */

/* Profile Status Wrapper - Near Avatar Area */
.bbps-profile-status-wrapper {
    margin: 15px 0 20px;
    animation: bbps-fadeIn 0.3s ease-in;
    clear: both;
    width: 100%;
}

/* BuddyBoss specific positioning - place below username */
#buddypress #item-header-content .bbps-profile-status-wrapper,
.bp-nouveau #buddypress #item-header-content .bbps-profile-status-wrapper {
    margin-top: 15px;
    margin-bottom: 20px;
}

/* Ensure it appears in the right container */
#item-header-content .bbps-profile-status-wrapper {
    display: block;
    width: 100%;
}

@keyframes bbps-fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add Status Button (when no status exists) */
.bbps-no-status-container {
    margin: 8px 0;
}

.bbps-add-status-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    padding: 10px 18px !important;
    border: none !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.25) !important;
}

.bbps-add-status-btn:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
    transform: translateY(-2px);
}

.bbps-add-status-btn svg {
    width: 16px;
    height: 16px;
    stroke: white;
}

/* Profile Status Display */
.bbps-profile-status-container {
    margin: 8px 0;
}

.bbps-profile-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    position: relative;
    transition: all 0.3s ease;
}

.bbps-profile-status:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
}

.bbps-status-emoji {
    font-size: 18px;
    line-height: 1;
    display: inline-block;
}

.bbps-status-text {
    line-height: 1.4;
    max-width: 350px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bbps-edit-status-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    margin-left: 4px;
    color: #ffffff;
}

.bbps-edit-status-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

.bbps-edit-status-btn svg {
    display: block;
}

/* Settings Section */
.bbps-settings-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bbps-settings-section h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.bbps-settings-description {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 20px;
}

.bbps-settings-field {
    margin-bottom: 20px;
}

.bbps-settings-field:last-child {
    margin-bottom: 0;
}

.bbps-settings-field label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    font-size: 14px;
}

.bbps-settings-field input[type="text"] {
    width: 100%;
    max-width: 500px;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #ffffff;
}

.bbps-settings-field input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.bbps-settings-field #bbps_status_emoji {
    max-width: 80px;
    text-align: center;
    font-size: 18px;
}

.bbps-settings-field .description {
    margin: 6px 0 0;
    font-size: 13px;
    color: #6b7280;
    font-style: italic;
}

.bbps-remove-status-btn {
    background: #ef4444;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bbps-remove-status-btn:hover {
    background: #dc2626;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Modal Styles */
.bbps-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: bbps-fadeIn 0.2s ease;
    backdrop-filter: blur(4px);
}

.bbps-modal {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    animation: bbps-slideUp 0.3s ease;
}

@keyframes bbps-slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bbps-modal h3 {
    margin: 0 0 24px;
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
}

.bbps-modal-field {
    margin-bottom: 20px;
}

.bbps-modal-field label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.bbps-modal-field input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: #f9fafb;
}

.bbps-modal-field input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: #ffffff;
}

.bbps-modal-field #bbps-modal-emoji {
    max-width: 100px;
    text-align: center;
    font-size: 24px;
}

.bbps-modal-field .description {
    margin: 6px 0 0;
    font-size: 13px;
    color: #6b7280;
}

.bbps-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.bbps-modal-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bbps-modal-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.bbps-modal-btn-primary:hover:not(:disabled) {
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.bbps-modal-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bbps-modal-btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.bbps-modal-btn-secondary:hover {
    background: #d1d5db;
}

/* Notification Messages */
.bbps-notification {
    position: fixed;
    top: 30px;
    right: 30px;
    background: #10b981;
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 10px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    z-index: 999999;
    animation: bbps-slideIn 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes bbps-slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.bbps-notification.error {
    background: #ef4444;
}

.bbps-notification.success {
    background: #10b981;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bbps-status-text {
        max-width: 200px;
    }
    
    .bbps-modal {
        padding: 24px;
        width: 95%;
    }
    
    .bbps-modal h3 {
        font-size: 20px;
    }
    
    .bbps-modal-actions {
        flex-direction: column;
    }
    
    .bbps-settings-field input[type="text"] {
        max-width: 100%;
    }
    
    .bbps-notification {
        right: 20px;
        top: 20px;
        left: 20px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .bbps-settings-section {
        background: #1f2937;
        border-color: #374151;
    }
    
    .bbps-settings-section h2,
    .bbps-settings-field label {
        color: #f9fafb;
    }
    
    .bbps-settings-description,
    .bbps-settings-field .description {
        color: #9ca3af;
    }
    
    .bbps-settings-field input[type="text"] {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    .bbps-modal {
        background: #1f2937;
    }
    
    .bbps-modal h3,
    .bbps-modal-field label {
        color: #f9fafb;
    }
    
    .bbps-modal-field input[type="text"] {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    .bbps-modal-field input[type="text"]:focus {
        background: #4b5563;
    }
}
