* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(255, 0, 168, 0.16),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(255, 0, 127, 0.12),
            transparent 30%
        ),
        #080808;

    font-family: Helvetica, Arial, sans-serif;
    color: #f8f8f2;

    padding: 40px 20px;
}

.container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.hero {
    text-align: center;
    margin: 50px 0 35px;
}

.badge {
    display: inline-block;

    padding: 6px 12px;

    margin-bottom: 18px;

    border: 1px solid rgba(255, 0, 168, 0.35);

    border-radius: 50px;

    background: rgba(255, 0, 168, 0.08);

    color: #ff00a8;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1.5px;
}

h1 {
    margin: 0;

    font-size: clamp(42px, 8vw, 64px);

    line-height: 1;

    font-weight: 800;

    letter-spacing: -2px;

    color: #ffffff;

    text-shadow:
        0 0 30px rgba(255, 0, 168, 0.2);
}

.subtitle {
    max-width: 500px;

    margin: 20px auto 0;

    color: #888888;

    font-size: 16px;

    line-height: 1.6;
}

.generator-card {
    padding: 20px;

    background: rgba(20, 20, 20, 0.9);

    border: 1px solid #292929;

    border-radius: 18px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5);
}

form {
    margin: 0;
}

label {
    display: block;

    margin-bottom: 10px;

    color: #f8f8f2;

    font-size: 14px;

    font-weight: 600;
}

.input-row {
    display: flex;

    gap: 10px;
}

.instructions {
    flex: 1;

    min-width: 0;

    padding: 15px 17px;

    background: #0d0d0d;

    border: 1px solid #333333;

    border-radius: 11px;

    color: #f8f8f2;

    font-size: 16px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.instructions::placeholder {
    color: #666666;
}

.instructions:hover {
    border-color: #444444;
}

.instructions:focus {
    border-color: #ff00a8;

    box-shadow:
        0 0 0 3px rgba(255, 0, 168, 0.12);
}

.submit-button {
    position: relative;

    min-width: 130px;

    padding: 15px 20px;

    background: #ff00a8;

    color: #080808;

    border: none;

    border-radius: 11px;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.submit-button:hover {
    background: #ff007f;

    color: white;

    transform: translateY(-2px);

    box-shadow:
        0 8px 25px rgba(255, 0, 168, 0.3);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    cursor: not-allowed;

    opacity: 0.7;

    transform: none;
}


.button-loader {
    display: none;

    width: 16px;
    height: 16px;

    border: 2px solid rgba(0, 0, 0, 0.3);

    border-top-color: #000000;

    border-radius: 50%;

    animation: spin 0.7s linear infinite;
}

.submit-button.loading .button-text {
    display: none;
}

.submit-button.loading .button-loader {
    display: inline-block;
}

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

.examples {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 15px;

    color: #666666;

    font-size: 12px;
}

.example-button {
    padding: 6px 10px;

    background: #191919;

    border: 1px solid #303030;

    border-radius: 50px;

    color: #aaaaaa;

    font-size: 12px;

    cursor: pointer;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.example-button:hover {
    background: rgba(255, 0, 168, 0.08);

    border-color: #ff00a8;

    color: #ff00a8;
}


.recipe {
    margin-top: 25px;

    min-height: 250px;

    padding: 30px;

    background: #141414;

    border: 1px solid #292929;

    border-radius: 18px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4);

    line-height: 1.7;

    overflow-wrap: break-word;
}

.empty-state {
    min-height: 190px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;
}

.empty-icon {
    width: 60px;
    height: 60px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 15px;

    background: rgba(255, 0, 168, 0.08);

    border: 1px solid rgba(255, 0, 168, 0.2);

    border-radius: 16px;

    font-size: 28px;
}

.empty-state h2 {
    margin: 0 0 8px;

    font-size: 18px;

    color: #dddddd;
}

.empty-state p {
    max-width: 380px;

    margin: 0;

    color: #666666;

    font-size: 14px;
}

.recipe h1,
.recipe h2,
.recipe h3 {
    color: #ff00a8;

    letter-spacing: normal;

    text-shadow: none;
}

.recipe h1 {
    margin-top: 0;

    font-size: 32px;
}

.recipe h2 {
    margin-top: 30px;

    font-size: 22px;
}

.recipe h3 {
    font-size: 18px;
}

.recipe ul,
.recipe ol {
    padding-left: 25px;
}

.recipe li {
    margin-bottom: 8px;

    color: #d0d0d0;
}

.recipe strong {
    color: #ffffff;
}

.recipe a {
    color: #8be9fd;
}

.error-message {
    padding: 18px;

    background: rgba(255, 85, 85, 0.08);

    border: 1px solid rgba(255, 85, 85, 0.25);

    border-radius: 12px;

    color: #ff8a8a;

    text-align: center;
}

.error-message strong {
    display: block;

    margin-bottom: 5px;

    color: #ff5555;
}

footer {
    margin-top: 35px;

    padding-bottom: 30px;

    text-align: center;

    color: #555555;

    font-size: 13px;

    line-height: 1.8;
}

footer p {
    margin: 0 0 5px;
}

footer a {
    color: #ff00a8;

    font-weight: 600;

    text-decoration: none;

    transition: color 0.2s ease;
}

footer a:hover {
    color: #ff007f;
}

.footer-links {
    display: flex;

    justify-content: center;

    gap: 10px;
}

@media (max-width: 600px) {

    body {
        padding: 20px 15px;
    }

    .hero {
        margin: 30px 0 25px;
    }

    h1 {
        font-size: 44px;
    }

    .subtitle {
        font-size: 14px;
    }

    .generator-card {
        padding: 15px;
    }

    .input-row {
        flex-direction: column;
    }

    .submit-button {
        width: 100%;
    }

    .recipe {
        padding: 22px;

        min-height: 220px;
    }

    .recipe h1 {
        font-size: 27px;
    }

    .examples {
        justify-content: center;
    }
}