/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff9e6d;
    --secondary-color: #ffe4c9;
    --accent-color: #6dc0ff;
    --light-color: #fff9f0;
    --dark-color: #8b5a2b;
    --success-color: #8fb996;
    --warning-color: #f57c00;
    --error-color: #d32f2f;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M25,25 C30,20 70,20 75,25 C80,30 80,70 75,75 C70,80 30,80 25,75 C20,70 20,30 25,25 Z' fill='%23ff9e6d' fill-opacity='0.1'/%3E%3Cpath d='M40,40 C42,38 58,38 60,40 C62,42 62,58 60,60 C58,62 42,62 40,60 C38,58 38,42 40,40 Z' fill='%23ff9e6d' fill-opacity='0.1'/%3E%3Cpath d='M30,50 C30,48 32,46 34,46 C36,46 38,48 38,50 C38,52 36,54 34,54 C32,54 30,52 30,50 Z' fill='%23ff9e6d' fill-opacity='0.1'/%3E%3Cpath d='M62,50 C62,48 64,46 66,46 C68,46 70,48 70,50 C70,52 68,54 66,54 C64,54 62,52 62,50 Z' fill='%23ff9e6d' fill-opacity='0.1'/%3E%3C/svg%3E");
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='%23ffffff' fill-opacity='0.1' d='M25,30 C30,25 70,25 75,30 C80,35 80,75 75,80 C70,85 30,85 25,80 C20,75 20,35 25,30 Z'%3E%3C/path%3E%3Cpath fill='%23ffffff' fill-opacity='0.1' d='M40,45 C42,43 58,43 60,45 C62,47 62,63 60,65 C58,67 42,67 40,65 C38,63 38,47 40,45 Z'%3E%3C/path%3E%3Cpath fill='%23ffffff' fill-opacity='0.1' d='M30,55 C30,53 32,51 34,51 C36,51 38,53 38,55 C38,57 36,59 34,59 C32,59 30,57 30,55 Z'%3E%3C/path%3E%3Cpath fill='%23ffffff' fill-opacity='0.1' d='M62,55 C62,53 64,51 66,51 C68,51 70,53 70,55 C70,57 68,59 66,59 C64,59 62,57 62,55 Z'%3E%3C/path%3E%3C/svg%3E");
    opacity: 0.1;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
}

/* Main content styles */
main {
    padding: 2rem 0;
}

section {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Form styles */
.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input[type="text"],
select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--secondary-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 158, 109, 0.2);
}

button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Results section */
.results-section {
    margin-top: 2rem;
}

#resultsContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.name-card {
    background: var(--light-color);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.name-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.name-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
}

.copy-btn {
    background: var(--secondary-color);
    color: var(--dark-color);
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn:hover {
    background: var(--accent-color);
    color: white;
}

/* History section */
.history-section ul {
    list-style: none;
}

.history-section li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--secondary-color);
}

.history-section li:last-child {
    border-bottom: none;
}

/* Content section */
.content-section {
    line-height: 1.8;
}

.content-section p {
    margin-bottom: 1rem;
}

/* FAQ section */
.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--secondary-color);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Loader */
.loader {
    border: 4px solid var(--secondary-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

/* Responsive design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    section {
        padding: 1.5rem;
    }
    
    #resultsContainer {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    header {
        padding: 1.5rem 0;
    }
    
    section {
        padding: 1rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
}