﻿/*
Theme Name: Afterwork for mobile
Theme URI: 
Author: Mye Theme
Text Domain: twentytwentyfive
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300&display=swap');


*{
  font-family: "Noto Sans Thai", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}


* { -webkit-tap-highlight-color: transparent; user-select: none; }


body {
    margin: 0;
    padding: 0;
    background-color: #f0f0f0; /* สีพื้นหลังข้างนอก (สำหรับ Desktop) */
    display: flex;
    justify-content: center;
}

.app-container {
    width: 100%;
    max-width: 480px; /* ล็อกขนาดสูงสุดเท่ามือถือ */
    min-height: 100vh;
    background-color: #ffffff; /* สีพื้นหลังของแอป */
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    position: relative;
    overflow-x: hidden;
}

/* ทำให้ Scroll ลื่นไหลแบบ Mobile */
main {
    padding-bottom: 60px; /* เผื่อพื้นที่ให้ Bottom Nav */
    -webkit-overflow-scrolling: touch;
}







.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%; /* กรณีใช้ max-width 480px ให้จัดกึ่งกลาง */
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px; /* เท่ากับขนาด app-container ของคุณ */
    height: 60px;
    background: #FF9800;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #eee;
    z-index: 1000;
    
    /* รองรับพื้นที่ด้านล่างของ iPhone (Home Indicator) */
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(60px + env(safe-area-inset-bottom));
}

.nav-item {
    text-decoration: none;
    color: #888;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
}

.nav-item.active {
    color: #00b900; /* สีเขียว LINE */
}

/* ป้องกันเนื้อหาหลักถูกทับ */
main {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
}