/* ================= SHARED CORE UI (ប្រើរួមគ្រប់ស្ថាប័នទាំងអស់) ================= */
:root {
    --dark-bg: #070a12;
    --card-glass: rgba(16, 23, 41, 0.88);
}

body {
    font-family: 'Kantumruy Pro', 'Noto Sans SC', sans-serif;
    background-color: var(--dark-bg);
    color: #ffffff;
    overflow-x: hidden;
}

/* ប្រអប់ពណ៌សរាងចតុកោណជ្រុងមូលតិចៗនៅពីក្រោយ Logo ទំហំតូចស្តង់ដារ */
.standard-logo-box {
    background-color: #FFFFFF;
    width: 54px;
    height: 54px;
    padding: 3px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}
.standard-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 9px;
}

/* ប៊ូតុង Social Media តម្រៀបជាជួរ (ថែមប៉ុន្មានក៏មិនខូចទ្រង់ទ្រាយ) */
.social-row-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.social-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}
.social-pill-btn:hover {
    transform: translateY(-3px);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.social-fb { background: linear-gradient(90deg, #1877F2, #005ACC); border: none; }
.social-yt { background: linear-gradient(90deg, #FF0000, #cc0000); border: none; }
.social-tg-channel { background: linear-gradient(90deg, #0088cc, #00C7C7); border: none; }
.social-tg-group { background: linear-gradient(90deg, #005ACC, #0088cc); border: none; }

/* កាតបង្ហាញ Posts (រូបភាព, វីដេអូ, Social Shares) */
.post-card {
    background: var(--card-glass);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    transform: translateY(-7px);
    border-color: #00C7C7;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}
.post-img-wrapper {
    width: 100%;
    height: 210px;
    overflow: hidden;
    position: relative;
}
.post-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.post-card:hover .post-img-wrapper img { transform: scale(1.08); }

/* AI Chatbot Widget */
#aiChatToggle {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 58px;
    height: 58px;
    z-index: 9999;
    background: linear-gradient(135deg, #005ACC, #00C7C7);
    border: 2px solid #fff;
    color: #fff;
}
#aiChatWindow {
    position: fixed;
    bottom: 95px;
    left: 25px;
    width: 350px;
    max-width: 90vw;
    z-index: 9999;
    display: none;
    background: #0b1120;
    border: 1px solid #00C7C7;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.85);
}