/* ═══════════════════════════════════════════
   SHARED STYLES — Thích về nhà
   Dùng chung cho tất cả các trang
═══════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: linear-gradient(180deg, #03081f 0%, #05102a 30%, #07132e 50%, #05102a 70%, #03081f 100%);
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Exo', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ── GALAXY CANVAS ── */
#galaxy-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
    filter: blur(1.5px);
}

/* ── GRID OVERLAY ── */
.grid-overlay {
    position: fixed;
    inset: 0;
    opacity: 0.04;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.4) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* ── UTILITY ── */
.content-wrapper { position: relative; z-index: 1; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ── GRADIENT TEXT ── */
.gradient-text {
    background: linear-gradient(90deg, #c084fc 0%, #67e8f9 100%);
    background-size: 150% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-cyan {
    background: linear-gradient(135deg, #22d3ee, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-green {
    background: linear-gradient(135deg, #34d399, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── FADE-UP ANIMATION ── */
.fade-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── BACK HOME LINK ── */
.back-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(103, 232, 249, 0.6);
    text-decoration: none;
    font-size: 13px;
    padding: 12px 0;
    transition: color 0.2s;
}

.back-home:hover { color: #67e8f9; }
.back-home svg { width: 14px; height: 14px; }

/* ── SPINNER ── */
.mini-spinner {
    border: 2px solid rgba(255,255,255,0.1); border-radius: 50%;
    border-top: 2px solid #00d2ff; width: 16px; height: 16px;
    animation: spin 1s linear infinite; display: inline-block;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
