/* ==================== ROOT EXTENSIONS ==================== */
:root {
    --site-footer-glob-footer-bg: #FFE600;
    --site-footer-glob-footer-card-bg: #FFFFFF;
}

/* ==================== FOOTER BASE STYLES ==================== */
.site-footer-glob {
    background: var(--accent-purple);
    border-top: var(--game-border);
    position: relative;
    margin-top: 100px;
}

/* ==================== FOOTER MAIN BODY ==================== */
.site-footer-glob .footer-main {
    padding-top: 40px;
    padding-bottom: 40px;
    color: var(--accent-white);
}

.site-footer-glob .footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 2.2fr 1.2fr;
    gap: 40px;
}

.site-footer-glob .footer-middle-group {
    display: flex;
    gap: 30px;
}

.site-footer-glob .footer-middle-group .footer-col {
    flex: 1 1 50%;
    min-width: 0;
}

/* Column Headings with Colorful Cards */
.site-footer-glob .footer-heading {
    display: inline-block;
    color: var(--text-dark);
    border: var(--game-border);
    box-shadow: 4px 4px 0px var(--text-dark);
    padding: 6px 14px;
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 20px;
    border-radius: 8px;
    text-transform: uppercase;
    -webkit-user-select: none; /* Safari / Chrome 旧版本 */
    -moz-user-select: none;    /* Firefox 旧版本 */
    -ms-user-select: none;     /* IE / Edge 旧版本 */
    user-select: none;
}

.site-footer-glob .tag-blue { background: var(--accent-blue); }
.site-footer-glob .tag-pink { background: var(--accent-pink); }
.site-footer-glob .tag-yellow { background: var(--accent-yellow); }

/* Brand Column */
.site-footer-glob .brand-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.site-footer-glob .footer-logo {
    display: inline-block;
}

.site-footer-glob .logo-text {
    font-size: 32px;
    font-weight: 900;
    color: var(--accent-yellow);
    text-shadow: 3px 3px 0px var(--text-dark);
    letter-spacing: -1px;
    -webkit-user-select: none; /* Safari / Chrome 旧版本 */
    -moz-user-select: none;    /* Firefox 旧版本 */
    -ms-user-select: none;     /* IE / Edge 旧版本 */
    user-select: none;
}

.site-footer-glob .logo-highlight {
    color: var(--accent-pink);
}

.site-footer-glob .brand-desc {
    font-size: 15px;
    line-height: 1.5;
    color: #F3E8FF;
    font-weight: 500;
}

.site-footer-glob .social-links {
    display: flex;
    gap: 12px;
    margin-top: 5px;
}

.site-footer-glob .social-btn {
    width: 46px;
    height: 46px;
    border: var(--game-border);
    box-shadow: 4px 4px 0px var(--text-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.site-footer-glob .social-btn:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0px var(--text-dark);
}

.site-footer-glob .social-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px var(--text-dark);
}

.site-footer-glob .btn-pink { background: var(--accent-pink); }
.site-footer-glob .btn-yellow { background: var(--accent-yellow); }
.site-footer-glob .btn-blue { background: var(--accent-blue); }

.site-footer-glob .social-icon {
    width: 24px;
    height: 24px;
}

/* Category Links List */
.site-footer-glob .footer-links {
    list-style: none;
    display: flex;
    /*flex-direction: column;*/
    flex-wrap: wrap;
    gap: 12px;
}

.site-footer-glob .footer-links a {
    color: var(--accent-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.site-footer-glob .footer-links a:hover {
    color: var(--accent-yellow);
    transform: translateX(6px);
}

/* Tag Cloud */
.site-footer-glob .tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.site-footer-glob .game-tag {
    background: var(--tag-bg);
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
    box-shadow: 3px 3px 0px var(--text-dark);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.site-footer-glob .game-tag:hover {
    background: var(--accent-pink);
    color: var(--accent-white);
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px var(--text-dark);
}

/* Newsletter Form */
.site-footer-glob .newsletter-desc {
    font-size: 14px;
    color: #F3E8FF;
    margin-bottom: 14px;
    font-weight: 500;
}

.site-footer-glob .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer-glob .newsletter-input {
    width: 100%;
    padding: 12px 16px;
    border: var(--game-border);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    outline: none;
    background: var(--accent-white);
    color: var(--text-dark);
    box-shadow: 4px 4px 0px var(--text-dark);
}

.site-footer-glob .newsletter-input::placeholder {
    color: #888;
    font-weight: 600;
}

.site-footer-glob .newsletter-btn {
    background: var(--accent-pink);
    color: var(--accent-white);
    border: var(--game-border);
    box-shadow: 4px 4px 0px var(--text-dark);
    border-radius: 12px;
    padding: 12px;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    letter-spacing: 1px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    -webkit-user-select: none; /* Safari / Chrome 旧版本 */
    -moz-user-select: none;    /* Firefox 旧版本 */
    -ms-user-select: none;     /* IE / Edge 旧版本 */
    user-select: none;
}

.site-footer-glob .newsletter-btn:hover {
    background: #FF33B1;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--text-dark);
}

.site-footer-glob .newsletter-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--text-dark);
}

/* Divider */
.site-footer-glob .footer-divider {
    height: 4px;
    background: var(--text-dark);
    margin: 40px 0 24px 0;
    border-radius: 2px;
}

/* Footer Bottom Legal */
.site-footer-glob .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    font-weight: 600;
}

.site-footer-glob .legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.site-footer-glob .legal-links a {
    color: #F3E8FF;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.site-footer-glob .legal-links a:hover {
    color: var(--accent-yellow);
    text-decoration: underline;
}

.site-footer-glob .legal-separator {
    color: var(--accent-pink);
    font-weight: 900;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.site-footer-glob .legal-separator::before {
    content: "•";
}

.site-footer-glob .copyright-text {
    color: var(--accent-white);
}

.site-footer-glob .brand-highlight {
    color: var(--accent-yellow);
}

/* ==================== ANIMATIONS ==================== */
@keyframes wiggle {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

.site-footer-glob .wiggle-anim {
    animation: wiggle 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.site-footer-glob .pulse-anim {
    animation: pulse 2.5s infinite ease-in-out;
}

.site-footer-glob .pulse-anim:hover {
    animation: none;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 992px) {
    .site-footer-glob .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .site-footer-glob .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .site-footer-glob .footer-middle-group {
        display: flex;
        flex-direction: row;
        gap: 20px;
    }

    .site-footer-glob .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}