/* Custom CSS for Discover Okinawa Flask App */

:root {
    --primary-color: #64b5f6;
    --secondary-color: #42a5f5;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #81d4fa;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation Styles */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-brand.logo-box {
    background: white !important;
    padding: 0.8rem 1.5rem !important;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-right: 2rem;
}

.navbar-brand.logo-box .brand-shisa,
.navbar-brand.logo-box .brand-wave {
    filter: none;
}

.navbar-brand.logo-box .brand-main {
    color: var(--okinawa-blue) !important;
    text-shadow: none;
}

.navbar-brand.logo-box .brand-sub {
    color: #666 !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.3rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    color: white !important;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.25);
    font-weight: 600;
}

/* Okinawa Navbar Enhancement */
.navbar {
    background: linear-gradient(135deg, #42a5f5 0%, #64b5f6 50%, #81d4fa 100%) !important;
    box-shadow: 0 2px 8px rgba(100, 181, 246, 0.3);
    position: relative;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.02) 50%, transparent 70%);
    pointer-events: none;
}

/* Okinawan Color Palette Enhancement */
:root {
    --okinawa-blue: #64b5f6;
    --okinawa-deep-blue: #2196f3;
    --okinawa-gold: #ffd700;
    --okinawa-sky: #81d4fa;
    --okinawa-sand: #f4e4bc;
    --okinawa-blue-light: rgba(100, 181, 246, 0.1);
}

/* Button Styles */
.btn {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 181, 246, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--okinawa-blue), var(--okinawa-gold), var(--okinawa-sky));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-hover {
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Clickable card link styles */
a.text-decoration-none .card {
    color: inherit;
}

a.text-decoration-none:hover {
    text-decoration: none !important;
    color: inherit;
}

.card-header {
    border-bottom: none;
    padding: 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    background: #f8f9fa;
}

.hero-image-full {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(66, 165, 245, 0.3), rgba(100, 181, 246, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-title-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem 3.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 800px;
}

.hero-title-box h1 {
    color: var(--okinawa-blue);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: none;
}

.hero-title-box .lead {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-shadow: none;
}

.hero-title-box h1 {
    color: var(--okinawa-blue) !important;
}

.hero-title-box .lead {
    color: #333 !important;
}

/* Okinawa Cultural Branding */
.navbar-brand.okinawa-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    text-decoration: none !important;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: linear-gradient(135deg, #42a5f5 0%, #64b5f6 50%, #81d4fa 100%);
    box-shadow: 0 2px 8px rgba(100, 181, 246, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-brand.okinawa-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.8s;
}

.navbar-brand.okinawa-brand:hover::before {
    left: 100%;
}

.navbar-brand.okinawa-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.4);
}

.brand-shisa {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.7));
    animation: shisa-glow 2s ease-in-out infinite alternate;
}

@keyframes shisa-glow {
    from { filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.7)); }
    to { filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.9)); }
}

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.brand-main {
    font-size: 1.2rem;
    color: white;
    font-weight: 900;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.brand-sub {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
    margin-top: -2px;
}

.brand-wave {
    font-size: 1.2rem;
    animation: wave-dance 1.5s ease-in-out infinite;
}

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

/* Enhanced CTA Button Styling */
.hero-section .btn-primary {
    background: linear-gradient(45deg, #64b5f6, #42a5f5);
    border: none;
    transform: scale(1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-section .btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(100, 181, 246, 0.4);
    background: linear-gradient(45deg, #42a5f5, #2196f3);
}

.hero-section .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

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

.hero-section .btn-outline-secondary {
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hero-section .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
}

/* AI Help Banner */
.ai-help-banner {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid var(--okinawa-blue);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(100, 181, 246, 0.1);
    transition: all 0.3s ease;
}

.ai-help-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--okinawa-blue), var(--okinawa-gold), var(--okinawa-sky));
    animation: shimmer 2s ease-in-out infinite alternate;
}

@keyframes shimmer {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

.ai-help-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(100, 181, 246, 0.15);
}

.ai-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--okinawa-deep-blue), var(--okinawa-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.3);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(100, 181, 246, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 6px 20px rgba(100, 181, 246, 0.5);
        transform: scale(1.05);
    }
}

