/* Main Container */
.cat-name-generator {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}

.generator-container {
    background: linear-gradient(to bottom right, #FAF5FF, #FDF2F8);
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.generator-title {
    color: #5B21B6;
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
}

/* Button Groups */
.gender-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.gender-btn {
    flex: 1;
    max-width: 200px;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: #F3F4F6;
    color: #4B5563;
}

.style-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.style-btn {
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: #F3F4F6;
    color: #4B5563;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.style-btn i {
    font-size: 1.25rem;
}

.gender-btn:hover,
.style-btn:hover {
    background: #E5E7EB;
}

.gender-btn.active,
.style-btn.active {
    background: #7C3AED;
    color: white;
    box-shadow: 0 4px 6px rgba(124, 58, 237, 0.5);
}

/* Name Display */
.name-display {
    text-align: center;
    min-height: 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

#generated-name {
    font-size: 2.5rem;
    font-weight: bold;
    color: #5B21B6;
    margin: 0;
    transition: all 0.3s;
}

/* Generate Button */
.generate-button {
    background: linear-gradient(to right, #7C3AED, #DB2777);
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.25rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem auto;
    transition: all 0.2s;
}

.generate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(124, 58, 237, 0.5);
}

.generate-button i {
    font-size: 1.25rem;
}

/* Alphabet Grid */
.alphabet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.letter-group {
    background: #F9FAFB;
    border-radius: 0.5rem;
    padding: 1rem;
}

.letter-group h3 {
    color: #5B21B6;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.name-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.name-item {
    padding: 0.5rem;
    cursor: pointer;
    color: #4B5563;
    transition: all 0.2s;
    border-radius: 0.25rem;
}

.name-item:hover {
    background: #F3F4F6;
    color: #5B21B6;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cat-name-generator {
        padding: 1rem;
    }

    .generator-container {
        padding: 1.5rem;
    }

    .generator-title {
        font-size: 2rem;
    }

    .style-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    #generated-name {
        font-size: 2rem;
    }
}