/* ============================================================
   1. LAYOUT UTAMA & WRAPPER
   ============================================================ */
.prompt-page-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 50px 20px 40px;
    min-height: 100vh;
    background: var(--bg-color);
}

.prompt-card {
    display: flex;
    flex-direction: row; 
    background: #111;
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    max-width: 1100px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* ============================================================
   2. MEDIA CONTAINER (GAMBAR)
   ============================================================ */
.prompt-card .media-container {
    flex: 0 0 450px;
    width: 450px;
    aspect-ratio: 9/16;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    margin: 20px; 
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    background: #1a1a1a;
    z-index: 1;
}

.prompt-card .media-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.prompt-card .media-container:hover img {
    transform: scale(1.05);
}

/* ============================================================
   3. CONTENT & PROMPT TEXT
   ============================================================ */
.prompt-card .content-container {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    background: #111;
    z-index: 2;
}

#promptText {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.6;
    background: rgba(255,255,255,0.03);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--border);
    white-space: pre-wrap;
    word-break: break-word;
}

/* ============================================================
   4. ACTIONS (BUTTONS & VISITOR)
   ============================================================ */
.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* Base Style Tombol */
.btn-primary, .btn-like, #visitorBar {
    height: 48px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    text-decoration: none;
    overflow: hidden;
}

/* Tombol Copy */
.btn-primary {
    background: linear-gradient(-45deg, #38bdf8, #818cf8, #38bdf8, #818cf8);
    background-size: 300% 300%;
    animation: gradientMove 3s ease infinite;
    color: #fff;
    border: none;
    cursor: pointer;
}

/* Tombol Like */
.btn-like {
    background: rgba(255,255,255,0.05);
    color: #fff;
    cursor: pointer;
}

.btn-like.active {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
    animation: heartBeat 1s infinite;
}

/* Efek Shine */
.btn-primary::after, .btn-like::after {
    content: "";
    position: absolute;
    top: -50%; left: -60%; width: 20%; height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(30deg);
    transition: all 0.6s ease-in-out;
}

.btn-primary:hover::after, .btn-like:hover::after {
    left: 120%;
}

/* Visitor Bar */
#visitorBar {
    background: rgba(56, 189, 248, 0.05) !important;
    color: #94a3b8;
    flex-grow: 1;
    min-width: 280px;
    justify-content: space-around !important;
    cursor: default;
}

/* ============================================================
   5. COMMENT SECTION
   ============================================================ */
#comment-section {
    margin-top: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid var(--border);
}

/* ============================================================
   6. RESPONSIF MOBILE (OPTIMAL & FIX)
   ============================================================ */
@media (max-width: 900px) {
    .prompt-page-wrapper {
        display: block !important;
        padding-top: 70px !important;
        overflow-x: hidden;
    }

    .prompt-card {
        display: block !important;
        background: #111;
        border: none;
        width: 100% !important;
        border-radius: 0;
    }

    /* Paksa Gambar Tampil di Mobile */
    .prompt-card .media-container {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 400px !important;
        aspect-ratio: 9/16;
        position: relative !important;
        top: 0 !important;
        margin: 0 !important;
        border-radius: 0 0 25px 25px;
        border: none;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .prompt-card .media-container img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .prompt-card .content-container {
        display: block !important;
        width: 100% !important;
        padding: 30px 20px !important;
        background: #111 !important;
        position: relative;
        z-index: 10;
    }

    #promptText {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
    }

    #visitorBar {
        grid-column: span 2 !important;
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* ============================================================
   7. KEYFRAMES & UTILITIES
   ============================================================ */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.floating-stack { display: none !important; }