:root {
    --primary-gradient: linear-gradient(135deg, #da4d4d 0%, #f8a04d 50%, #fdcf47 100%);
    --dark-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --gold-gradient: linear-gradient(135deg, #fdcf47 0%, #f8a04d 100%);
    --bg-dark: #0f0f1e;
    --bg-darker: #0a0a15;
    --text-primary: #ffffff;
    --text-secondary: #b8b8d1;
    --accent-purple: #da4d4d;
    --accent-gold: #fdcf47;
    --accent-cyan: #f8a04d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: url('/images/bg.jpg') center center / cover no-repeat fixed;
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 21, 0.45),
                radial-gradient(circle at 20% 50%, rgba(218, 77, 77, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(248, 160, 77, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(253, 207, 71, 0.07) 0%, transparent 50%);
    z-index: -2;
    animation: floatBackground 20s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(2px 2px at 20% 30%, white, transparent),
                      radial-gradient(2px 2px at 60% 70%, white, transparent),
                      radial-gradient(1px 1px at 50% 50%, white, transparent);
    background-size: 200px 200px;
    opacity: 0.03;
    z-index: -1;
    animation: particlesFloat 40s linear infinite;
}

@keyframes floatBackground {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33%       { transform: translate(-20px, -20px) rotate(1deg); }
    66%       { transform: translate(20px, -10px) rotate(-1deg); }
}

@keyframes particlesFloat {
    from { transform: translateY(0); }
    to   { transform: translateY(-100vh); }
}

/* ── Navbar ── */
.navbar-custom {
    background: linear-gradient(135deg, rgba(26, 14, 14, 0.95) 0%, rgba(35, 18, 10, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(253, 207, 71, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.navbar-brand-custom {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.navbar-brand-custom:hover { transform: scale(1.05); }

.navbar-brand-custom::before {
    content: '⚔️';
    margin-right: 10px;
    font-size: 1.5rem;
    animation: swordPulse 2s ease-in-out infinite;
}

@keyframes swordPulse {
    0%, 100% { transform: rotate(-5deg) scale(1); }
    50%       { transform: rotate(5deg) scale(1.1); }
}

.nav-link-custom {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 1.1rem;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link-custom:hover {
    color: var(--accent-gold) !important;
    background: rgba(253, 207, 71, 0.1);
    transform: translateY(-2px);
}

.nav-link-custom:hover::after { width: 80%; }

/* ── User Menu ── */
.user-menu {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-cyan) 100%);
    padding: 0.4rem 1.2rem;
    border-radius: 25px;
    color: white !important;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(218, 77, 77, 0.3);
}

.user-menu:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(218, 77, 77, 0.5);
}

.dropdown-menu-custom {
    background: linear-gradient(135deg, rgba(26, 14, 14, 0.98) 0%, rgba(35, 18, 10, 0.98) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(253, 207, 71, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    margin-top: 0.5rem;
    animation: fadeInDown 0.3s ease;
}

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

.dropdown-item-custom {
    color: var(--text-secondary);
    padding: 0.7rem 1.5rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-item-custom:hover {
    background: rgba(253, 207, 71, 0.1);
    color: var(--accent-gold);
    border-left-color: var(--accent-gold);
    padding-left: 2rem;
}

.dropdown-item-custom i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* ── Main Content ── */
.main-container {
    min-height: calc(100vh - 200px);
    padding: 15rem 0;
    position: relative;
    z-index: 1;
}

/* ── Footer ── */
.footer-custom {
    background: linear-gradient(135deg, rgba(26, 14, 14, 0.95) 0%, rgba(35, 18, 10, 0.95) 100%);
    border-top: 2px solid rgba(253, 207, 71, 0.3);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), var(--accent-cyan), var(--accent-gold), transparent);
    animation: footerGlow 3s linear infinite;
}

@keyframes footerGlow {
    from { transform: translateX(-100%); }
    to   { transform: translateX(100%); }
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h5 {
    color: var(--accent-gold);
    font-family: 'Orbitron', monospace;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-cyan) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 5px 20px rgba(218, 77, 77, 0.5);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* ── Login Button ── */
.btn-login {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-purple) 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(253, 207, 71, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(253, 207, 71, 0.5);
    color: white;
}

/* ── Servidor Online pulse ── */
@keyframes pulse {
    0%   { opacity: 1; }
    50%  { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-darker); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-cyan) 100%);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
}

/* ── Navbar toggler (hambúrguer mobile) ── */
.custom-toggler {
    border: 2px solid rgba(253, 207, 71, 0.5);
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    background: rgba(253, 207, 71, 0.08);
    transition: all 0.2s;
}

.custom-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(253, 207, 71, 0.25);
    outline: none;
}

.custom-toggler:hover {
    background: rgba(253, 207, 71, 0.18);
    border-color: rgba(253, 207, 71, 0.9);
}

.custom-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(253,207,71,0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Menu colapsado no mobile */
@media (max-width: 991px) {
    .navbar-collapse {
        background: linear-gradient(135deg, rgba(26, 14, 14, 0.98), rgba(15, 8, 8, 0.98));
        border: 1px solid rgba(253, 207, 71, 0.2);
        border-radius: 12px;
        padding: 12px 16px;
        margin-top: 10px;
    }

    .navbar-nav.mx-auto {
        align-items: flex-start;
    }

    .nav-link-custom {
        padding: 0.6rem 0.8rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        width: 100%;
    }

    .navbar-nav:last-child {
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid rgba(253, 207, 71, 0.15);
        width: 100%;
    }

    .user-menu { width: 100%; justify-content: center; }
    .btn-login { width: 100%; justify-content: center; }
    .dropdown-menu-custom { position: static !important; transform: none !important; width: 100%; margin-top: 4px; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    

    .navbar-brand-custom { font-size: 1.3rem; }
    .nav-link-custom { font-size: 0.9rem; margin: 0.2rem; }
    .footer-content { flex-direction: column; align-items: center; text-align: center; }
}
