:root {
    --primary-dark: #2c3e50;
    --primary-light: #ecf0f1;
    --accent-color: #e74c3c;
    --background-color: #34495e;
    --text-color: #2c3e50;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.tool-content {
    background: var(--primary-light);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: var(--primary-dark);
    font-size: 2.5em;
    margin-bottom: 30px;
}

.description {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.generator-box {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.select-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.custom-select {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    color: var(--text-color);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
    min-height: 48px;
}

.custom-select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.name-options {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.name-option {
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.name-option:hover {
    border-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.name-text {
    font-size: 1.2em;
    color: var(--primary-dark);
}

.select-name-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.select-name-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.name-option.selected {
    border-color: var(--accent-color);
    background: #fff5f5;
}

.result-container {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin: 20px 0;
    min-height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.name-display {
    font-size: 1.5em;
    text-align: center;
    color: var(--primary-dark);
}

.generate-button {
    display: block;
    width: 200px;
    margin: 20px auto;
    padding: 15px 30px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.generate-button:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.loader {
    position: relative;
    width: 50px;
    height: 50px;
}

.blood-drop {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: drip 1.5s infinite;
}

@keyframes drip {
    0% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    100% {
        transform: scale(0.3) translateY(40px);
        opacity: 0;
    }
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature-button {
    background: var(--primary-dark);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-button:hover {
    background: #34495e;
    transform: translateY(-2px);
}

.name-meaning {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .tool-content {
        padding: 15px;
    }

    h1 {
        font-size: 2em;
    }

    .custom-select {
        width: 100%;
    }

    .generate-button {
        width: 100%;
    }
}
