﻿.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    padding: 0;
}

    .navbar-brand img {
        max-height: 40px;
    }

.navbar-nav {
    align-items: center;
}

.nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    transition: all 0.3s ease;
}

    .nav-link:hover,
    .nav-link:focus {
        color: var(--primary);
    }

    .nav-link.active {
        color: var(--primary);
        font-weight: 600;
    }

        .nav-link.active::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 1rem;
            right: 1rem;
            height: 3px;
            background: var(--primary);
            border-radius: 3px 3px 0 0;
        }

/* Navigation Search Container */
.nav-search-container {
    max-width: 280px;
    position: relative;
    margin: 0 0.5rem;
}

.nav-search-form {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    background: #f5f5f5;
    transition: all 0.3s ease;
}

    .nav-search-form:focus-within {
        box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
        background: white;
    }

.nav-search-input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 50px;
    outline: none;
}

.nav-search-btn {
    background: transparent;
    color: #666;
    border: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    border-radius: 0 50px 50px 0;
    transition: all 0.3s ease;
}

    .nav-search-btn:hover {
        color: var(--primary);
    }

/* Navbar Toggles for Mobile */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    margin-left: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    transition: all 0.3s ease;
}

    .navbar-toggler:hover {
        background: #e9ecef;
    }

    .navbar-toggler i {
        color: #333;
        font-size: 1rem;
    }

/* Mobile Search Overlay */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1050;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

    .mobile-search-overlay.active {
        transform: translateY(0);
    }

.mobile-search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.mobile-search-input {
    width: 100%;
    border: 1px solid #e0e0e0;
    background: #f5f5f5;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 5px;
    outline: none;
}

.mobile-search-btn {
    position: absolute;
    right: 40px;
    background: transparent;
    color: #666;
    border: none;
    padding: 0.5rem;
    font-size: 1rem;
}

.mobile-search-close {
    position: absolute;
    right: 0;
    background: transparent;
    color: #666;
    border: none;
    padding: 0.5rem;
    font-size: 1rem;
}

/* Dropdown Styling */
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

    .dropdown-item:hover {
        background-color: rgba(13, 110, 253, 0.1);
        color: var(--primary);
    }

/* Media Queries */
@media (max-width: 991.98px) {
    .nav-search-container {
        display: none; /* Hide in collapsed navbar */
        max-width: 100%;
        margin: 1rem 0;
    }

    .navbar-collapse {
        padding: 1rem 0;
    }

    .navbar-nav {
        margin-bottom: 1rem;
    }
}

/* Animation for scroll behavior */
.navbar-scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}



/* Enhanced Prediction Badge Styles */
.prediction-badge-container {
    position: relative;
    margin-bottom: 1rem;
}

