/* Custom styles for Ye Olde Hair Shed */

/* Smooth focus outlines */
*:focus-visible {
    outline: 2px solid #C9A962;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: rgba(201, 169, 98, 0.3);
    color: #faf5eb;
}

/* Custom underline animation for links */
a.hover-underline {
    position: relative;
}
a.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #C9A962;
    transition: width 0.3s ease;
}
a.hover-underline:hover::after {
    width: 100%;
}

/* Subtle grain texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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)'/%3E%3C/svg%3E");
}

/* Gradient text utility */
.text-gradient-gold {
    background: linear-gradient(135deg, #C9A962, #e2c06a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animated gradient border */
.gradient-border {
    position: relative;
    background: #1C1917;
    border-radius: 4px;
}
.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 4px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(201,169,98,0.4), transparent, rgba(201,169,98,0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Loading shimmer for images */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Pulse animation for scroll indicator */
@keyframes pulse-gold {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* Gold line animation */
@keyframes gold-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Counter animation */
@keyframes count-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Parallax helper */
.parallax-slow {
    will-change: transform;
}

/* Mobile menu link transitions */
.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #C9A962;
    transition: width 0.3s ease;
}
.mobile-link:hover::after {
    width: 100%;
}

/* Image lazy load placeholder */
img[data-src] {
    background: #1C1917;
    min-height: 200px;
}
