body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background: linear-gradient(120deg, #8e44ad, #3498db);
    color: #fff;
    text-align: center;
    padding: 30px;
}

.container {
    max-width: 600px;
    margin: auto;
}

h1 {
    font-size: 2.6rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.input-section {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

input {
    padding: 12px 15px;
    width: 60%;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 1rem;
}

button {
    padding: 12px 18px;
    background: #2ecc71;
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

button:disabled {
    background: #999;
    cursor: not-allowed;
}

button:hover {
    background: #27ae60;
}

/* Loading UI */
.hidden {
    display: none;
}

.loading {
    margin-top: 20px;
}

.spinner {
    width: 45px;
    height: 45px;
    border: 5px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    margin: auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Poem Card */
.poem-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    margin-top: 25px;
    border-radius: 12px;
    backdrop-filter: blur(6px);
    font-size: 1.1rem;
    line-height: 1.6rem;
    text-align: left;
}

/* Mobile */
@media (max-width: 480px) {
    input { width: 55%; }
}
