/* Funny Name Generator Styles */
.funny-name-generator {
    padding: 50px;
    background: #fbc63e;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.generator-header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.generator-header h2 {
    margin: 0 0 10px 0;
    font-size: 2.2em;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.generator-header p {
    margin: 0;
    font-size: 1.1em;
    opacity: 0.9;
}

.generate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 30px;
    font-size: 1.2em;
    font-weight: 600;
    background: white !important;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 25px;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.generate-btn:active {
    transform: translateY(0);
}

.generate-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.generate-btn .btn-icon {
    font-size: 1.4em;
    animation: rotate 2s linear infinite;
}

.generate-btn.loading .btn-icon {
    animation: rotate 0.8s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#name-list-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    min-height: 300px;
    margin-bottom: 20px;
}

.name-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.name-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #f5f7fa 0%, #eeeeee 100%);
    border-radius: 10px;
    animation: slideIn 0.4s ease-out;
    animation-fill-mode: both;
    transition: all 0.3s ease;
}

.name-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.name-item:last-child {
    margin-bottom: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.name-text {
    font-size: 1.15em;
    font-weight: 600;
    color: #2d3748;
    flex: 1;
}

.copy-btn {
    padding: 8px 16px;
    font-size: 0.9em;
    font-weight: 600;
    color: white;
    background: #667eea;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #5568d3;
    transform: scale(1.05);
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-btn.copied {
    background: #ffffff !important;
}

.copy-btn.error {
    background: #f56565;
}

.generator-footer {
    text-align: center;
    color: white;
    opacity: 0.9;
}

.generator-footer .tip {
    margin: 0;
    font-size: 0.95em;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .funny-name-generator {
        margin: 20px;
        padding: 20px;
    }
    
    .generator-header h2 {
        font-size: 1.8em;
    }
    
    .generate-btn {
        font-size: 1.1em;
        padding: 15px 25px;
    }
    
    .name-item {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .copy-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .generator-header h2 {
        font-size: 1.5em;
    }
    
    .name-text {
        font-size: 1em;
    }
}