
/* =====================================================
   IMAGE GENERATOR
====================================================== */

.imagegen-page {
    min-height: calc(100vh - 80px);
    padding: 55px 0 80px;
}


/* =====================================================
   HEADER
====================================================== */

.imagegen-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 45px;
}

.imagegen-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;

    border: 1px solid rgba(82, 207, 197, 0.35);

    border-radius: 50px;

    color: var(--teal-light);

    background: rgba(59, 162, 154, 0.08);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;

    margin-bottom: 18px;
}

.imagegen-badge i {
    font-size: 14px;
    color: var(--teal-light);
}

.imagegen-header h1 {
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 18px;
    letter-spacing: -2px;
}

.imagegen-header h1 span {
    color: var(--teal-light);
}

.imagegen-header p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    opacity: 0.65;
}


/* =====================================================
   MAIN GENERATOR
====================================================== */

.imagegen-card {
    max-width: 1250px;
    margin: 0 auto;

    border: 1px solid rgba(255, 255, 255, 0.08);

    background: rgba(255, 255, 255, 0.035);

    border-radius: 28px;

    padding: 24px;

    box-shadow:
        0 25px 80px
        rgba(0, 0, 0, 0.25);
}

.imagegen-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(360px, 0.9fr);

    gap: 24px;
}


/* =====================================================
   PROMPT PANEL
====================================================== */

.generator-panel {
    border: 1px solid rgba(255, 255, 255, 0.07);

    background: rgba(0, 0, 0, 0.12);

    border-radius: 22px;

    padding: 25px;
}

.panel-heading {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 20px;
}

.panel-title {
    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 16px;

    font-weight: 700;
}

.panel-title i {
    color: var(--teal-light);

    font-size: 20px;
}

.prompt-label {
    font-size: 13px;

    font-weight: 700;

    margin-bottom: 9px;

    opacity: 0.85;
}

.prompt-wrapper {
    position: relative;
}

.prompt-input {
    width: 100%;

    min-height: 230px;

    resize: vertical;

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    border-radius: 17px;

    background:
        rgba(255, 255, 255, 0.045);

    color: inherit;

    padding:
        18px 18px 45px;

    font-size: 15px;

    line-height: 1.7;

    outline: none;

    transition: 0.25s ease;
}

.prompt-input::placeholder {
    opacity: 0.35;
}

.prompt-input:focus {
    border-color:
        rgba(82, 207, 197, 0.65);

    box-shadow:
        0 0 0 4px
        rgba(59, 162, 154, 0.08);
}

.prompt-counter {
    position: absolute;

    bottom: 13px;

    right: 15px;

    font-size: 11px;

    opacity: 0.45;
}


/* =====================================================
   QUICK PROMPTS
====================================================== */

.quick-title {
    font-size: 12px;

    font-weight: 700;

    opacity: 0.5;

    margin:
        20px 0 10px;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.quick-prompts {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.quick-prompt {
    border:
        1px solid
        rgba(255, 255, 255, 0.09);

    background:
        rgba(255, 255, 255, 0.035);

    color: inherit;

    border-radius: 50px;

    padding:
        8px 13px;

    font-size: 12px;

    cursor: pointer;

    transition: 0.2s ease;
}

.quick-prompt:hover {
    border-color:
        rgba(82, 207, 197, 0.5);

    background:
        rgba(59, 162, 154, 0.08);

    color:
        var(--teal-light);
}


/* =====================================================
   OPTIONS
====================================================== */

.options-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 13px;

    margin-top: 23px;
}

.option-group label {
    display: block;

    font-size: 12px;

    font-weight: 700;

    margin-bottom: 8px;

    opacity: 0.65;
}

.generator-select {
    width: 100%;

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    border-radius: 13px;

    padding:
        12px 14px;

    background:
        rgba(255, 255, 255, 0.045);

    color: inherit;

    outline: none;

    transition: 0.25s ease;
}

.generator-select:focus {
    border-color:
        rgba(82, 207, 197, 0.6);

    box-shadow:
        0 0 0 3px
        rgba(59, 162, 154, 0.08);
}

.generator-select option {
    background: #15191f;

    color: white;
}


/* =====================================================
   GENERATE BUTTON
====================================================== */

.generate-button {
    width: 100%;

    margin-top: 24px;

    border: 0;

    border-radius: 15px;

    padding:
        15px 20px;

    background:
        linear-gradient(
            135deg,
            var(--teal),
            var(--teal-dark)
        );

    color: white;

    font-size: 14px;

    font-weight: 800;

    letter-spacing: 0.2px;

    cursor: pointer;

    transition: 0.25s ease;

    box-shadow:
        0 10px 30px
        rgba(59, 162, 154, 0.18);
}

.generate-button:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 14px 35px
        rgba(82, 207, 197, 0.28);
}

