/* Fallback fonts */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    background-color: #FFF6E2;
    /* Ensure background color is applied */
}

/* Fix missing background images */
/* .navigation-Decor-background .background {
    background: linear-gradient(to bottom, #2c1e12, #4a3b2a);
} */

.news-article-card-Decor-background .preview__image {
    background: linear-gradient(45deg, #3a2a1a, #5a4a3a);
    width: 100%;
    height: 100%;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    width: 100%;
    height: auto !important;
    /* Override the 630px fixed height from style.css */
}

/* Fix header visibility */
.server-select,
.news-categories {
    padding: 20px;
}

/* Navigation styling fixes */
/* .navigation-Inner {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
} */

/* Button styles if missing */
.button-paginate {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* 新功能介绍 - 流光渐变 + NEW徽标 */
.navigation-links .nav-link:last-child {
    position: relative;
    transition: transform 0.2s ease;
}

.navigation-links .nav-link:last-child:hover {
    transform: scale(1.08);
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.navigation-links .nav-link:last-child .nav-link__text {
    background: linear-gradient(90deg, #c0392b, #e74c3c, #f39c12, #e74c3c, #c0392b);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 2.5s linear infinite;
    font-weight: bold;
}

.navigation-links .nav-link:last-child .nav-link__icon path {
    fill: #e74c3c !important;
}

/* NEW 徽标 */
.navigation-links .nav-link:last-child::after {
    content: 'NEW';
    position: absolute;
    top: -8px;
    right: -28px;
    background: #e03a1e;
    color: white;
    font-size: 9px;
    font-weight: bold;
    padding: 1px 5px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    animation: badge-pulse 1.5s ease-in-out infinite;
}

@keyframes badge-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.12);
    }
}

/* Fix fixed height constraint that squeezes news + pagination into 730px */
.app[data-page="news"] .content-section-Inner,
.app[data-page="news"] .content-section-Wrapper {
    height: auto !important;
    min-height: 0 !important;
}

/* Fix pagination layout */
.news {
    width: 100%;
}

#pagination {
    width: 100%;
    clear: both;
    padding-top: 20px;
    margin-top: 20px;
}

/* Fix Hero section positioning on remote server */
.hero {
    margin-top: 10vh !important;
}

/* Online Badge in Hero Banner */
.badge-online-banner {
    background: linear-gradient(90deg, rgba(82, 179, 75, 0.8), rgba(46, 204, 113, 0.8)) !important;
    color: white !important;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
    animation: pulse-online 2s infinite;
}

.badge-online-banner span {
    color: #FFF !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@keyframes pulse-online {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

/* Override news article card styles to make it a static info card */
.news-article-card[data-template="2"],
.news-article-card[data-template="2"]:hover {
    cursor: default !important;
    filter: none !important;
    transform: none !important;
    animation: none !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 280px !important;
    background: rgba(43, 27, 14, 0.9) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
}

/* Hide original background/border decor to avoid conflicts */
.news-article-card[data-template="2"] .decor-element {
    display: none !important;
}

.news-article-card[data-template="2"][data-highlighted] {
    animation: none !important;
    border: 1px solid rgba(255, 160, 110, 0.5) !important;
}

.news-article-card[data-template="2"] .news-article-card-Inner {
    background: transparent !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    padding: 20px !important;
    height: 100% !important;
}

/* Make badges flow in normal layout instead of absolute positioning */
.news-article-card[data-template="2"] .news-article-card-badges {
    position: static !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 15px !important;
    width: 100% !important;
}

.news-article-card[data-template="2"] .news-article-card__title {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.news-article-card[data-template="2"] .news-article-card__description {
    color: #f0e6d2 !important;
    font-size: 14px !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px !important;
}

/* Move 'hero-news' (server info card) to the top right of the hero section */
/* Override the original: overflow:hidden, width:820px, display:none, translate-x:200px */
.hero-news {
    position: absolute !important;
    top: 100px !important;
    right: 350px !important;
    bottom: auto !important;
    z-index: 9999 !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
}

.hero-news-Wrapper {
    --tw-translate-x: 0px !important;
    transform: none !important;
    transition: none !important;
    padding-right: 0 !important;
    justify-content: flex-end !important;
}

.hero-news-Wrapper:hover {
    --tw-translate-x: 0px !important;
    transform: none !important;
}

.hero-news-Wrapper:hover> :not(:hover) {
    opacity: 1 !important;
    filter: none !important;
}