/* Gaming Controller Button Theming */

/* Custom gaming button styles inspired by game controllers */
.btn-gaming {
    position: relative;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.15s ease;
    border: 2px solid;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Primary Gaming Button (like A button - green) */
.btn-gaming-primary {
    background: linear-gradient(145deg, #4CAF50, #388E3C);
    border-color: #2E7D32;
    color: white;
    position: relative;
}

.btn-gaming-primary:hover {
    background: linear-gradient(145deg, #66BB6A, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(76, 175, 80, 0.4);
}

.btn-gaming-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Secondary Gaming Button (like B button - red) */
.btn-gaming-secondary {
    background: linear-gradient(145deg, #F44336, #C62828);
    border-color: #B71C1C;
    color: white;
}

.btn-gaming-secondary:hover {
    background: linear-gradient(145deg, #EF5350, #F44336);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(244, 67, 54, 0.4);
}

/* Info Gaming Button (like X button - blue) */
.btn-gaming-info {
    background: linear-gradient(145deg, #2196F3, #1565C0);
    border-color: #0D47A1;
    color: white;
}

.btn-gaming-info:hover {
    background: linear-gradient(145deg, #42A5F5, #2196F3);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(33, 150, 243, 0.4);
}

/* Warning Gaming Button (like Y button - yellow) */
.btn-gaming-warning {
    background: linear-gradient(145deg, #FF9800, #F57C00);
    border-color: #E65100;
    color: white;
}

.btn-gaming-warning:hover {
    background: linear-gradient(145deg, #FFB74D, #FF9800);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 152, 0, 0.4);
}

/* Gaming D-Pad Style Button */
.btn-dpad {
    position: relative;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #424242, #212121);
    border: 2px solid #757575;
    color: #fff;
    transition: all 0.15s ease;
}

.btn-dpad:hover {
    background: linear-gradient(145deg, #616161, #424242);
    transform: scale(1.05);
}

.btn-dpad:active {
    background: linear-gradient(145deg, #212121, #000);
    transform: scale(0.95);
}

/* Gaming button size modifiers */
.btn-gaming-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 8px;
}

.btn-gaming-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    border-radius: 16px;
}

/* Add controller button symbols */
.btn-gaming-primary::before {
    content: "A";
    position: absolute;
    top: -8px;
    right: -8px;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: #4CAF50;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #4CAF50;
}

.btn-gaming-secondary::before {
    content: "B";
    position: absolute;
    top: -8px;
    right: -8px;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: #F44336;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #F44336;
}

.btn-gaming-info::before {
    content: "X";
    position: absolute;
    top: -8px;
    right: -8px;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: #2196F3;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #2196F3;
}

.btn-gaming-warning::before {
    content: "Y";
    position: absolute;
    top: -8px;
    right: -8px;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: #FF9800;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #FF9800;
}

/* Gaming-themed form controls */
.form-control-gaming {
    border-radius: 8px;
    border: 2px solid #424242;
    background: rgba(33, 37, 41, 0.8);
    color: #fff;
    transition: all 0.15s ease;
}

.form-control-gaming:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
    background: rgba(33, 37, 41, 1);
}

/* Gaming-themed cards */
.card-gaming {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 2px solid #404040;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.card-gaming:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
    border-color: #4CAF50;
}

/* Gaming-themed badges */
.badge-gaming {
    background: linear-gradient(145deg, #4CAF50, #388E3C);
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Neon glow effect for special buttons */
.btn-neon {
    position: relative;
    background: transparent;
    border: 2px solid #00ff41;
    color: #00ff41;
    text-shadow: 0 0 10px #00ff41;
    box-shadow: 
        inset 0 0 10px rgba(0, 255, 65, 0.1),
        0 0 20px rgba(0, 255, 65, 0.2);
    transition: all 0.3s ease;
}

.btn-neon:hover {
    background: rgba(0, 255, 65, 0.1);
    color: #00ff41;
    text-shadow: 0 0 15px #00ff41;
    box-shadow: 
        inset 0 0 20px rgba(0, 255, 65, 0.2),
        0 0 30px rgba(0, 255, 65, 0.4),
        0 0 40px rgba(0, 255, 65, 0.2);
}

/* Purple/Pink vaporwave theme buttons to match logo */
.btn-vaporwave {
    background: linear-gradient(145deg, #FF00FF, #8000FF);
    border: 2px solid #FF00FF;
    color: white;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 0 20px rgba(255, 0, 255, 0.3),
        inset 0 0 20px rgba(255, 0, 255, 0.1);
    transition: all 0.3s ease;
}

.btn-vaporwave:hover {
    background: linear-gradient(145deg, #FF40FF, #A040FF);
    color: white;
    transform: translateY(-2px);
    box-shadow: 
        0 0 30px rgba(255, 0, 255, 0.5),
        0 8px 16px rgba(255, 0, 255, 0.3),
        inset 0 0 20px rgba(255, 0, 255, 0.2);
}

/* Cyan accent for vaporwave theme */
.btn-vaporwave-cyan {
    background: linear-gradient(145deg, #00FFFF, #0080FF);
    border: 2px solid #00FFFF;
    color: #000;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.3),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.btn-vaporwave-cyan:hover {
    background: linear-gradient(145deg, #40FFFF, #40A0FF);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.5),
        0 8px 16px rgba(0, 255, 255, 0.3),
        inset 0 0 20px rgba(0, 255, 255, 0.2);
}

/* Animated Vaporwave Gaming Background */
.vaporwave-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(180deg, 
        rgba(16, 16, 32, 0.05) 0%, 
        rgba(24, 16, 48, 0.05) 50%, 
        rgba(16, 16, 32, 0.05) 100%);
}

.gaming-particle {
    position: absolute;
    opacity: 0.1;
    animation: floatUp 15s linear infinite;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    pointer-events: none;
    text-shadow: 0 0 10px currentColor;
    will-change: transform, opacity;
}

/* Button particles */
.gaming-particle.btn-a {
    color: #4CAF50;
    font-size: 24px;
    animation-delay: 0s;
}

.gaming-particle.btn-b {
    color: #F44336;
    font-size: 24px;
    animation-delay: -3s;
}

.gaming-particle.btn-x {
    color: #2196F3;
    font-size: 24px;
    animation-delay: -6s;
}

.gaming-particle.btn-y {
    color: #FF9800;
    font-size: 24px;
    animation-delay: -9s;
}

/* Controller particles */
.gaming-particle.controller {
    color: #FF00FF;
    font-size: 20px;
    animation-delay: -2s;
}

.gaming-particle.controller-alt {
    color: #00FFFF;
    font-size: 18px;
    animation-delay: -5s;
}

/* Rocket ship particles */
.gaming-particle.rocket {
    color: #FF40FF;
    font-size: 16px;
    animation-delay: -1s;
}

.gaming-particle.rocket-alt {
    color: #40FFFF;
    font-size: 18px;
    animation-delay: -7s;
}

/* Gaming symbols */
.gaming-particle.symbol {
    color: #8000FF;
    font-size: 14px;
    animation-delay: -4s;
}

.gaming-particle.symbol-alt {
    color: #00FF80;
    font-size: 16px;
    animation-delay: -8s;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.15;
    }
    90% {
        opacity: 0.15;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Ensure main content is above background */
main, footer, .container {
    position: relative;
    z-index: 10;
}

/* Ensure navigation is always on top */
.navbar {
    position: relative;
    z-index: 1050 !important;
}

/* Bootstrap dropdown menus need highest z-index */
.dropdown-menu {
    z-index: 1060 !important;
}

.navbar .dropdown-menu {
    z-index: 1060 !important;
}

/* Navbar dropdowns and toggles */
.navbar-nav .nav-link,
.navbar-nav .dropdown-toggle {
    position: relative;
    z-index: 1055 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gaming-particle {
        font-size: 80%;
        opacity: 0.08;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gaming-particle {
        animation: none;
        display: none;
    }
}