/**
 * N2C Profile Modal Styles
 */

/* Modal Overlay */
.n2c-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.n2c-modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* Modal Container */
.n2c-modal {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.n2c-modal-overlay.active .n2c-modal {
    transform: translateY(0);
}

/* Modal Header */
.n2c-modal-header {
    padding: 20px 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.n2c-modal-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    color: #333;
}

.n2c-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.n2c-modal-close:hover {
    color: #333;
}

/* Modal Body */
.n2c-modal-body {
    padding: 20px;
}

/* User Card */
.n2c-user-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
}

.n2c-user-avatar {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 28px;
}

.n2c-user-name {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 4px;
}

.n2c-user-level {
    font-size: 12px;
    opacity: 0.8;
}

/* Sections */
.n2c-section {
    margin-bottom: 20px;
}

.n2c-section-title {
    font-size: 14px;
    font-weight: bold;
    color: #666;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Form Elements */
.n2c-input-group {
    display: flex;
    gap: 8px;
}

.n2c-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.n2c-input:focus {
    outline: none;
    border-color: #667eea;
}

.n2c-input::placeholder {
    color: #999;
}

.n2c-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.n2c-btn-primary {
    background: #667eea;
    color: #fff;
}

.n2c-btn-primary:hover {
    background: #5a6fd6;
}

.n2c-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.n2c-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.n2c-btn-secondary:hover {
    background: #e0e0e0;
}

/* Status Messages */
.n2c-status {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 12px;
    display: none;
}

.n2c-status.show {
    display: block;
}

.n2c-status.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.n2c-status.error {
    background: #ffebee;
    color: #c62828;
}

.n2c-status.info {
    background: #e3f2fd;
    color: #1565c0;
}

/* Email Status */
.n2c-email-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 14px;
}

.n2c-email-status.verified {
    background: #e8f5e9;
    color: #2e7d32;
}

.n2c-email-status .icon {
    font-size: 18px;
}

/* Loading State */
.n2c-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: n2c-spin 1s linear infinite;
}

@keyframes n2c-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Trigger Button (Optional) */
.n2c-profile-trigger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 9999;
}

.n2c-profile-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* Badge */
.n2c-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 11px;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .n2c-modal {
        width: 100%;
        max-width: none;
        border-radius: 16px 16px 0 0;
        position: fixed;
        bottom: 0;
        max-height: 80vh;
    }

    .n2c-modal-overlay.active {
        align-items: flex-end;
    }
}