.generate-button:active {
    transform:
        translateY(0);
}

.generate-button i {
    margin-right: 7px;

    color: white;
}


/* =====================================================
   RESULT PANEL
====================================================== */

.result-panel {
    min-height: 100%;

    display: flex;

    flex-direction: column;
}

.result-box {
    position: relative;

    flex: 1;

    min-height: 540px;

    overflow: hidden;

    border-radius: 20px;

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(59, 162, 154, 0.08),
            transparent 35%
        ),
        rgba(0, 0, 0, 0.2);

    display: flex;

    align-items: center;

    justify-content: center;
}

.result-placeholder {
    text-align: center;

    max-width: 300px;

    padding: 25px;
}

.result-icon {
    width: 75px;

    height: 75px;

    margin:
        0 auto 20px;

    border-radius: 22px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(59, 162, 154, 0.1);

    border:
        1px solid
        rgba(82, 207, 197, 0.18);
}

.result-icon i {
    font-size: 30px;

    color:
        var(--teal-light);
}

.result-placeholder h3 {
    font-size: 20px;

    font-weight: 800;

    margin-bottom: 10px;
}

.result-placeholder p {
    font-size: 13px;

    line-height: 1.7;

    opacity: 0.5;

    margin: 0;
}


/* =====================================================
   RESULT IMAGE
====================================================== */

.generated-image {
    width: 100%;

    height: 100%;

    object-fit: cover;

    display: none;
}


/* =====================================================
   RESULT FOOTER
====================================================== */

.result-info {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;

    margin-top: 15px;
}

.result-status {
    display: flex;

    align-items: center;

    gap: 7px;

    font-size: 11px;

    opacity: 0.45;
}

.status-dot {
    width: 7px;

    height: 7px;

    border-radius: 50%;

    background:
        var(--teal-light);

    box-shadow:
        0 0 10px
        rgba(82, 207, 197, 0.7);
}

.download-button {
    display: none;

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    background:
        rgba(255, 255, 255, 0.04);

    color: inherit;

    padding:
        9px 14px;

    border-radius: 10px;

    font-size: 12px;

    text-decoration: none;

    transition: 0.2s ease;
}

.download-button:hover {
    border-color:
        rgba(82, 207, 197, 0.5);

    color:
        var(--teal-light);
}


/* =====================================================
   MOBILE
====================================================== */

@media (max-width: 991px) {

    .imagegen-page {
        padding-top: 35px;
    }

    .imagegen-grid {
        display: flex;

        flex-direction: column;
    }

    /* RESULT DI ATAS */

    .result-panel {
        order: 1;
    }

    /* PROMPT DI BAWAH */

    .generator-panel:not(.result-panel) {
        order: 2;
    }

    .result-box {
        min-height: 450px;
    }

}


@media (max-width: 576px) {

    .imagegen-page {
        padding:
            25px 0 50px;
    }

    .imagegen-card {
        padding: 12px;

        border-radius: 20px;
    }

    .generator-panel {
        padding: 18px;

        border-radius: 17px;
    }

    .imagegen-header {
        margin-bottom: 30px;
    }

    .imagegen-header h1 {
        letter-spacing: -1px;
    }

    .imagegen-header p {
        font-size: 14px;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .result-box {
        min-height: 380px;
    }

    /* RESULT IMAGE */

    .generated-image {
        width: 100%;

        height: auto;

        max-height: 500px;

        object-fit: contain;

        display: block;
    }

    /* QUICK PROMPTS */

    .quick-prompts {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 8px;
    }

    /* GENERATE */

    .generate-button {
        width: 100%;
    }

    /* DOWNLOAD */

    .result-info {
        flex-direction: column;

        align-items: stretch;

        gap: 12px;
    }

    .download-button {
        width: 100%;

        justify-content: center;
    }

}
