/* Tokyo Street Soccer - Enhanced Styles (kart.st inspired) */

/* Reset and Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Noto Sans JP', 'Noto Sans SC', 'Noto Sans KR', sans-serif;
    line-height: 1.7;
    color: #1f2937;
    background-color: #ffffff;
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #10b981, #3b82f6);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #059669, #2563eb);
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.text-gradient {
    background: linear-gradient(135deg, #10b981, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Navigation */
header {
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link {
    position: relative;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 50%;
    background: linear-gradient(135deg, #10b981, #3b82f6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 1px;
}

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

.nav-link:hover {
    color: #10b981;
    transform: translateY(-2px);
}

/* Enhanced Language Selector */
#languageSelect, #mobileLanguageSelect {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

#languageSelect:hover, #mobileLanguageSelect:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

/* Hero Section Enhancements */
.hero-bg {
    position: relative;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(59, 130, 246, 0.8)), 
                url('https://i.pinimg.com/1200x/ab/34/b9/ab34b9f317d7a50e50c3c46f3e099823.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #10b981 0%, #3b82f6 50%, #8b5cf6 100%);
    opacity: 0.1;
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.2; }
}

/* Enhanced Feature Cards */
.feature-card {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Enhanced Buttons */
.btn-primary {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 32px rgba(251, 191, 36, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid white;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    background: white;
    color: #1f2937;
    transform: translateY(-3px) scale(1.05);
}

/* Enhanced Experience Section */
#experience .group:hover .bg-gradient-to-br {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Gallery Enhancements */
#gallery img {
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

#gallery .group {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

#gallery .group::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(16, 185, 129, 0.2), rgba(59, 130, 246, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

#gallery .group:hover::after {
    opacity: 1;
}

#gallery .group:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

#gallery .group:hover img {
    filter: brightness(1.1) contrast(1.1);
}

/* Location Cards Enhancements */
.bg-white.rounded-2xl.shadow-xl {
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bg-white.rounded-2xl.shadow-xl::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #10b981, #3b82f6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.bg-white.rounded-2xl.shadow-xl:hover::before {
    transform: scaleX(1);
}

.bg-white.rounded-2xl.shadow-xl:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Enhanced Form Styles */
.form-input, input, select, textarea {
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    font-weight: 500;
}

.form-input:focus, input:focus, select:focus, textarea:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
    transform: translateY(-2px);
}

.form-input:hover, input:hover, select:hover, textarea:hover {
    border-color: #9ca3af;
}

/* Enhanced Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Enhanced Review Cards */
.bg-white.rounded-2xl.shadow-xl.p-8 {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.bg-white.rounded-2xl.shadow-xl.p-8:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.bg-white.rounded-2xl.shadow-xl.p-8::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #e5e7eb;
    font-weight: 700;
    line-height: 1;
}

/* Enhanced Footer */
footer {
    background: linear-gradient(135deg, #111827, #1f2937);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.5), transparent);
}

footer a:hover {
    color: #10b981;
    transform: translateY(-2px);
}

/* Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Enhanced Mobile Menu */
#mobileMenu {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
}

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

/* Icon Animations */
.icon-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-hover:hover {
    transform: scale(1.2) rotate(5deg);
}

/* Gradient Backgrounds */
.bg-gradient-custom {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
}

.bg-gradient-hero {
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 50%, #8b5cf6 100%);
    background-size: 300% 300%;
    animation: gradientAnimation 6s ease infinite;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Enhanced Shadows */
.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 1px 8px rgba(0, 0, 0, 0.06);
}

.shadow-custom-hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Language-specific Font Optimizations */
[lang="ja"] {
    font-family: 'Noto Sans JP', 'Inter', sans-serif;
}

[lang="en"] {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
}

[lang="zh"] {
    font-family: 'Noto Sans SC', 'Inter', sans-serif;
}

[lang="ko"] {
    font-family: 'Noto Sans KR', 'Inter', sans-serif;
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    .hero-bg {
        background-attachment: scroll;
    }
    
    .text-4xl.md\\:text-6xl.lg\\:text-7xl {
        font-size: 2.5rem;
    }
    
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-bg {
        min-height: 80vh;
    }
    
    .text-4xl.md\\:text-5xl {
        font-size: 2rem;
    }
    
    .feature-card {
        margin-bottom: 1rem;
    }
    
    #gallery .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .bg-white.rounded-2xl.shadow-xl.p-8 {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .hero-bg .text-4xl {
        font-size: 1.875rem;
    }
    
    .hero-bg .text-xl {
        font-size: 1.125rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Performance Optimizations */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* Dark Mode Support (for future implementation) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #111827;
        --text-primary: #f9fafb;
        --bg-secondary: #1f2937;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .bg-green-500, .bg-blue-500, .text-green-500 {
        filter: contrast(1.5);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-bg {
        background-attachment: scroll;
    }
}

/* Print Styles */
@media print {
    header, #mobileMenu, .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .shadow-xl, .shadow-2xl {
        box-shadow: none !important;
    }
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

button:focus, a:focus {
    outline: 2px solid #10b981;
    outline-offset: 4px;
}

/* Enhanced Interactive Elements */
.interactive:hover {
    transform: translateY(-2px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive:active {
    transform: translateY(0);
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Success Animations */
.success-bounce {
    animation: successBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Enhanced Error States */
.error-shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* QR Code Payment Section */
.qr-payment-container {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(16, 185, 129, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.qr-payment-container:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

/* Authentic Badge */
.authentic-badge {
    animation: pulse 2s infinite;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.authentic-badge:hover {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Real Experience Section Enhancements */
.real-experience-image {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.real-experience-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.real-experience-image:hover::before {
    opacity: 1;
}

/* Payment Options Animation */
.payment-pulse {
    animation: paymentPulse 3s ease-in-out infinite;
}

@keyframes paymentPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
    }
}