/* ============================================
   翡翠岭高尔夫俱乐部 - Custom Styles
   ============================================ */

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(201, 169, 110, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 169, 110, 0.4);
}

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

/* Date input styling for dark theme */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7);
    cursor: pointer;
}

/* Select arrow styling */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c9a96e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

/* Hero entrance animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-animate {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero-animate:nth-child(1) { animation-delay: 0.3s; }
.hero-animate:nth-child(2) { animation-delay: 0.5s; }
.hero-animate:nth-child(3) { animation-delay: 0.7s; }
.hero-animate:nth-child(4) { animation-delay: 0.9s; }

/* Nav link underline effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #c9a96e;
    transition: width 0.4s ease;
}

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

/* Gold divider line animation */
@keyframes expandLine {
    from { width: 0; }
    to { width: 4rem; }
}

/* FAQ content transition */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 0;
}

.faq-content.open {
    max-height: 300px;
    padding-bottom: 1.5rem;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 1px solid #c9a96e;
    outline-offset: 2px;
}

/* Image loading placeholder */
img {
    background-color: #2d2d2d;
}
