/* Volantini Smart - Modern Playful Styles */

:root {
    /* Bright Green & Light Theme Palette */
    --primary-color: #22c55e; /* vivid green */
    --secondary-color: #16a34a; /* deep green */
    --accent-color: #84cc16; /* lime */
    --success-color: #22c55e;
    --warning-color: #facc15; /* bright yellow */
    --danger-color: #ef4444;
    --info-color: #60a5fa;
    --dark-gray: #1f2937;
    --medium-gray: #374151;
    --light-gray: #9ca3af;
    --mint: #10b981;
    --forest: #059669;
    
    /* Glassmorphism Colors (lighter) */
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    
    /* Neumorphism Colors */
    --neu-bg: #f0f0f3;
    --neu-shadow-light: #ffffff;
    --neu-shadow-dark: #d1d9e6;
    
    /* Text Colors */
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-light: #ffffff;
    
    /* Background Gradients */
    --gradient-primary: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --gradient-secondary: linear-gradient(135deg, #9ca3af 0%, #e5e7eb 100%);
    --gradient-success: linear-gradient(135deg, #84cc16 0%, #22c55e 100%);
    --gradient-warning: linear-gradient(135deg, #fde047 0%, #facc15 100%);
    --gradient-playful: linear-gradient(135deg, #ffffff 0%, #f0fdf4 50%, #dcfce7 100%);
    
    /* Border Radius */
    --border-radius: 1rem;
    --border-radius-lg: 1.5rem;
    --border-radius-xl: 2rem;
    
    /* Shadows */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 15px 35px rgba(0, 0, 0, 0.15);
    --shadow-strong: 0 20px 40px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(45, 90, 39, 0.4);
}

/* Global Styles - Sancho Inspired */
body {
    font-family: 'Inter', 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Clean Background - Sancho Style */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(34, 197, 94, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(132, 204, 22, 0.03) 0%, transparent 50%);
    z-index: -1;
}

@keyframes backgroundShift {
    0%, 100% { transform: translateX(0) translateY(0) rotate(0deg); }
    33% { transform: translateX(-20px) translateY(-10px) rotate(1deg); }
    66% { transform: translateX(20px) translateY(10px) rotate(-1deg); }
}

/* Navigation - Clean Sancho Style */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(34, 197, 94, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    letter-spacing: -0.02em;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 0 0.25rem;
    padding: 0.5rem 1rem !important;
    color: var(--dark-gray) !important;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(34, 197, 94, 0.05);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(34, 197, 94, 0.1);
}

.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link i {
    margin-right: 0.5rem;
    font-size: 1.1em;
}

/* Main Content */
.main-content {
    margin-top: 76px; /* Account for fixed navbar */
    min-height: calc(100vh - 76px - 64px); /* minus tab bar */
    padding-bottom: 80px; /* prevent content behind tabbar */
}

/* Page Management */
.page {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.page.active {
    display: block;
}

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

/* Hero Section - Clean Sancho Style */
.hero-section {
    background: #ffffff;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    padding: 6rem 0 4rem 0;
    border-bottom: 1px solid rgba(34, 197, 94, 0.1);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: heroFloat 15s ease-in-out infinite;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-section .lead {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    color: var(--light-gray);
    line-height: 1.6;
}

.hero-image {
    text-align: center;
    position: relative;
}

.hero-image i {
    font-size: 6rem;
    color: var(--primary-color);
    opacity: 0.8;
}

@keyframes heroFloat {
    0%, 100% { transform: translateX(0) translateY(0) rotate(0deg); }
    33% { transform: translateX(-30px) translateY(-20px) rotate(2deg); }
    66% { transform: translateX(30px) translateY(20px) rotate(-2deg); }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) scale(1); }
    40% { transform: translateY(-30px) scale(1.1); }
    60% { transform: translateY(-15px) scale(1.05); }
}

/* Featured Offers Section */
.featured-offers-section {
    background: #ffffff;
    position: relative;
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--light-gray);
    font-weight: 400;
}

.offers-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.offers-carousel::-webkit-scrollbar {
    height: 4px;
}

.offers-carousel::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
}

.offers-carousel::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
}

.offer-slide {
    flex: 0 0 280px;
    min-width: 280px;
}

.offer-card {
    background: #ffffff;
    border: 1px solid rgba(34, 197, 94, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: 100%;
    cursor: pointer;
}

.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
}

.offer-badge {
    position: absolute;
    top: 6px;
    right: 12px;
    background: var(--danger-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.offer-image {
    text-align: center;
    margin-bottom: 1rem;
}

.offer-image i {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.offer-content h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.offer-price {
    margin-bottom: 0.75rem;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.original-price {
    font-size: 1rem;
    color: var(--light-gray);
    text-decoration: line-through;
}

.offer-store {
    font-size: 0.9rem;
    color: var(--light-gray);
    font-weight: 500;
}

/* Popular Products Section */
.popular-products-section {
    background: #f8fffe;
    position: relative;
    padding: 4rem 0;
}

.product-card {
    background: #ffffff;
    border: 1px solid rgba(34, 197, 94, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
}

.product-icon {
    margin-bottom: 1rem;
}

.product-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.product-card h6 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.product-count {
    font-size: 0.9rem;
    color: var(--light-gray);
    font-weight: 500;
}

/* Features Section - Clean Design */
.features-section {
    background: #ffffff;
    position: relative;
    padding: 4rem 0;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    animation: backgroundShift 15s ease-in-out infinite;
}

.feature-card {
    background: #ffffff;
    border: 1px solid rgba(34, 197, 94, 0.1);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    height: 100%;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
}

.feature-card i {
    transition: all 0.2s ease;
}

.feature-card:hover i {
    transform: scale(1.1);
}

.feature-card h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--light-gray);
    font-weight: 400;
    line-height: 1.6;
}

/* Cards - Clean Sancho Style */
.card {
    border: 1px solid rgba(34, 197, 94, 0.1);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    background: var(--primary-color) !important;
    color: var(--text-light) !important;
    padding: 1rem 1.5rem;
}

.card-body {
    background: #ffffff;
    padding: 1.5rem;
}

/* Buttons - Clean Sancho Style */
.btn {
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    position: relative;
    border: none;
    letter-spacing: -0.01em;
    padding: 0.75rem 1.5rem;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.btn-primary:hover {
    background: var(--secondary-color);
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

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

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: var(--border-radius-xl);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: var(--border-radius);
}

/* Forms */
.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.input-group-text {
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    border: 2px solid #e9ecef;
    border-right: none;
    background-color: #f8f9fa;
}

.input-group .form-control {
    border-left: none;
}

.input-group .form-control:focus {
    border-left: none;
    box-shadow: none;
}

/* Product List */
.product-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-item:hover {
    box-shadow: var(--box-shadow);
    transform: translateX(5px);
}

.product-name {
    font-weight: 500;
    color: var(--dark-color);
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Offer Cards */
.offer-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--success-color);
}

.offer-card:hover {
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-2px);
}

.offer-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.offer-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success-color);
}

.offer-original-price {
    text-decoration: line-through;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.offer-store {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.offer-validity {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

/* Notifications */
.notification-item {
    background: white;
    border-left: 4px solid var(--info-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 0.5rem;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.notification-item:hover {
    box-shadow: var(--box-shadow-lg);
}

.notification-item.unread {
    border-left-color: var(--primary-color);
    background: #f8f9ff;
}

.notification-time {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow);
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--secondary-color);
}

.empty-state i {
    opacity: 0.5;
    margin-bottom: 1rem;
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .feature-card {
        margin-bottom: 1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    .main-content {
        margin-top: 70px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Bottom Tab Bar */
.app-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #ffffff;
    border-top: 1px solid rgba(34, 197, 94, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1030;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.05);
}

.app-tabbar .tab-link {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: var(--dark-gray);
    font-size: 0.8rem;
}

.app-tabbar .tab-link i {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.app-tabbar .tab-link.active,
.app-tabbar .tab-link:hover {
    color: var(--primary-color);
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #0b5ed7;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-in-out;
}

.slide-in-right {
    animation: slideInRight 0.5s ease-in-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Playful Animations */
@keyframes wiggle {
    0%, 7% { transform: rotateZ(0); }
    15% { transform: rotateZ(-15deg); }
    20% { transform: rotateZ(10deg); }
    25% { transform: rotateZ(-10deg); }
    30% { transform: rotateZ(6deg); }
    35% { transform: rotateZ(-4deg); }
    40%, 100% { transform: rotateZ(0); }
}

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

@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

@keyframes floatUp {
    0% { transform: translateY(100px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Playful Elements */
.playful-icon {
    animation: wiggle 2s ease-in-out infinite;
}

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

.rainbow-text {
    color: var(--primary-color);
    font-weight: 600;
}

/* Floating Elements */
.floating {
    animation: floatUp 0.6s ease-out;
}

/* Neumorphism Elements */
.neu-button {
    background: var(--neu-bg);
    box-shadow: 
        20px 20px 60px var(--neu-shadow-dark),
        -20px -20px 60px var(--neu-shadow-light);
    border: none;
    border-radius: var(--border-radius-lg);
    transition: all 0.3s ease;
}

.neu-button:hover {
    box-shadow: 
        inset 20px 20px 60px var(--neu-shadow-dark),
        inset -20px -20px 60px var(--neu-shadow-light);
}

.neu-button:active {
    transform: scale(0.95);
}

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

.shadow-custom {
    box-shadow: var(--shadow-soft);
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--primary-color), var(--info-color)) 1;
}

/* Special Effects */
.glow-effect {
    box-shadow: var(--shadow-glow);
    animation: pulse 2s ease-in-out infinite;
}

.sparkle::before {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -10px;
    animation: wiggle 1s ease-in-out infinite;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-image i {
        font-size: 6rem;
    }
    
    .btn-lg {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

