/* Multi Name Generator Styles - Professional Design */

.mng-generator {
    max-width: 900px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 40px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border: 1px solid #e1e5e9;
}

.mng-header {
    text-align: center;
    margin-bottom: 40px;
}

.mng-header h2 {
    color: #2c3e50;
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 16px 0;
    text-transform: capitalize;
    line-height: 1.2;
}

.mng-description {
    color: #6c757d;
    font-size: 20px;
    margin: 0;
    font-weight: 400;
}

.mng-content {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.mng-names-section {
    flex: 1;
}

.mng-names-section h4 {
    color: #495057;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 20px 0;
}

.mng-names-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    min-height: 120px;
    align-items: flex-start;
    align-content: flex-start;
}

.mng-name-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 16px;
    border: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    user-select: none;
    display: inline-block;
}

.mng-name-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.mng-name-tag:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.mng-image-section {
    width: 250px;
    flex-shrink: 0;
}

.mng-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #dee2e6;
    overflow: hidden;
    position: relative;
}

.mng-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.mng-image-placeholder .placeholder-content {
    text-align: center;
    color: #6c757d;
}

.mng-image-placeholder .placeholder-icon {
    font-size: 48px;
    color: #adb5bd;
    margin-bottom: 8px;
    display: block;
}

.mng-image-placeholder .placeholder-text {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.mng-image-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.mng-image-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mng-controls {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.mng-generate-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    min-width: 200px;
}

.mng-generate-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.mng-generate-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.mng-generate-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.mng-copy-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
    min-width: 160px;
}

.mng-copy-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.mng-copy-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.mng-loading {
    opacity: 0.7;
    pointer-events: none;
}

.mng-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: mng-spin 1s ease-in-out infinite;
    margin-right: 8px;
}

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

.mng-success {
    background: #d4edda;
    color: #155724;
    padding: 16px 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #c3e6cb;
    font-size: 16px;
    font-weight: 500;
}

.mng-error {
    background: #f8d7da;
    color: #721c24;
    padding: 16px 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #f5c6cb;
    font-size: 16px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mng-generator {
        margin: 20px;
        padding: 30px 20px;
        max-width: none;
    }
    
    .mng-header h2 {
        font-size: 32px;
    }
    
    .mng-description {
        font-size: 18px;
    }
    
    .mng-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .mng-image-section {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .mng-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .mng-generate-btn,
    .mng-copy-btn {
        width: 100%;
        max-width: 300px;
        padding: 18px 32px;
        font-size: 16px;
    }
    
    .mng-names-section h4 {
        font-size: 20px;
    }
    
    .mng-name-tag {
        font-size: 15px;
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    .mng-generator {
        margin: 10px;
        padding: 20px 15px;
    }
    
    .mng-header h2 {
        font-size: 28px;
    }
    
    .mng-description {
        font-size: 16px;
    }
    
    .mng-name-tag {
        font-size: 14px;
        padding: 8px 14px;
    }
}


/* Feedback System Styles */

.mng-feedback-section {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.mng-rating-section {
    margin-bottom: 25px;
}

.mng-rating-section h4 {
    color: #495057;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.mng-rating-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    justify-content: center;
}

.mng-rating-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px solid #dee2e6;
    background: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    color: #495057;
}

.mng-rating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mng-rating-btn.thumbs-up:hover {
    border-color: #28a745;
    background: #d4edda;
    color: #155724;
}

.mng-rating-btn.thumbs-down:hover {
    border-color: #dc3545;
    background: #f8d7da;
    color: #721c24;
}

.mng-rating-btn.rated {
    animation: ratingPulse 0.6s ease;
}

@keyframes ratingPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.mng-rating-btn .thumbs-icon {
    font-size: 18px;
}

.mng-rating-btn .rating-count {
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.mng-rating-total {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.mng-suggestion-section h4 {
    color: #495057;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.mng-suggestion-form {
    background: #ffffff;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #dee2e6;
}

.mng-suggestion-input {
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.3s ease;
}

.mng-suggestion-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.mng-suggestion-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.character-count {
    font-size: 12px;
    color: #646970;
    font-weight: 500;
}

.mng-suggestion-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    min-width: 200px;
}

.mng-suggestion-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.mng-suggestion-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.mng-privacy-notice {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
    text-align: center;
}

.mng-privacy-notice small {
    color: #6c757d;
    font-size: 12px;
    line-height: 1.4;
}

/* Responsive adjustments for feedback system */
@media (max-width: 768px) {
    .mng-feedback-section {
        padding: 20px;
        margin-top: 25px;
    }
    
    .mng-rating-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .mng-rating-btn {
        justify-content: center;
        padding: 12px 16px;
    }
    
    .mng-suggestion-controls {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .mng-suggestion-btn {
        width: 100%;
        padding: 12px;
    }
}

/* Success/Error message styling for feedback */
.mng-messages .success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.mng-messages .error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}
