/* --- Bottom Navbar Styles --- */
.bottom-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px; /* ความสูงคงที่ เล็กกระชับ */
    background-color: #031b40; /* สีธีมหลักเข้มๆ */
    border-top: 2px solid #E8AB00; /* เส้นสีทองด้านบน */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    z-index: 900; /* อยู่เหนือการ์ด แต่อยู่ใต้ Deck Panel (ซึ่งมักจะ 999) */
    font-family: 'Kanit', sans-serif;
    box-sizing: border-box;
}

/* ฝั่งซ้าย: ข้อมูลผู้สร้าง */
.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #cbd5e1;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-left:hover {
    color: #fff;
}

.nav-left strong {
    color: #E8AB00; /* ชื่อคุณสีทอง */
}

.info-link {
    font-size: 0.8rem;
    opacity: 0.7;
    border-left: 1px solid #555;
    padding-left: 15px;
}

/* ฝั่งขวา: ปุ่ม */
.nav-right {
    display: flex;
    gap: 10px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-btn:hover {
    transform: translateY(-2px);
}

/* ปุ่ม Bug Report */
.btn-facebook {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.btn-discord {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-discord:hover {
    background: #5665ed;
    border-color: #5665ed;
}

.btn-bug {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-bug:hover {
    background: #ff4757;
    border-color: #ff4757;
}

/* ปุ่ม Donate */
.btn-donate {
    background: linear-gradient(45deg, #ff9f43, #ffc107);
    color: #000;
    box-shadow: 0 2px 5px rgba(255, 165, 2, 0.3);
}

.btn-donate:hover {
    box-shadow: 0 4px 10px rgba(255, 165, 2, 0.5);
}

/* ปรับระยะขอบล่างของหน้าเว็บไม่ให้เนื้อหาโดนบัง */
body {
    padding-bottom: 70px; /* เพิ่มพื้นที่ด้านล่างเผื่อ Navbar */
}

/* --- Responsive มือถือ --- */
@media (max-width: 600px) {
    .btn-text {
        display: none; /* ซ่อนข้อความปุ่ม เหลือแต่ไอคอนบนมือถือ */
    }
    .info-link {
        display: none; /* ซ่อนลิงก์เพิ่มเติมบนมือถือ ให้กดที่ชื่ออย่างเดียว */
    }
    .nav-left {
        font-size: 0.8rem;
    }
}

/* --- Info Modal Styles (เฉพาะหน้าต่าง About) --- */
.info-modal {
    display: none; /* ซ่อนก่อน */
    position: fixed;
    z-index: 2000; /* อยู่เหนือทุกอย่าง */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
}

/* แก้ไขในส่วน .info-modal-content เดิม */
.info-modal-content {
    background-color: #fff;
    color: #333;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    
    /* เพิ่ม 2 บรรทัดนี้ครับ */
    max-height: 85vh;    /* ล็อคความสูงไม่ให้เกิน 85% ของหน้าจอ */
    overflow-y: auto;    /* ถ้าเนื้อหายาวเกิน ให้เกิด Scrollbar แนวดิ่ง */
    
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

/* ตกแต่ง Scrollbar ให้ดูสวยเข้ากับเว็บ (Optional) */
.info-modal-content::-webkit-scrollbar {
    width: 8px;
}
.info-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.info-modal-content::-webkit-scrollbar-thumb {
    background: #07357D;
    border-radius: 10px;
}

.close-info {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-info:hover { color: #000; }

.disclaimer-list {
    text-align: left;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    background: #f8f9fa;
    padding: 15px 15px 15px 35px;
    border-radius: 8px;
}

.big-donate-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #E8AB00;
    color: #000;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: 0.3s;
}
.big-donate-btn:hover { background: #d49b00; }

.modal-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(10px);}
    to {opacity: 1; transform: translateY(0);}
}