.prediction-badge {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .prediction-badge:hover {
        transform: translateY(-2px);
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    }

.prediction-drop {
    background: linear-gradient(to right, #e8f5e9, #c8e6c9);
    border-left: 4px solid #4caf50;
}

.prediction-rise {
    background: linear-gradient(to right, #ffebee, #ffcdd2);
    border-left: 4px solid #f44336;
}

.prediction-stable {
    background: linear-gradient(to right, #e3f2fd, #bbdefb);
    border-left: 4px solid #2196f3;
}

.prediction-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 0.75rem;
}

.prediction-drop .prediction-icon {
    background-color: #4caf50;
    color: white;
}

.prediction-rise .prediction-icon {
    background-color: #f44336;
    color: white;
}

.prediction-stable .prediction-icon {
    background-color: #2196f3;
    color: white;
}

.prediction-info {
    flex: 1;
}

.prediction-label {
    display: block;
    line-height: 1.2;
}

.prediction-confidence {
    display: block;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 5px;
}

.confidence-meter {
    height: 100%;
    border-radius: 2px;
}

.prediction-drop .confidence-meter {
    background-color: #4caf50;
}

.prediction-rise .confidence-meter {
    background-color: #f44336;
}

.prediction-stable .confidence-meter {
    background-color: #2196f3;
}

.prediction-help {
    position: absolute;
    right: 0;
    top: 0;
    color: #9e9e9e;
    font-size: 1rem;
    transition: all 0.3s ease;
}

    .prediction-help:hover {
        color: var(--primary);
    }

/* Modal Styles */
.prediction-explanation {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

    .prediction-explanation:last-child {
        border-bottom: none;
    }

.confidence-example {
    margin-bottom: 1rem;
}

.confidence-label {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.confidence-bar {
    height: 8px;
    background-color: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(to right, #bbdefb, #2196f3);
    border-radius: 4px;
}

/* Product Card Refinements */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

.product-image-container {
    padding: 1.5rem;
    background: linear-gradient(to bottom, #f9f9f9, #ffffff);
}


/* --- MAIN STYLES --- */
:root {
    --primary: #0d6efd;
    --primary-light: #e6f2ff;
    --secondary: #6c757d;
    --success: #198754;
    --success-light: #e6fff0;
    --danger: #dc3545;
    --warning: #ffc107;
    --warning-light: #fff8e6;
    --info: #0dcaf0;
    --light: #f8f9fa;
    --dark: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Navbar and Hero Section */
.navbar-custom {
    background: linear-gradient(135deg, var(--primary) 0%, #0052cc 100%);
    padding: 1rem 0;
}

.navbar-brand img {
    max-height: 40px;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #0052cc 100%);
    color: white;
    padding: 3.5rem 0;
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('https://aislegopher.com/img/ag_hero_pattern.png');
        background-size: cover;
        opacity: 0.1;
        z-index: 0;
    }

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    /*font-size: 2.75rem;*/
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
    max-width: 800px;
}

.search-container {
    max-width: 650px;
    margin: 0 auto;
    background: white;
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.search-form {
    display: flex;
    align-items: center;
}

.search-input {
    flex: 1;
    border: none;
    padding: 12px 15px;
    /*font-size: 1.1rem;*/
    border-radius: 40px;
    outline: none;
}

.search-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 40px;
    margin-left: 10px;
    transition: all 0.3s ease;
}

    .search-btn:hover {
        background: #0456c8;
        transform: translateY(-2px);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

/* Features Section */
.features-section {
    padding: 5rem 0;
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    color: var(--dark);
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

.feature-icon-blue {
    background-color: var(--primary-light);
    color: var(--primary);
}

.feature-icon-green {
    background-color: var(--success-light);
    color: var(--success);
}

.feature-icon-yellow {
    background-color: var(--warning-light);
    color: var(--warning);
}

.feature-icon-red {
    background-color: #ffebee;
    color: var(--danger);
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-description {
    color: var(--secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Trending Products Section */
.trending-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.view-all-link {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .view-all-link:hover {
        color: #0456c8;
        text-decoration: underline;
    }

.product-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    background: white;
    position: relative;
}

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    }

.product-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 1.5rem;
}

.product-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.price-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.8rem;
    z-index: 1;
}

.price-drop-badge {
    background-color: var(--danger);
    color: white;
}

.price-stable-badge {
    background-color: var(--info);
    color: white;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark);
    min-height: 2.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.original-price {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: var(--secondary);
    margin-left: 0.5rem;
}

.savings {
    font-size: 0.85rem;
    color: var(--success);
    margin-bottom: 1rem;
}

.prediction-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.prediction-drop {
    background-color: #e8f5e9;
    color: var(--success);
}

.prediction-rise {
    background-color: #ffebee;
    color: var(--danger);
}

.prediction-stable {
    background-color: #e3f2fd;
    color: var(--primary);
}

.view-btn {
    width: 100%;
    padding: 0.5rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .view-btn:hover {
        transform: translateY(-2px);
    }

/* Latest Price Drops Section */
.price-drops-section {
    padding: 5rem 0;
    background-color: white;
}

/* Categories Section */
.categories-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.category-card {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1.5rem;
    height: 150px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

    .category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    }

.category-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: all 0.5s ease;
}

.category-card:hover .category-image {
    filter: brightness(0.6);
    transform: scale(1.05);
}

.category-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    z-index: 1;
}

.category-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.category-count {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

/* How It Works Section */
.how-it-works-section {
    padding: 5rem 0;
    background-color: white;
}

.step-card {
    padding: 2rem;
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
    position: relative;
    z-index: 1;
}

.step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.step-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
}

.step-description {
    color: var(--secondary);
    margin-bottom: 0;
}

/* Footer */
.footer {
    background: #343a40;
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 1.5rem;
}

.footer-description {
    margin-bottom: 2rem;
    font-size: 0.95rem;
    max-width: 400px;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link {
    margin-bottom: 0.5rem;
}

    .footer-link a {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        transition: all 0.3s ease;
    }

        .footer-link a:hover {
            color: white;
            text-decoration: underline;
        }

.social-icons {
    display: flex;
    margin-top: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    margin-right: 0.75rem;
    transition: all 0.3s ease;
}

    .social-icon:hover {
        background: var(--primary);
        transform: translateY(-3px);
    }

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Responsive adjustments */
@@media (max-width: 992px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .feature-card, .step-card {
        margin-bottom: 2rem;
    }

    .newsletter-card {
        padding: 2rem;
    }
}

@@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .search-input {
        padding: 12px 15px;
    }

    .search-btn {
        padding: 10px 15px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-input {
        border-radius: 5px;
        margin-bottom: 1rem;
    }

    .newsletter-btn {
        border-radius: 5px;
        width: 100%;
        padding: 0.75rem;
    }
}

@@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}
