/* Gecko Out Game Guide - Custom Styles */

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #374151;
    background: linear-gradient(135deg, #C248FD 0%, #A855F7 100%);
    min-height: 100vh;
}

/* Custom Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(194, 72, 253, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(194, 72, 253, 0.6);
    }
}

@keyframes card-float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(0.5deg);
    }
    50% {
        transform: translateY(-10px) rotate(0deg);
    }
    75% {
        transform: translateY(-5px) rotate(-0.5deg);
    }
}

@keyframes image-zoom {
    0% {
        transform: scale(1);
    }
    100% {
    transform: scale(1.1);
}
}

@keyframes badge-bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-3px) scale(1.05);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

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

.animate-pulse-slow {
    animation: pulse-slow 3s infinite;
}

.animate-bounce-slow {
    animation: bounce-slow 2s infinite;
}

.animate-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

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

.animate-badge-bounce {
    animation: badge-bounce 2s ease-in-out infinite;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #C248FD, #A855F7, #9333EA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Custom Buttons */
.btn-primary {
    background: linear-gradient(135deg, #C248FD, #A855F7);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(194, 72, 253, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: #C248FD;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #C248FD;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(194, 72, 253, 0.1), transparent);
    transition: left 0.5s;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: #C248FD;
    color: white;
    transform: translateY(-2px);
}

/* Enhanced Card Styles */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.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.5s;
}

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

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Enhanced Level Number Cards */
.level-number {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.level-number::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.level-number:hover::before {
    transform: translateX(100%);
}

.level-number:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.level-number:active {
    transform: translateY(-1px) scale(1.02);
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.hero-left {
    padding-right: 2rem;
}

.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.2);
}

/* Level Guides Section */
.level-guides-section {
    background: #f8fafc;
}

.level-group {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.level-group:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.level-group:last-child {
    margin-bottom: 0;
}

.level-group-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

/* Quick Search Styles */
.quick-search {
    margin-bottom: 2rem;
}

.quick-search-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.search-input-container {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    max-width: 20rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.search-input-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s;
}

.search-input-container:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-input-container:focus-within::before {
    left: 100%;
}

.search-input-field {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.125rem;
    padding: 0.25rem 0.5rem;
}

.search-button {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 0.75rem;
    position: relative;
    overflow: hidden;
}

.search-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.search-button:active::before {
    width: 300px;
    height: 300px;
}

.search-button:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #C248FD, #A855F7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Enhanced Level Card */
.level-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.level-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
    z-index: 1;
}

.level-card:hover::before {
    transform: translateX(100%);
}

