:root {
    --primary-color: #a52a2a;
    --secondary-color: #c54f4f;
    --accent-color: #e74c3c;
    --light-color: #fff6f6;
    --dark-color: #2c3e50;
    --success-color: #27ae60;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--light-color);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 230, 230, 0.3) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 230, 230, 0.3) 0%, transparent 20%);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2.5rem 0;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 20%);
    pointer-events: none;
}

header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    position: relative;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
}

.generator-section {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.input-group {
    margin-bottom: 1.8rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

input[type="text"], select {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: #f9f9f9;
}

input[type="text"]:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(165, 42, 42, 0.2);
    background-color: white;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    margin-bottom: 0;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 0.5rem;
    width: auto;
}

.generate-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    display: block;
    width: 100%;
    margin-top: 1.5rem;
}

.generate-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.loading {
    text-align: center;
    margin: 2.5rem 0;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.results-container {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.results-container h2 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    text-align: center;
}

.name-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    margin-bottom: 0.8rem;
    background-color: var(--light-color);
    transition: var(--transition);
}

.name-item:hover {
    background-color: #ffecec;
    transform: translateX(5px);
    border-color: var(--accent-color);
}

.name-text {
    font-weight: 500;
}

.name-meaning {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.3rem;
    font-style: italic;
}

.copy-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    flex-shrink: 0;
}

.copy-btn:hover {
    background-color: #c0392b;
}

.history-section {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.history-item:hover {
    background-color: #f9f9f9;
}

.history-name {
    font-weight: 600;
    flex: 2;
    color: var(--primary-color);
}

.history-type, .history-traits {
    flex: 1;
    color: #6c757d;
    font-size: 0.9rem;
}

.seo-content, .faq-section {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.seo-content h2, .faq-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #eee;
    text-align: center;
}

.seo-content h3 {
    color: var(--secondary-color);
    margin: 2rem 0 1.2rem;
    padding-left: 0.5rem;
    border-left: 4px solid var(--accent-color);
}

.seo-content ul {
    margin-left: 1.8rem;
    margin-bottom: 1.8rem;
}

.seo-content li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.faq-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background-color: #f9f9f9;
}

.faq-item h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    color: var(--primary-color);
}

footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.2rem;
    }
    
    .generator-section, .history-section, .seo-content, .faq-section {
        padding: 1.8rem;
    }
    
    .history-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .history-type, .history-traits {
        margin-top: 0.5rem;
    }
    
    .name-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .copy-btn {
        margin-top: 0.8rem;
        align-self: flex-end;
    }
    
    .seo-content h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.9rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .generate-button {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
    
    .seo-content, .faq-section {
        padding: 1.5rem;
    }
    
    .faq-item {
        padding: 1.2rem;
    }
}