.main {
    width: 100%;
    max-width: 600px;
    text-align: center;
    padding: 15rem 1.5rem 3rem 1.5rem;
    justify-self: center;
}

h1 {
    color: #2d3748;
    margin-bottom: 2rem;
    font-size: clamp(1.5rem, 5vw, 2.2rem);
}

.container {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.2s;
}

textarea:focus {
    outline: none;
    border-color: #4a90e2;
}

button {
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    transition:
        transform 0.1s,
        background-color 0.2s;
}

button:active {
    transform: scale(0.98);
}

.generate-btn {
    background-color: #4a90e2;
    color: white;
    width: 100%;
}

.generate-btn:hover {
    background-color: #357abd;
}

.result {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #edf2f7;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

#slugOutput {
    background-color: #f8fafc;
    min-height: 60px;
    font-family: monospace;
    color: #2c5282;
    border-style: dashed;
}

.copy-btn {
    background-color: #48bb78;
    color: white;
}

.copy-btn:hover {
    background-color: #38a169;
}

span {
    font-size: 0.8rem;
    color: #a0aec0;
}

@media (max-width: 480px) {
    .container {
        padding: 1.2rem;
    }

    button {
        padding: 1rem;
    }
}

.copy-btn:hover {
    background: #5aab5a;
}

.faq-container {
    width: 80%;
    margin: 20px auto 70px auto;
}

.faq-question {
    padding: 15px;
    background-color: #f0f0f0;
    cursor: pointer;
    border-bottom: 1px solid #ccc;
    position: relative;
}

.faq-question:hover {
    background-color: #e0e0e0;
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: bold;
}

.faq-question.active::after {
    content: "-";
}

.faq-answer {
    padding: 15px;
    display: none;
    border-bottom: 1px solid #ccc;
}

.faq-answer.show {
    display: block;
}
