/* ============================================
   SHOWCASE CSS - Tennis- en Padelschool Jan de Jong
   Animaciones, glassmorphism, efectos custom
   ============================================ */

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

body {
    overflow-x: hidden;
}

/* ---- Scrollbar Custom ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #171717;
}
::-webkit-scrollbar-thumb {
    background: #F97316;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #EA580C;
}

/* ---- Navbar ---- */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(23, 23, 23, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid #F97316;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.7);
}

#navbar.scrolled .nav-link:hover {
    color: #F97316;
}

/* ---- Glassmorphism Cards ---- */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card-light {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* ---- Service Card Bottom Border Hover ---- */
.service-card {
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-bottom-color: #F97316;
    background: rgba(255, 255, 255, 0.08);
}

/* ---- Section Pattern ---- */
.section-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(249, 115, 22, 0.05) 1px, transparent 0);
    background-size: 40px 40px;
}

/* ---- Bento Puzzle Grid ---- */
#bento-grid {
    grid-auto-rows: minmax(160px, auto);
}

.bento-loc {
    min-height: 160px;
    will-change: transform;
}

.bento-loc-featured {
    border-width: 2px;
}

.bento-loc:not(.bento-loc-featured):hover .bento-loc-small {
    transform: scale(1.05);
}

/* Hide "Binnenkort" badge on small card when featured */
.bento-loc-featured .bento-loc-small .animate-pulse {
    display: none;
}

/* ---- Mosaic Card ---- */
.bento-mosaic {
    min-height: 160px;
}

.mosaic-tile {
    will-change: transform;
    position: relative;
}

.mosaic-tile img {
    transition: transform 0.5s ease;
}

.bento-mosaic:hover .mosaic-tile img {
    transform: scale(1.05);
}

/* ---- Location Accordion ---- */
.loc-accordion-item {
    transition: border-color 0.3s ease;
}
.loc-accordion-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ---- Location Map ---- */
#loc-map .leaflet-tile-pane {
    filter: brightness(1.6) contrast(0.9);
}

/* ---- Pulse Glow (Meest Gekozen Badge) ---- */
.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* ---- Subscription Card Gradient Border ---- */
.subscription-card {
    position: relative;
}

.gradient-border-animated {
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 2px;
    background: conic-gradient(from var(--angle, 0deg), #F97316, #EA580C, #F97316, #FBBF24, #F97316);
    animation: gradient-rotate 4s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* ---- Animations ---- */

/* Animate on scroll - initial state */
[data-animate] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: none !important;
}

/* Directional animations */
[data-animate="fadeInUp"] {
    transform: translateY(40px);
}

[data-animate="fadeInDown"] {
    transform: translateY(-40px);
}

[data-animate="fadeInLeft"] {
    transform: translateX(-40px);
}

[data-animate="fadeInRight"] {
    transform: translateX(40px);
}

[data-animate="scaleIn"] {
    transform: scale(0.85);
}

/* ---- Keyframes ---- */

@keyframes float {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-6px);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(249, 115, 22, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(249, 115, 22, 0.8), 0 0 40px rgba(249, 115, 22, 0.3);
    }
}

@keyframes gradient-rotate {
    to {
        --angle: 360deg;
    }
}

/* Register custom property for gradient rotation */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* ---- Price Transition ---- */
.package-price {
    transition: color 0.3s ease;
    display: inline-block;
}

.package-price.counting {
    color: #F97316;
}

/* ---- Team Card ---- */
.team-card {
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-4px);
}

/* ---- Mobile Menu ---- */
#mobile-menu.open {
    transform: translateX(0);
}

/* ---- Responsive ---- */

/* Mobile buttons full width */
@media (max-width: 640px) {
    .group-size-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* Package cards horizontal scroll on small mobile */
@media (max-width: 767px) {
    .package-card {
        min-width: 280px;
    }
}

/* Hero video parallax container */
#hero-video-container {
    will-change: transform;
}

/* ---- Event Card ---- */
.event-card {
    transition: all 0.3s ease;
}

/* ---- Countdown ---- */
#marbella-countdown span {
    font-variant-numeric: tabular-nums;
}

/* ---- Selection Color ---- */
::selection {
    background: rgba(249, 115, 22, 0.3);
    color: inherit;
}

/* ---- Focus Styles for Accessibility ---- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #F97316;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---- Account Panel ---- */
#account-panel {
    will-change: transform;
}

#account-overlay {
    transition: opacity 0.3s ease;
}

#account-overlay.opacity-100 {
    opacity: 1;
}

/* OTP Inputs */
.otp-input {
    caret-color: #F97316;
}

.otp-input:focus {
    border-color: #F97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Account button active (logged-in) */
#account-btn.border-brand-orange svg {
    color: #F97316;
}

/* Loading spinner */
#account-loading .animate-spin {
    border-width: 3px;
}

/* ---- Gift Card ---- */
.font-mono {
    font-family: 'Courier New', Courier, monospace;
}

/* ---- Print ---- */
@media print {
    #navbar,
    .animate-bounce,
    video,
    #account-panel,
    #account-overlay {
        display: none !important;
    }
    section {
        page-break-inside: avoid;
    }
}
