/* Ancient Beast MVP Game Site - Custom CSS */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1e1e2e;
}

::-webkit-scrollbar-thumb {
    background: #6b21a8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7e22ce;
}

/* Game Container Aspect Ratio */
.aspect-w-16 {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

.aspect-w-16 > * {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Custom Animations */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 10px 0 rgba(107, 33, 168, 0.5);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(107, 33, 168, 0.8);
    }
}

.pulse-effect {
    animation: pulse-glow 2s infinite;
}

/* Custom Focus Styles */
a:focus, button:focus {
    outline: 2px solid #6b21a8;
    outline-offset: 2px;
}

/* Game Frame Loading Styles */
#game-frame.loading {
    background: #0f172a url('../images/loading.gif') no-repeat center center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

/* Hover Effects for Cards */
.unit-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.unit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(107, 33, 168, 0.4);
}

/* Button Styles */
.btn-primary {
    background-color: #6b21a8;
}

/* Utility Classes */
.hidden {
    display: none !important;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #7e22ce;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Custom Link Underline Animation */
.animated-link {
    position: relative;
    text-decoration: none;
}

.animated-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #6b21a8;
    transition: width 0.3s ease;
}

.animated-link:hover::after {
    width: 100%;
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Print Styles */
@media print {
    body {
        background-color: white;
        color: black;
    }
    
    .no-print {
        display: none;
    }
}
