/* style.css */
.name-finder-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    border: 1px solid #eaeaea;
}

.nf-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.nf-header h2 {
    margin: 0 0 0.75rem;
    color: #2c3e50;
    font-size: 2.2rem;
    font-weight: 700;
}

.nf-header p {
    color: #7f8c8d;
    margin: 0;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.nf-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.nf-field {
    display: flex;
    flex-direction: column;
}

.nf-field label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

.nf-select, .nf-input {
    padding: 14px 18px;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    font-size: 16px;
    width: 100%;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%234a5568'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 14px;
}

.nf-select:focus, .nf-input:focus {
    border-color: #4e6bff;
    box-shadow: 0 0 0 3px rgba(78, 107, 255, 0.15);
    outline: none;
}

.nf-button {
    background: linear-gradient(135deg, #4e6bff, #3a56e8);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(78, 107, 255, 0.25);
    margin-top: 10px;
    width: 100%;
}

.nf-button:hover {
    background: linear-gradient(135deg, #3a56e8, #2a46d8);
    box-shadow: 0 6px 15px rgba(78, 107, 255, 0.35);
    transform: translateY(-2px);
}

.nf-button:active {
    transform: translateY(1px);
}

.nf-button:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.nf-results {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #eaedf3;
    min-height: 200px;
    line-height: 1.8;
    font-size: 18px;
    color: #34495e;
    box-shadow: 0 3px 10px rgba(0,0,0,0.04);
    margin-top: 2rem;
    display: none;
}

.nf-error {
    color: #e74c3c;
    margin-top: 1.5rem;
    text-align: center;
    font-weight: 500;
    display: none;
    padding: 15px;
    background: #fdeded;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

.nf-status {
    text-align: center;
    padding: 15px;
    margin-top: 1rem;
    border-radius: 8px;
    display: none;
}

.nf-status.loading {
    display: block;
    background: #e6f7ff;
    border-left: 4px solid #1890ff;
    color: #1890ff;
}

.nf-status.error {
    display: block;
    background: #fdeded;
    border-left: 4px solid #e74c3c;
    color: #e74c3c;
}

.nf-footer {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
    color: #718096;
    font-size: 14px;
}

.nf-footer a {
    color: #4e6bff;
    text-decoration: none;
}

.nf-footer a:hover {
    text-decoration: underline;
}

.nf-name-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.nf-name-item {
    padding: 15px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    background: #f9f9f9;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nf-name-item:hover {
    background: #f0f7ff;
    border-color: #4e6bff;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(78, 107, 255, 0.15);
}

.nf-prompt {
    background: #f8f9fa;
    border-left: 4px solid #4e6bff;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #4a5568;
    display: none;
}

/* Responsive design */
@media (max-width: 700px) {
    .name-finder-container {
        padding: 1.5rem;
        margin: 1rem auto;
    }
    
    .nf-controls {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .nf-header h2 {
        font-size: 1.8rem;
    }
    
    .nf-results {
        padding: 1.5rem;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .name-finder-container {
        padding: 1.2rem;
    }
    
    .nf-header h2 {
        font-size: 1.6rem;
    }
    
    .nf-select, .nf-input {
        padding: 12px 15px;
    }
}