/* =========================================================
 * FreeHost.in.th — Shared Light Aurora Theme
 * ใช้ร่วมระหว่างทุกหน้า เพื่อให้ทั้งเว็บโทนสีเดียวกัน
 * ========================================================= */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #8A2BE2;
    --accent-color: #00f5d4;
    --bg-primary: #f0f2f5;
    --bg-secondary: #eef1f5;
    --bg-card: #ffffff;
    --text-primary: #343a40;
    --text-secondary: #6c757d;
    --border-color: rgba(13, 110, 253, 0.12);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Prompt', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1 0 auto; }

/* ===== Aurora Background ===== */
.aurora-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(125deg, #e6e9f0 0%, #eef1f5 100%);
    overflow: hidden;
}

.aurora-background::before,
.aurora-background::after {
    content: '';
    position: absolute;
    width: 80vw;
    height: 80vw;
    max-width: 800px;
    max-height: 800px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    mix-blend-mode: multiply;
}

.aurora-background::before {
    background: radial-gradient(circle, var(--primary-color), transparent 60%);
    top: -20%;
    left: -20%;
    animation: moveAurora1 25s infinite alternate ease-in-out;
}

.aurora-background::after {
    background: radial-gradient(circle, var(--secondary-color), transparent 60%);
    bottom: -20%;
    right: -20%;
    animation: moveAurora2 25s infinite alternate ease-in-out;
}

@keyframes moveAurora1 {
    from { transform: translate(0, 0) rotate(0deg); }
    to   { transform: translate(100px, 50px) rotate(45deg); }
}

@keyframes moveAurora2 {
    from { transform: translate(0, 0) rotate(0deg); }
    to   { transform: translate(-100px, -50px) rotate(-45deg); }
}

/* ===== Glass Navbar ===== */
.glass-nav {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(222, 226, 230, 0.5);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.glass-nav .navbar-brand {
    color: var(--primary-color) !important;
    font-weight: 700;
}

.glass-nav .nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
}

.glass-nav .nav-link.active,
.glass-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* ===== Glass Card ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 2.3rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px 0 rgba(13, 110, 253, 0.08);
    color: var(--text-primary);
}

/* ===== CTA / buttons ===== */
.cta-button,
.back-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: #fff !important;
    padding: .8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 5px 18px rgba(13, 110, 253, 0.18);
}

.cta-button:hover,
.back-btn:hover {
    transform: translateY(-3px);
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(13, 110, 253, 0.28);
}

/* ===== Footer ===== */
.footer {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-secondary);
    padding: 2.5rem 0 1.3rem 0;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.footer-link {
    color: var(--text-secondary);
    margin: 0 1rem;
    text-decoration: none;
    font-weight: 500;
}

.footer-link:hover { color: var(--primary-color); }

.footer .copyright {
    margin-top: 1.2rem;
    color: #999;
    font-size: .97rem;
    text-align: center;
}

.footer .social-icons a {
    color: var(--text-secondary);
    margin: 0 .5rem;
    font-size: 1.25rem;
    transition: color .2s;
}

.footer .social-icons a:hover { color: var(--primary-color); }

/* ===== Utility ===== */
.text-primary-c   { color: var(--primary-color) !important; }
.text-secondary-c { color: var(--text-secondary) !important; }
.section-heading {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: .55rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .glass-card { padding: 1.4rem; }
    .footer { font-size: 0.93rem; }
    .footer-link { margin: 0 .5rem; }
}
