/* ==========================================================================
   SIAMDIY.com - Global Main Stylesheet (Clean & Unified Version)
   ========================================================================== */

:root {
    --primary-dark: #0f172a;    /* Slate-900 */
    --secondary-dark: #1e293b;  /* Slate-800 */
    --accent-orange: #f97316;   /* Orange-500 Accent */
    --text-white: #f8fafc;      /* Slate-50 */
    --sub-text: #94a3b8;        /* Slate-400 */
    --line: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Mitr', sans-serif;
}

body {
    background-color: var(--primary-dark);
    color: var(--text-white);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top center, #1e293b 0%, #0f172a 80%);
    overflow-x: hidden;
    position: relative;
}

/* Background Pattern (Circuit Board) */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/circuit-board.png');
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

/* Background Glow Effect */
.glow {
    position: absolute;
    width: 450px; height: 450px;
    background: var(--accent-orange);
    filter: blur(130px);
    opacity: 0.08;
    z-index: 0;
    top: 200px; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* ==========================================================================
   Header & Navbar (ความกว้าง 800px อยู่ตรงกลาง)
   ========================================================================== */
.site-header {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-white);
    font-weight: 500;
    font-size: 1.1rem;
    white-space: nowrap;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.02);
}

.header-logo span {
    color: var(--accent-orange);
    font-weight: 600;
    display: inline !important;
}

.header-logo img {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    border-radius: 50% !important;
    margin-right: 10px !important;
    border: 2px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.35) !important;
    object-fit: cover !important;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.header-logo:hover img {
    transform: rotate(4deg) scale(1.05);
    box-shadow: 0 0 18px rgba(249, 115, 22, 0.6) !important;
}

.nav-link {
    color: var(--sub-text);
    text-decoration: none;
    margin-left: 15px;
    transition: 0.3s;
    font-size: 0.9rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-orange);
}

.nav-link i {
    margin-right: 5px;
}

/* ==========================================================================
   Badges (แท็กหมวดหมู่)
   ========================================================================== */
.badge-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    color: var(--text-white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    background: rgba(249, 115, 22, 0.08);
    transform: translateY(-2px);
}

/* ==========================================================================
   Social Icons & CTA Section
   ========================================================================== */
.cta-section {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
}

.social-links,
.social-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.social-icon,
.social-item {
    color: var(--sub-text) !important;
    font-size: 1.4rem !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
}

.social-icon:hover,
.social-item:hover {
    color: var(--accent-orange) !important;
    border-color: var(--accent-orange) !important;
    background: rgba(249, 115, 22, 0.1) !important;
    transform: translateY(-4px) scale(1.1);
}

/* ==========================================================================
   Legal Footer (ส่วนล่างสุดของเว็บไซต์)
   ========================================================================== */
.legal-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    font-size: 0.75rem;
    color: var(--sub-text);
    font-weight: 300;
    width: 100%;
    padding: 20px 15px;
    border-top: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.85);
    margin-top: auto;
}

.footer-notice {
    margin-bottom: 10px;
    opacity: 0.75;
    font-size: 0.7rem;
    line-height: 1.4;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-links {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--sub-text);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.75rem;
    padding: 0 4px;
}

.footer-links a:hover {
    color: var(--accent-orange);
}

.separator {
    opacity: 0.3;
    display: inline-block !important;
}

.copyright {
    opacity: 0.6;
    letter-spacing: 0.3px;
    font-size: 0.7rem;
สำหรับการจัดระเบียบ Footer ในลักษณะนี้ให้ดูสะอาด ตา และสวยงามบนเว็บไซต์ สามารถจัดโครงสร้าง HTML และแต่ง CSS ได้แบบ Step by Step ตามนี้ครับ

---

### Step 1: เขียน HTML Structure
แยกส่วนประกอบออกเป็น 2 ฝั่งหลักๆ ได้แก่ ลิงก์นโยบายต่างๆ (Navigation Links) และ ข้อมูลลิขสิทธิ์ (Copyright)

```html
<footer class="site-footer">
  <div class="footer-container">
    
    <!-- ฝั่งลิงก์นโยบาย -->
    <ul class="footer-links">
      <li><a href="/privacy-policy">Privacy Policy</a></li>
      <li><a href="/terms-of-service">Terms of Service</a></li>
      <li><a href="/cookies-policy">Cookies Policy</a></li>
    </ul>

    <!-- ฝั่ง Copyright และ Credit -->
    <div class="footer-copyright">
      <span>© 2026 SIAMDIY.com. All Rights Reserved.</span>
      <span class="powered-by">Powered by <a href="[https://12t.me](https://12t.me)" target="_blank" rel="noopener">12t.me</a></span>
    </div>

  </div>
</footer>
