/**
 * Pixel Gallery - Minimalist Centered Footer Styles (footer.css)
 * ออกแบบตามดีไซน์สไตล์มินิมอลโมเดิร์น (Blockus-inspired) ตามข้อกำหนดในหน้า 4 ของเอกสารสิ่งที่ต้องแก้
 * โละของเก่าที่เป็น Dithered และตัวอักษรยักษ์ออกทั้งหมด
 */

/* ==========================================================================
   1. Footer Container (.pg-minimal-footer)
   ========================================================================== */
.pg-minimal-footer {
    width: 100%;
    background-color: #ffffff;
    color: #1f2937;
    font-family: var(--font-sans, 'Kanit', sans-serif);
    padding: 64px 20px 48px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 10;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode .pg-minimal-footer {
    background-color: #111111;
    color: #f3f4f6;
}

.pg-footer-container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ==========================================================================
   2. Brand Logo & Mark (.pg-footer-logo)
   ========================================================================== */
.pg-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #111111;
    margin-bottom: 26px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

body.dark-mode .pg-footer-logo {
    color: #ffffff;
}

.pg-footer-logo:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.pg-footer-logo-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pg-footer-logo-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.pg-footer-logo-text {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: inherit;
    line-height: 1;
}

/* ==========================================================================
   3. Horizontal Navigation Links (.pg-footer-nav)
   ========================================================================== */
.pg-footer-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    margin-bottom: 28px;
    padding: 0;
    list-style: none;
}

.pg-footer-nav-link {
    font-size: 0.95rem;
    font-weight: 400;
    color: #4b5563;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px 6px;
    font-family: inherit;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

body.dark-mode .pg-footer-nav-link {
    color: #9ca3af;
}

.pg-footer-nav-link:hover {
    color: #111111;
    transform: translateY(-1px);
}

body.dark-mode .pg-footer-nav-link:hover {
    color: #ffffff;
}

/* ==========================================================================
   4. Circular Outlined Social Icons (.pg-footer-socials)
   ========================================================================== */
.pg-footer-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.pg-footer-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background-color: transparent;
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-mode .pg-footer-social-btn {
    border-color: rgba(255, 255, 255, 0.15);
    color: #d1d5db;
}

.pg-footer-social-btn svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.pg-footer-social-btn:hover {
    border-color: #111111;
    color: #111111;
    background-color: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

body.dark-mode .pg-footer-social-btn:hover {
    border-color: #ffffff;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pg-footer-social-btn:hover svg {
    transform: scale(1.1);
}

/* ==========================================================================
   5. Divider Line (.pg-footer-divider)
   ========================================================================== */
.pg-footer-divider {
    width: 100%;
    max-width: 520px;
    height: 1px;
    background-color: #f0f0f2;
    margin: 0 auto 28px auto;
    border: none;
    transition: background-color 0.3s ease;
}

body.dark-mode .pg-footer-divider {
    background-color: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   6. Copyright & Tagline (.pg-footer-copy)
   ========================================================================== */
.pg-footer-copy {
    font-size: 0.86rem;
    font-weight: 300;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    letter-spacing: 0.2px;
}

body.dark-mode .pg-footer-copy {
    color: #9ca3af;
}

/* ==========================================================================
   7. Responsive adjustments
   ========================================================================== */
@media (max-width: 640px) {
    .pg-minimal-footer {
        padding: 48px 16px 36px;
    }

    .pg-footer-nav {
        gap: 18px 24px;
        margin-bottom: 24px;
    }

    .pg-footer-nav-link {
        font-size: 0.9rem;
    }

    .pg-footer-socials {
        gap: 10px;
        margin-bottom: 26px;
    }

    .pg-footer-social-btn {
        width: 36px;
        height: 36px;
    }

    .pg-footer-divider {
        margin-bottom: 22px;
    }

    .pg-footer-copy {
        font-size: 0.8rem;
    }
}