.btn-ai-chat {
    background: linear-gradient(45deg, var(--okinawa-deep-blue), var(--okinawa-blue));
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-ai-chat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-ai-chat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 181, 246, 0.4);
    background: linear-gradient(45deg, var(--okinawa-blue), var(--okinawa-deep-blue));
}

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

/* AI Spot Button */
.btn-ai-spot {
    background: linear-gradient(45deg, var(--okinawa-blue), var(--okinawa-sky));
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-ai-spot::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-ai-spot:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 181, 246, 0.4);
    background: linear-gradient(45deg, var(--okinawa-sky), var(--okinawa-blue));
    color: white;
}

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

/* Okinawa Category Cards */
.okinawa-category-card {
    transition: all 0.4s ease;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    box-shadow: 0 8px 25px rgba(100, 181, 246, 0.1);
    position: relative;
}

.okinawa-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--okinawa-blue), var(--okinawa-gold), var(--okinawa-sky));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.okinawa-category-card:hover::before {
    opacity: 1;
}

.okinawa-category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(100, 181, 246, 0.2);
}

.okinawa-category-card .card-title {
    color: var(--okinawa-deep-blue);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.okinawa-category-card .btn {
    border-radius: 25px;
    font-weight: 600;
    padding: 12px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.okinawa-category-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

/* Attraction Cards */
.attraction-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 100%;
}

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

.attraction-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.attraction-card .btn-group {
    margin-top: auto;
}

/* Review Styles */
.review-item {
    padding: 1.5rem 0;
}

.review-item:last-child {
    border-bottom: none !important;
}

.rating-input .form-range {
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
}

.rating-input .form-range::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    background: var(--warning-color);
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

.rating-display {
    font-size: 1.5rem;
}

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Statistics Section */
.stat-item {
    padding: 2rem 1rem;
    text-align: center;
}

.stat-item h3 {
    background: linear-gradient(45deg, #fff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Form Styles */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 10px;
    padding: 1rem 1.5rem;
}

.alert-dismissible .btn-close {
    padding: 1rem 1.5rem;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .display-4, .display-5 {
        font-size: 2.5rem;
    }
    
    .display-6 {
        font-size: 2rem;
    }
    
    .hero-section {
        min-height: 50vh;
        text-align: center;
    }
    
    .hero-image-full {
        height: 50vh;
    }
    
    .hero-title-box {
        padding: 1.5rem 2rem;
    }
    
    .hero-title-box h1 {
        font-size: 2rem;
    }
    
    .hero-title-box .lead {
        font-size: 1rem;
    }
    
    .navbar-brand.logo-box {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-group .btn {
        border-radius: 25px !important;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
}

/* Loading Animation */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Orange Accent Bar */
.orange-accent-bar {
    height: 6px;
    background: linear-gradient(90deg, var(--okinawa-deep-blue), var(--okinawa-blue), var(--okinawa-sky));
    margin: 0 auto;
    border-radius: 3px;
}

.orange-accent-bar.bar-thin {
    height: 3px;
    width: 100px;
}

.orange-accent-bar.bar-medium {
    height: 4px;
    width: 200px;
}

.orange-accent-bar.bar-full {
    height: 6px;
    width: 100%;
}

.section-title-with-bar {
    position: relative;
    padding-bottom: 1.5rem;
    margin-bottom: 3rem;
}

.section-title-with-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--okinawa-deep-blue), var(--okinawa-blue), var(--okinawa-sky));
    border-radius: 2px;
}

.orange-pattern-bg {
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.05) 0%, rgba(129, 212, 250, 0.05) 100%);
    position: relative;
}

.orange-pattern-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--okinawa-blue), var(--okinawa-gold), var(--okinawa-sky));
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.border-radius-custom {
    border-radius: 15px;
}

/* Map Container */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Image Styles */
.img-fluid {
    border-radius: 10px;
}

/* Badge Styles */
.badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}