/* Custom styles for Wall 2 Wall Sports Cards */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf8f4;
}
::-webkit-scrollbar-thumb {
    background: #b9dfb9;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #85c485;
}

/* Selection color */
::selection {
    background: #dcefdc;
    color: #1c4c1c;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-reveal="hidden"] {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(45, 125, 45, 0.08);
}

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

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

/* Image hover effects */
img {
    max-width: 100%;
    height: auto;
}

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

/* Form styles (for future use) */
input, textarea {
    font-family: inherit;
}

/* Print styles */
@media print {
    #navbar, .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    section {
        page-break-inside: avoid;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2.5rem;
        line-height: 1.15;
    }
}

/* Ensure cards section images don't overflow */
.group.relative img {
    will-change: transform;
}

/* Subtle pattern overlay for sections */
.bg-forest-50 {
    background-image: radial-gradient(circle at 1px 1px, rgba(45, 125, 45, 0.04) 1px, transparent 0);
    background-size: 24px 24px;
}
