/* ===========================================================================
 * mes789-system / assets/css/golden-zone.css
 * ---------------------------------------------------------------------------
 * พื้นที่ทองคำ (เฟส 17) — การ์ด "สิ่งล่าสุดที่ค้างไว้" บนหน้าโปรไฟล์
 *
 * [แก้ตามที่สั่ง — รอบนี้] ไม่มีแถว/สโครลเป็นของตัวเองแล้ว (ตัด .gz-strip/.gz-row
 * ทิ้ง) — การ์ดพวกนี้ตอนนี้เป็นสมาชิกของแถว .story-tray.story-tray-profile
 * แถวเดียวกับปุ่ม "+ สร้างสตอรี่" (ดู profile.php) ผู้เรียกเป็นคนคุมแถว/สโครลเอง
 *
 * ขนาดจึงต้อง "เท่ากับ" .story-tray-profile .story-tray-card เป๊ะ
 * (96px กว้าง / 160px สูง) ไม่งั้นการ์ดในแถวเดียวกันจะสูงไม่เท่ากัน
 * ดูค่าที่ล็อกไว้ที่ assets/css/story.css บรรทัด "แถบสตอรี่บนหน้าโปรไฟล์"
 *
 * เบาที่สุด: CSS ล้วน ไม่มี JS/animation ผูกกับไฟล์นี้เลย
 * =========================================================================== */

.gz-card {
    /* ต้องตรงกับ .story-tray-profile .story-tray-card เป๊ะ — 96px / 160px */
    flex: 0 0 96px;
    height: 160px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    border-radius: 12px;
    background: var(--mes-bg-card, #141416);
    border: 1px solid var(--mes-line, #2a2a2e);
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease;
    box-sizing: border-box;
}
.gz-card:hover { border-color: var(--mes-gold, #d4af37); }

.gz-card-icon { font-size: 1.3rem; line-height: 1.1; }

/* รูปย่อของสิ่งที่ค้างอยู่ (ถ้ามี) — ใช้แทนไอคอน ทำให้จำได้เร็วกว่าด้วยสายตา */
.gz-card-thumb {
    display: block;
    width: 100%;
    height: 60px;      /* ค่าตายตัวแทน aspect-ratio เดิม — ต้องพอดีกับการ์ดสูง 160px */
    border-radius: 8px;
    overflow: hidden;
    background: #1c1c20;
    flex-shrink: 0;
}
.gz-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gz-card-label {
    font-size: .64rem;
    font-weight: 700;
    color: var(--mes-gold, #d4af37);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ชื่อสิ่งที่ค้างอยู่ — ตัดที่ 3 บรรทัด (การ์ดเตี้ยลงจาก 190 เหลือ 160 จึงลดจาก
   2 บรรทัดเดิมไม่ได้พื้นที่พอ ต้องคุมด้วย -webkit-line-clamp ให้แน่นอน) */
.gz-card-title {
    font-size: .7rem;
    line-height: 1.3;
    color: var(--mes-text, #ece5e0);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===========================================================================
   การ์ดจองที่ ("เร็ว ๆ นี้") — หน้าตาเหมือนใบจริงแต่กดไม่ได้
   ---------------------------------------------------------------------------
   ตั้งใจให้จางกว่าใบจริงชัดเจน เพื่อไม่ให้ผู้ใช้เสียเวลากดแล้วไม่มีอะไรเกิดขึ้น
   (บทเรียนเดิมจากปุ่ม TikTok ในระบบเก่า: ปุ่มที่กดแล้วเงียบทำให้คนคิดว่าเว็บพัง)
   =========================================================================== */
.gz-card-soon {
    /* ขนาดเท่า .gz-card เป๊ะ — อยู่แถวเดียวกัน ต้องสูงเท่ากันเสมอ */
    flex: 0 0 96px;
    height: 160px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .02);
    border: 1px dashed var(--mes-line, #2a2a2e);
    cursor: not-allowed;
    opacity: .55;
    box-sizing: border-box;
}
.gz-card-soon .gz-card-icon { filter: grayscale(1); }
.gz-card-soon .gz-card-label { color: var(--mes-text-dim, #9a938d); }

.gz-card-soon-tag {
    margin-top: auto;
    font-size: .6rem;
    color: var(--mes-text-dim, #9a938d);
    border: 1px solid var(--mes-line, #2a2a2e);
    border-radius: 999px;
    padding: 1px 6px;
    align-self: flex-start;
}
