/* =========================
   GLOBAL
========================= */

*{
    color:#111;
}

body{
    background:#fffaf0;
}

/* =========================
   AUTH BUTTONS
========================= */

#auth-buttons{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:15px;
}

#auth-buttons a,
#auth-buttons button{
    width:auto;
}

/* =========================
   HOME BUTTON
========================= */

#home-btn{
    position:fixed;
    bottom:24px;
    right:24px;
    z-index:999;

    background:#2563eb;
    color:white !important;

    border:none;
    border-radius:50px;

    padding:12px 20px;

    font-size:14px;
    font-weight:600;

    cursor:pointer;

    box-shadow:0 4px 15px rgba(37,99,235,.4);

    transition:.3s;
}

#home-btn:hover{
    background:#1d4ed8;
    transform:translateY(-3px);
    box-shadow:0 8px 20px rgba(37,99,235,.4);
}

@media(max-width:768px){
    #home-btn{
        bottom:16px;
        right:16px;
        padding:10px 16px;
        font-size:13px;
    }
}

/* =========================
   SELECT
========================= */

select{
    width:100%;
    padding:16px;
    border-radius:16px;
    border:1px solid #d1d5db;
    background:#fff;
    color:#111;
    font-size:15px;
    transition:.3s;
    outline:none;
    cursor:pointer;
}

select:hover{
    border-color:#2563eb;
    transform:translateY(-2px);
}

select:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 4px rgba(37,99,235,.15);
}

option{
    background:#fff;
    color:#111;
}

/* =========================
   BADGE POP / HOT
========================= */

.badge-pop{
    position:absolute;
    top:10px;
    left:10px;
    background:#f97316;
    color:#fff;
    font-size:12px;
    font-weight:700;
    padding:4px 10px;
    border-radius:999px;
    z-index:10;
    box-shadow:0 2px 8px rgba(249,115,22,.4);
}

.badge-hot{
    position:absolute;
    top:10px;
    left:10px;
    background:#eab308;
    color:#fff;
    font-size:12px;
    font-weight:700;
    padding:4px 10px;
    border-radius:999px;
    z-index:10;
    box-shadow:0 2px 8px rgba(234,179,8,.4);
}

.card{
    position:relative;
}

/* =========================
   LOAD MORE
========================= */

#load-more-btn{
    display:block;
    margin:30px auto 10px;
    padding:14px 40px;
    border:none;
    border-radius:14px;
    background:#2563eb;
    color:#fff;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
    width:auto;
}

#load-more-btn:hover{
    background:#1d4ed8;
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(37,99,235,.3);
}

/* =========================
   FOOTER นโยบาย
========================= */

.footer{
    margin-top:40px;
    padding:30px;
    border-top:1px solid #e5e7eb;
    text-align:center;
}

.footer p{
    font-size:13px;
    color:#94a3b8;
    margin-bottom:8px;
    max-width:100%;
}

.footer-links{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
    margin-top:10px;
}

.footer-links a{
    font-size:13px;
    color:#64748b;
    text-decoration:none;
    transition:.2s;
}

.footer-links a:hover{
    color:#2563eb;
}
/* =========================
   NOTIFICATION BELL
========================= */

#notif-bell{
    position:fixed;
    top:20px;
    right:150px;
    z-index:1000;
}

#notif-icon{
    width:44px;
    height:44px;
    background:#fff;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.2rem;
    cursor:pointer;
    box-shadow:0 2px 12px rgba(0,0,0,.12);
    position:relative;
    transition:.3s;
    border:1px solid #e5e7eb;
}

#notif-icon:hover{
    transform:scale(1.05);
}

#notif-badge{
    position:absolute;
    top:-4px;
    right:-4px;
    background:#ef4444;
    color:#fff;
    font-size:10px;
    font-weight:700;
    width:18px;
    height:18px;
    border-radius:50%;
    align-items:center;
    justify-content:center;
    border:2px solid #fff;
}

#notif-dropdown{
    position:absolute;
    top:52px;
    right:0;
    width:320px;
    background:#fff;
    border-radius:16px;
    box-shadow:0 8px 30px rgba(0,0,0,.12);
    border:1px solid #e5e7eb;
    overflow:hidden;
}

#notif-header{
    padding:14px 16px;
    border-bottom:1px solid #e5e7eb;
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:.9rem;
    font-weight:700;
    color:#111;
}

#notif-username{
    font-size:.8rem;
    color:#64748b;
    font-weight:500;
}

#notif-list{
    max-height:320px;
    overflow-y:auto;
}

.notif-item{
    display:flex;
    gap:12px;
    padding:12px 16px;
    border-bottom:1px solid #f1f5f9;
    transition:.2s;
}

.notif-item:hover{
    background:#f8fafc;
}

.notif-item.unread{
    background:#eff6ff;
    border-left:3px solid #2563eb;
}

.notif-icon-type{
    font-size:1.2rem;
    flex-shrink:0;
}

.notif-content p{
    font-size:.85rem;
    color:#111;
    margin:0 0 4px;
    line-height:1.4;
    text-align:left;
}

.notif-content small{
    font-size:.75rem;
    color:#94a3b8;
}

.notif-empty{
    padding:30px;
    text-align:center;
    color:#94a3b8;
    font-size:.9rem;
}

#notif-footer{
    padding:10px 16px;
    border-top:1px solid #e5e7eb;
    text-align:center;
}

#notif-footer button{
    background:none;
    border:none;
    color:#2563eb;
    font-size:.85rem;
    font-weight:600;
    cursor:pointer;
    padding:4px 8px;
    border-radius:8px;
    width:auto;
}

#notif-footer button:hover{
    background:#eff6ff;
}

@media(max-width:768px){
    #notif-bell{
        top:55px;
        right:30px;
    }
    #notif-dropdown{
        width:280px;
        right:-10px;
    }
}