/* Apple-Style Bento Stack Layout 
   - 1 Column 
   - Auto-height (No Grey Bars)
   - Responsive
*/

:root {
    --bg-black: #000000;
    --apple-gray: #1d1d1f; /* สีเทาเข้มแบบ Apple */
    --accent-red: #c00000;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Setup --- */
body {
    background-color: var(--bg-black);
    color: #ffffff;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --- Navigation Header --- */
.main-header {
    height: 52px;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-logo {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #f5f5f7;
    opacity: 0.9;
}

/* --- Main Content Container --- */
.showcase-container {
    padding: 100px 20px 60px; /* เว้นด้านบนให้ Header */
    max-width: 980px; /* ความกว้างมาตรฐานหน้าเว็บ Apple */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px; /* ระยะห่างระหว่าง Bento แต่ละชิ้น */
}

/* --- Bento Item (The Container) --- */
.showcase-item {
    background-color: var(--apple-gray);
    border-radius: 24px; /* ความโค้งมนแบบ Apple Device */
    overflow: hidden;
    width: 100%;
    height: auto; /* 🟢 สำคัญ: ปล่อยให้สูงตามรูปจริง */
    display: block;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

/* เอฟเฟกต์ตอน Hover */
.showcase-item:hover {
    transform: scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* --- The Image --- */
.showcase-image {
    width: 100%;       /* กว้างเต็มกล่อง */
    height: auto;      /* 🟢 สำคัญ: ยืดหดตามสัดส่วนรูปจริง ไม่โดนตัดขอบ */
    display: block;    /* ลบช่องว่าง (white space) ใต้รูปภาพ */
    object-fit: cover; /* ทำหน้าที่สำรองกรณีที่กล่องมีขนาดบังคับ */
}

/* --- Footer Section --- */
.main-footer {
    text-align: center;
    padding: 60px 20px;
    color: #86868b;
    font-size: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Responsive Adjustments --- */

/* สำหรับ Tablet */
@media (max-width: 1024px) {
    .showcase-container {
        max-width: 90%;
    }
}

/* สำหรับมือถือ */
@media (max-width: 734px) {
    .showcase-container {
        padding: 80px 15px 40px;
        gap: 20px;
    }

    .showcase-item {
        border-radius: 18px; /* ลดความโค้งลงเล็กน้อยในจอเล็ก */
    }

    .brand-logo {
        font-size: 1rem;
    }
}