:root {
    --primary-color: #D4AF37;
    /* Vàng gold đậm */
    --secondary-color: #FFD700;
    /* Vàng gold sáng */
    --accent-color: #FFA500;
    /* Cam vàng */
    --bg-dark: #FFF8DC;
    /* Nền sáng kem vàng */
    --bg-card: #FFFAED;
    /* Card trắng kem */
    --text-dark: #2c1810;
    /* Text nâu đậm */
    --text-grey: #6b5d4f;
    /* Text nâu nhạt */
    font-family: 'gotham-svn-light', sans-serif;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* --- Custom Utilities --- */
.text-neon {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.bg-game-card {
    background-color: var(--bg-card);
    border: 2px solid #D4AF37;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
    margin-bottom: 30px;
}

/* --- Navbar --- */
.navbar {
    background: rgba(255, 248, 220, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #D4AF37;
}

.nav-link {
    color: #2c1810 !important;
    font-weight: 600;
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    text-shadow: 0 0 8px var(--primary-color);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 80vh;
    background: url('../img/banner.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    text-shadow: 0 0 20px var(--primary-color);
}

.button-banner {
    position: absolute;
    width: 100%;
    top: 240px;
}

/* Animation nổi đồ vật */
.floating-item {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* --- News Section --- */
.news-thumb {
    height: 120px;
    object-fit: cover;
    border: 2px solid #D4AF37;
    transition: transform 0.3s;
}

.news-item:hover .news-thumb {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.badge-cat {
    background: var(--accent-color);
    font-size: 0.8rem;
}

/* --- Guild Battle --- */
.guild-card {
    background: linear-gradient(180deg, #FFFAED 0%, #FFF8DC 100%);
    border: 2px solid #D4AF37;
    transition: 0.3s;
}

.guild-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.guild-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* --- Ranking --- */
.rank-list .list-group-item {
    background: transparent;
    color: var(--text-dark);
    border: none;
    border-bottom: 2px solid #D4AF37;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.rank-badge {
    width: 25px;
    height: 25px;
    background: #333;
    text-align: center;
    line-height: 25px;
    border-radius: 3px;
    font-weight: bold;
    margin-right: 10px;
}

.rank-1 {
    background: #ffd700;
    color: black;
}

.rank-2 {
    background: #c0c0c0;
    color: black;
}

.rank-3 {
    background: #cd7f32;
    color: black;
}

/* --- Guides --- */
.guide-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.guide-card img {
    width: 100%;
    transition: 0.5s;
}

.guide-card:hover img {
    transform: scale(1.1);
    opacity: 0.6;
}

.play-icon {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    opacity: 0;
    transition: 0.3s;
}

.guide-card:hover .play-icon {
    opacity: 1;
}

/* --- Footer --- */
footer {
    border-top: 2px solid var(--secondary-color);
    background: var(--bg-card);
    padding: 50px 0;
    font-size: 0.9rem;
    color: var(--text-grey);
}

.footer-links a {
    color: var(--text-grey);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

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

@media screen and (max-width: 768px) {
    .hero {
        margin-top: 60px;
    }
}

.news-item .news-thumb {
    z-index: 10;
}

.news-item .line {
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #FFD700 40%, #FF8C00 100%);
    margin: 10px 0;
}

.news-item span {
    color: #686d7c;
}

.news-item .show-more {
    text-decoration: none;
}

.submenu-user {
    animation: slideDownFadeIn 0.3s ease-out;
    transform-origin: top right;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    min-width: 280px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 10px;
}

@keyframes slideDownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.submenu-user .dropdown-item {
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
}

.submenu-user .dropdown-item:hover {
    background-color: #f0f0f0;
    transform: translateX(5px);
    padding-left: 1.25rem;
}

.submenu-user .dropdown-item i {
    transition: transform 0.2s ease;
    width: 20px;
    text-align: center;
}

.submenu-user .dropdown-item:hover i {
    transform: scale(1.1);
}

.submenu-user .dropdown-divider {
    margin: 0.5rem 0;
    opacity: 0.3;
    transition: opacity 0.2s ease;
}

.submenu-user:hover .dropdown-divider {
    opacity: 0.5;
}

#userDropdown {
    transition: transform 0.2s ease;
}

#userDropdown:hover {
    transform: scale(1.05);
}

#userDropdown .rounded-circle {
    transition: box-shadow 0.3s ease;
}

#userDropdown:hover .rounded-circle {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.submenu-user li:first-child {
    animation: fadeIn 0.4s ease-out 0.1s both;
}

.submenu-user li:not(:first-child) {
    animation: fadeIn 0.4s ease-out 0.2s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.nav-tabs .nav-link {
    border: none;
    color: #aaa;
    background: transparent;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background: transparent;
    border-color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.nav-tabs {
    border-bottom: 1px solid #444;
}

.form-control.bg-secondary::placeholder {
    color: #999;
}

.form-control.bg-secondary:focus {
    background-color: #333 !important;
    border-color: var(--primary-color);
    color: white;
}

.text-snow {
    color: var(--text-dark);
}

/* Gradient Buttons */
.btn-gradient-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: none;
    color: #2c1810;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gradient-gold:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    color: #2c1810;
}

.btn-gradient-gold:active {
    transform: translateY(0) scale(1);
}

.btn-gradient-amber {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: 2px solid #D4AF37;
    color: #2c1810;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 46px;
}

.btn-gradient-amber:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
    border-color: #FFD700;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    color: #2c1810;
}

.btn-gradient-amber:active {
    transform: translateY(0) scale(1);
}

/* --- Pagination Custom --- */
.pagination {
    margin-top: 20px;
    justify-content: center;
}

.page-item .page-link {
    background-color: transparent;
    border: 1px solid #D4AF37;
    color: #2c1810;
    margin: 0 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-color: #D4AF37;
    color: #2c1810;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.page-item .page-link:hover {
    background-color: rgba(212, 175, 55, 0.2);
    color: #2c1810;
    transform: translateY(-2px);
    border-color: #FFA500;
}

.page-item.disabled .page-link {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: #ccc;
    color: #999;
}