.level-card:hover {
    transform: translateY(-10px) scale(1.05) rotate(2deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    animation: card-float 2s ease-in-out infinite;
}

.level-card:active {
    transform: translateY(-5px) scale(1.02) rotate(1deg);
}

/* Shake Animation */
@keyframes shake {
    0%, 100% { transform: translateY(-4px) scale(1.05) rotate(1deg); }
    10%, 30%, 50%, 70%, 90% { transform: translateY(-4px) scale(1.05) rotate(1deg) translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateY(-4px) scale(1.05) rotate(1deg) translateX(2px); }
}

/* Aspect Ratio for Long Images */
.aspect-w-3 {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 133.33%; /* 4:3 aspect ratio for long images */
}

.aspect-w-3 > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Enhanced Level Badge Styles */
.level-badge {
    background: linear-gradient(135deg, #A855F7, #C248FD);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    transition: all 0.3s ease;
    animation: badge-bounce 3s ease-in-out infinite;
}

.level-badge:hover {
        transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Level Text Content Styles */
.level-text-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.level-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    text-align: center;
}

.level-description {
    color: #6b7280;
    text-align: center;
    line-height: 1.4;
}

/* Enhanced Image Hover Effects */
.level-image {
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.level-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
    z-index: 1;
}

.level-image:hover::before {
    transform: translateX(100%);
}

.level-image:hover {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.1);
}

/* Enhanced Hover Overlay - Removed for cleaner design */

.level-card-image {
    height: 160px;
    background: linear-gradient(135deg, rgba(194, 72, 253, 0.2), rgba(168, 85, 247, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.level-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.level-card-image:hover::before {
    transform: translateX(100%);
}

/* Difficulty Badges */
.difficulty-easy {
    background: linear-gradient(135deg, #C248FD, #A855F7);
    color: white;
}

.difficulty-medium {
    background: linear-gradient(135deg, #9333EA, #A855F7);
    color: white;
}

.difficulty-hard {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
}

/* Search Bar */
.search-container {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-input:focus {
    outline: none;
    border-color: #C248FD;
    box-shadow: 0 0 0 3px rgba(194, 72, 253, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    transition: color 0.3s ease;
}

.search-input:focus + .search-icon {
    color: #C248FD;
}

/* Enhanced Navigation */
.nav-link {
    color: #6B7280;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(194, 72, 253, 0.1), transparent);
    transition: left 0.5s;
}

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

.nav-link:hover {
    color: #C248FD;
    background: rgba(194, 72, 253, 0.1);
    transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
}

.mobile-menu.active {
    display: block;
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(194, 72, 253, 0.3);
    border-radius: 50%;
    border-top-color: #C248FD;
    animation: spin 1s ease-in-out infinite;
}

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

/* Grid Layout Utilities */
.grid-cols-15 {
    grid-template-columns: repeat(15, minmax(0, 1fr));
}

.grid-cols-20 {
    grid-template-columns: repeat(20, minmax(0, 1fr));
}

/* ===== LEVEL RANGES GRID STYLES ===== */
.level-ranges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 2rem;
}

.level-range-link {
    display: block;
    padding: 16px 12px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(248, 250, 252, 0.9) 100%);
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: #374151;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.level-range-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.level-range-link:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 250, 252, 0.95) 100%);
    border-color: rgba(59, 130, 246, 0.3);
    color: #1f2937;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(59, 130, 246, 0.15);
}

.level-range-link:hover::before {
    transform: scaleX(1);
}

.level-range-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .level-ranges-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .level-range-link {
        padding: 14px 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .level-ranges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .level-range-link {
        padding: 12px 8px;
        font-size: 12px;
    }
}

/* Hero Search Box - Premium Design */
.hero-search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.hero-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    box-shadow: 
        0 25px 50px rgba(194, 72, 253, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(194, 72, 253, 0.1);
    border: 2px solid rgba(194, 72, 253, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.hero-search-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(194, 72, 253, 0.05) 0%, 
        rgba(168, 85, 247, 0.05) 50%, 
        rgba(194, 72, 253, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.hero-search-box:focus-within {
    border-color: rgba(194, 72, 253, 0.4);
    box-shadow: 
        0 30px 60px rgba(194, 72, 253, 0.25),
        0 15px 30px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(194, 72, 253, 0.2);
    transform: translateY(-6px) scale(1.02);
}

.hero-search-box:focus-within::before {
    opacity: 1;
}

.search-icon-wrapper {
    display: flex;
    align-items: center;
    padding: 0 20px 0 28px;
    z-index: 1;
    position: relative;
}

.search-icon-wrapper i {
    font-size: 18px;
    transition: all 0.3s ease;
}

.hero-search-box:focus-within .search-icon-wrapper i {
    color: #8b5cf6;
    transform: scale(1.1);
}

.hero-search-input {
    flex: 1;
    padding: 22px 20px 22px 0;
    border: none;
    outline: none;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    background: transparent;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.hero-search-input::placeholder {
    color: #9ca3af;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero-search-input:focus::placeholder {
    color: #d1d5db;
    transform: translateY(-2px);
}

.hero-search-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 8px;
    background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 50%, #8b5cf6 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 20px;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(194, 72, 253, 0.3);
}

.hero-search-btn::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 ease;
}

.hero-search-btn:hover {
        transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(194, 72, 253, 0.4);
    background-position: 100% 0;
}

.hero-search-btn:hover::before {
    left: 100%;
}

.hero-search-btn:active {
    transform: scale(0.96);
}

.hero-search-btn i {
    transition: transform 0.3s ease;
}

.hero-search-btn:hover i {
    transform: translateX(3px) scale(1.1);
}

.hero-search-hint {
    margin-top: 20px;
    font-size: 16px;
    color: #6b7280;
    text-align: center;
    font-weight: 600;
    opacity: 0.8;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.hero-search-container:hover .hero-search-hint {
    color: #8b5cf6;
    opacity: 1;
    transform: translateY(-2px);
}

/* Floating particles effect */
.hero-search-container::after {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    background: 
        radial-gradient(circle at 20% 20%, rgba(194, 72, 253, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 10%, rgba(194, 72, 253, 0.05) 0%, transparent 50%);
    border-radius: 50px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: float 6s ease-in-out infinite;
}

.hero-search-container:hover::after {
    opacity: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

/* Level Jump Input - Legacy */
#levelJump {
    min-width: 120px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .card {
        padding: 16px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
    }
    
    /* Hero Search Responsive */
    .hero-search-container {
        max-width: 100%;
        padding: 0 16px;
    }
    
    .hero-search-box {
        border-radius: 20px;
        box-shadow: 
            0 15px 30px rgba(194, 72, 253, 0.12),
            0 6px 12px rgba(0, 0, 0, 0.08);
    }
    
    .search-icon-wrapper {
        padding: 0 16px 0 20px;
    }
    
    .search-icon-wrapper i {
        font-size: 16px;
    }
    
    .hero-search-input {
        padding: 18px 16px 18px 0;
        font-size: 16px;
        letter-spacing: 0.3px;
    }
    
    .hero-search-btn {
        width: 56px;
        height: 56px;
        margin: 6px;
        font-size: 18px;
        border-radius: 16px;
    }
    
    .hero-search-hint {
        font-size: 14px;
        margin-top: 16px;
        letter-spacing: 0.3px;
    }
    
    .hero-search-container::after {
        top: -20px;
        left: -20px;
        right: -20px;
        bottom: -20px;
        border-radius: 40px;
    }
    
    .level-card-image {
        height: 120px;
    }
    
    .level-number {
        min-height: 50px;
        padding: 8px;
    }
    
    .grid-cols-15,
    .grid-cols-20 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    
    .level-card:hover {
        transform: translateY(-5px) scale(1.02) rotate(1deg);
    }
}

@media (max-width: 480px) {
    .level-number {
        min-height: 45px;
        padding: 6px;
    font-size: 12px;
    }
    
    .level-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
    }
    
    .level-text-content {
        padding: 0.75rem;
    }
    
    .level-title {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }
    
    .level-description {
        font-size: 0.75rem;
    }
}

/* Utility Classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #C248FD, #A855F7);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #C248FD, #A855F7);
}

/* Focus States */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(194, 72, 253, 0.3);
}

/* Hover Effects */
.hover-lift:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Line Clamp */
.line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
}

/* Custom Scrollbar Styles */
.scrollbar-thin {
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f3f4f6;
}

.scrollbar-thin::-webkit-scrollbar {
    width: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Level List Scrollable Container */
.level-list-container {
    max-height: 25rem; /* 256px - reduced since we only show 11 levels now */
    overflow-y: auto;
    padding-right: 0.5rem;
}

.level-list-container::-webkit-scrollbar {
    width: 6px;
}

.level-list-container::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.level-list-container::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.level-list-container::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Level Guide Card Styles - 图文攻略布局 */
.level-guide-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.level-guide-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: #e2e8f0;
}

.level-guide-image {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    position: relative;
    overflow: hidden;
}

.level-guide-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.level-guide-card:hover .level-guide-image::before {
    transform: translateX(100%);
}

.level-guide-info {
        padding: 0.75rem;
    text-align: center;
}

.level-number {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.level-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive adjustments for guide cards */
@media (max-width: 640px) {
    .level-guide-image {
        min-height: 70px;
        padding: 0.75rem;
    }
    
    .level-guide-info {
        padding: 0.5rem;
    }
    
    .level-number {
        font-size: 0.7rem;
    }
    
    .level-title {
        font-size: 0.8rem;
    }
}

@media (min-width: 1024px) {
    .level-guide-image {
        min-height: 90px;
    }
    
    .level-guide-info {
        padding: 1rem;
    }
    
    .level-number {
        font-size: 0.8rem;
    }
    
    .level-title {
        font-size: 0.9rem;
    }
} 