/* Custom styles for Fallout Shelter Comics and Collectibles */

/* Smooth scrolling already handled in HTML */

/* Selection color */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: #fff;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Subtle grain overlay for hero */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* Stat card float animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.stat-card:nth-child(1) {
    animation: float 4s ease-in-out infinite;
}
.stat-card:nth-child(2) {
    animation: float 4s ease-in-out infinite 0.5s;
}
.stat-card:nth-child(3) {
    animation: float 4s ease-in-out infinite 1s;
}

/* Button ripple on hover */
.gold-gradient {
    position: relative;
    overflow: hidden;
}

.gold-gradient::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gold-gradient:hover::after {
    opacity: 1;
}

/* Image lazy fade */
img {
    transition: opacity 0.3s ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .stat-card {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}
