.text-bronze {
    color: #CD7F32;
}

.text-silver {
    color: #C0C0C0;
}

.text-gold {
    color: #FFD700;
}

.text-vip {
    color: var(--color-primary);
}

.bg-bronze {
    background-color: #CD7F32;
}

.bg-silver {
    background-color: #C0C0C0;
}

.bg-gold {
    background-color: #FFD700;
}

.bg-vip {
    background-color: var(--color-primary);
}

/* Hover effects */
.hover\:bg-bronze\/80:hover {
    background-color: rgba(205, 127, 50, 0.8);
}

.hover\:bg-silver\/80:hover {
    background-color: rgba(192, 192, 192, 0.8);
}

.hover\:bg-gold\/80:hover {
    background-color: rgba(255, 215, 0, 0.8);
}

.hover\:bg-vip\/80:hover {
    background-color: rgba(101, 38, 50, 0.8);
}

/* Swiper styles */
.swiper {
    width: 100%;
    border-radius: 0.5rem;
    background-color: var(--color-background); /* bg-gray-900 */
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.swiper-slide img {
    transition: transform 0.3s ease;
}

.swiper-slide:hover img {
    transform: scale(1.05);
}

.swiper-pagination-bullet {
    background: #fff !important;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* Navbar styles */
.animate-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

nav {
    backdrop-filter: blur(8px);
    background-color: rgba(33, 16, 17, 0.95);
}

/* Footer styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--color-background);
    position: relative;
}

/* Global background image (subtle) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('/images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.10;
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

footer {
    background-color: var(--color-background);
    position: relative;
    z-index: 2;
    margin-top: auto;
    border-top: 1px solid rgba(174, 149, 148, 0.1);
}

footer a:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

.footer-server-row {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.footer-server-row::-webkit-scrollbar {
    height: 8px;
}

.footer-server-row::-webkit-scrollbar-thumb {
    background: rgba(174, 149, 148, 0.35);
    border-radius: 999px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

/* User menu styles */
.steam-avatar {
    transition: transform 0.2s ease;
}

.steam-avatar:hover {
    transform: scale(1.1);
}

.user-menu {
    backdrop-filter: blur(8px);
    background-color: rgba(31, 41, 55, 0.95);
}

/* Notification styles */
.fixed.top-4.right-4 {
    animation: slideIn 0.5s ease-out;
    transition: opacity 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fixed.top-4.right-4.hiding {
    opacity: 0;
}

/* Mobile menu styles */
#mobile-menu {
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#mobile-menu-button {
    transition: transform 0.2s ease;
}

#mobile-menu-button:hover {
    transform: scale(1.1);
}

/* Adjust container padding for mobile */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Color definitions */
:root {
    --color-primary: #652632;
    --color-light: #DCCABC;
    --color-accent: #AE9594;
    --color-interactive: #5C4A4C;
    --color-background: #211011;
}

/* Background colors */
.bg-gray-800 {
    background-color: rgba(33, 16, 17, 0.95) !important;
}

.bg-gray-700 {
    background-color: var(--color-interactive) !important;
}

.bg-gray-900 {
    background-color: var(--color-background) !important;
}

/* Text colors */
.text-gray-400 {
    color: var(--color-light) !important;
}

.text-gray-200 {
    color: var(--color-light) !important;
}

/* Hover states */
.hover\:text-vip:hover {
    color: var(--color-accent) !important;
}

.hover\:bg-gray-600:hover {
    background-color: var(--color-interactive) !important;
}

/* Status colors */
.bg-green-500 {
    background-color: var(--color-primary) !important;
}

.text-green-500 {
    color: var(--color-accent) !important;
}

.bg-red-500 {
    background-color: var(--color-interactive) !important;
}

/* Background styling */
.main-bg {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 64px - 400px);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.main-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100vh;
    background-image: url('../images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.main-bg > * {
    position: relative;
    z-index: 1;
}

/* Package card styling */
.package-card {
    background: rgba(33, 16, 17, 0.97);  /* Darker, more opaque background */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);  /* Deeper shadow */
    backdrop-filter: blur(12px);  /* Increased blur */
    border: 1px solid rgba(174, 149, 148, 0.1);  /* Subtle border using accent color */
    transform: translateZ(0);  /* Force GPU acceleration */
    transition: all 0.3s ease;
}

.package-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* Player hover cards */
.player-hover {
    position: relative;
}

.player-hovercard {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 0.5rem;
    width: 20rem;
    max-width: 90vw;
    background: rgba(33, 16, 17, 0.98);
    border: 1px solid rgba(174, 149, 148, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    padding: 0.75rem;
    z-index: 50;
}

.player-hover:hover .player-hovercard,
.player-hover:focus-within .player-hovercard {
    display: block;
}

.player-hovercard mark {
    background: rgba(101, 38, 50, 0.35);
    color: inherit;
    padding: 0 0.15rem;
    border-radius: 0.25rem;
}

/* Package container */
.package-container {
    width: 100%;
    max-width: 72rem;
    padding: 0 1rem;
    margin: 2rem auto;
    z-index: 1;
    position: relative;
}
