/* Global Theme Variables */
:root {
    --momo-green: #b8d8ba;
    --momo-sand: #d9dbbc;
    --momo-cream: #fcddbc;
    --momo-pink: #ef959d;
    --momo-mocha: #69585f;
    --brand-color: #6E0D25;
    --highlight-color: #DAA520;
    --bottom-nav-height: 65px;
}

main {
    padding-bottom: 70px;
}

/* Typography */
/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

body {
    background-color: var(--momo-sand);
    color: var(--momo-mocha);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 60px;
}

/* Logo and Headlines - Cinzel */
.logo, 
h1, 
h2, 
h3, 
.hero h1, 
.hero h2, 
.carousel-caption h1,
.carousel-caption h2,
.navbar-brand,
.brand-title {
    font-family: 'Cinzel', serif;
    font-weight: 600;
}

/* Special emphasis for main headlines */
h1, 
.hero h1, 
.carousel-caption h1 {
    font-weight: 700;
}

/* Body text and everything else - Inter */
p, 
span, 
div, 
button, 
input, 
textarea, 
select, 
label, 
a {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Navbar */
.navbar {
    background-color: var(--momo-mocha) !important;
    color: var(--momo-cream);
    padding-left: 1rem;
    margin: 1;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
}

/* Hero Section */
.hero {
    background-color: var(--momo-sand);
    color: var(--momo-mocha);
    text-align: left;
    padding: 0;
    margin: 0;
}

/* Varieties Section */
.varieties-section {
    background-color: var(--momo-cream);
    color: var(--momo-mocha);
    text-align: center;
    margin-top: 0.2rem;
}

.varieties-section h2 {
    margin: 0;
    font-weight: 700;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
    color: var(--momo-mocha);
}

.varieties-section h2:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
    cursor: pointer;
}

/* Momo Cards */
.momo-card {
    background-color: var(--momo-green);
    border-radius: 0.5rem;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    margin: 0;
    transition: transform 0.3s ease;
    color: var(--momo-mocha);
}

.momo-card img {
    border-radius: 5%;
    width: 100%;
    height: 90%;
    object-fit: cover;
}

.momo-card h5 {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
    text-align: left;
    color: var(--momo-mocha);
}

.momo-card p {
    font-size: 0.875rem;
    margin: 0;
    text-align: left;
    color: #4b4b4b;
}

.momo-card:hover {
    transform: scale(1.05);
    filter: brightness(1.05);
    cursor: pointer;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--bottom-nav-height);
    background-color: var(--brand-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1050;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.bottom-nav .nav-item {
    color: #fff;
    text-align: center;
    font-size: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: color 0.3s ease;
}

.bottom-nav .nav-item i {
    font-size: 18px;
    margin-bottom: 4px;
}

.bottom-nav .nav-item div {
    font-size: 12px;
}

.bottom-nav .nav-item.active {
    color: var(--highlight-color);
    font-weight: bold;
}

.bottom-nav .nav-item:hover {
    color: var(--highlight-color);
}

/* Carousel Styling */
.carousel-item {
    background-color: var(--momo-cream);
}

.carousel-caption h1,
.carousel-caption p {
    color: var(--momo-mocha);
}

.carousel-caption .btn {
    border-radius: 0.5rem;
    font-weight: 600;
    background-color: var(--momo-pink);
    color: white;
    border: none;
}

/* Responsive Nav */
@media (min-width: 768px) {
    .bottom-nav {
        height: var(--bottom-nav-height);
    }
}

/* Enhanced Theme CSS for Special Offers */

/* Custom animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

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

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(110, 13, 37, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(110, 13, 37, 0.6);
    }
}

/* Enhanced offer card animations */
.animate-fade-in-up {
    animation: fade-in-up 0.6s ease-out forwards;
}

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

.animate-bounce-in {
    animation: bounce-in 0.8s ease-out forwards;
}

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

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

/* Enhanced hover effects */
.group:hover .animate-float {
    animation-duration: 1.5s;
}

.group:hover .animate-pulse-glow {
    animation-duration: 1s;
}

/* Enhanced button states */
.btn-enhanced {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-enhanced::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-enhanced:hover::before {
    left: 100%;
}

.btn-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

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

/* Enhanced toast notifications */
.toast-notification {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.toast-notification.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.toast-notification.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.toast-notification.info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.toast-notification.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Enhanced offer cards */
.offer-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.offer-card::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;
}

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

.offer-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Enhanced progress bars */
.progress-bar-enhanced {
    position: relative;
    overflow: hidden;
    border-radius: 9999px;
}

.progress-bar-enhanced::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

/* Enhanced icons */
.icon-enhanced {
    transition: all 0.3s ease;
}

.group:hover .icon-enhanced {
    transform: scale(1.1) rotate(5deg);
}

/* Enhanced badges */
.badge-enhanced {
    position: relative;
    overflow: hidden;
}

.badge-enhanced::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;
}

.badge-enhanced:hover::before {
    left: 100%;
}

/* Enhanced newsletter signup */
.newsletter-enhanced {
    position: relative;
    overflow: hidden;
}

.newsletter-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
    transition: opacity 0.3s;
}

.newsletter-enhanced:hover::before {
    opacity: 0.7;
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
    .offer-card:hover {
        transform: translateY(-2px) scale(1.01);
    }
    
    .btn-enhanced:hover {
        transform: translateY(-1px);
    }
    
    .toast-notification {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}

/* Enhanced accessibility */
@media (prefers-reduced-motion: reduce) {
    .animate-fade-in-up,
    .animate-slide-in-right,
    .animate-bounce-in,
    .animate-float,
    .animate-pulse-glow,
    .loading-shimmer {
        animation: none;
    }
    
    .group:hover {
        transform: none !important;
    }
    
    .btn-enhanced:hover {
        transform: none !important;
    }
}

/* Enhanced focus states */
.btn-enhanced:focus,
.offer-card:focus {
    outline: 2px solid #6E0D25;
    outline-offset: 2px;
}

/* Enhanced dark mode support */
@media (prefers-color-scheme: dark) {
    .toast-notification {
        background: rgba(0, 0, 0, 0.9);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* Enhanced print styles */
@media print {
    .offer-card,
    .btn-enhanced,
    .toast-notification {
        display: none !important;
    }
}

/* Enhanced performance optimizations */
.offer-card,
.btn-enhanced {
    will-change: transform;
}

/* Enhanced scrollbar styling */
.overflow-y-auto::-webkit-scrollbar {
    width: 6px;
}

.overflow-y-auto::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
    background: rgba(110, 13, 37, 0.5);
    border-radius: 3px;
}

.overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: rgba(110, 13, 37, 0.7);
}

/* Enhanced selection styling */
::selection {
    background: rgba(110, 13, 37, 0.2);
    color: #6E0D25;
}

::-moz-selection {
    background: rgba(110, 13, 37, 0.2);
    color: #6E0D25;
}

/* Enhanced loading spinner */
.spinner-enhanced {
    width: 20px;
    height: 20px;
    border: 2px solid currentColor;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Enhanced success checkmark */
.checkmark-enhanced {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    stroke-width: 2;
    stroke: #10b981;
    stroke-miterlimit: 10;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark-enhanced__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #10b981;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-enhanced__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

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

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #10b981;
    }
}

/* GPS Location Styles */
.gps-button {
    transition: all 0.3s ease;
}

.gps-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.gps-button:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Enhanced GPS button states */
.gps-button.opacity-50 {
    opacity: 0.5;
}

.gps-button.cursor-not-allowed {
    cursor: not-allowed;
}

.gps-button.cursor-not-allowed:hover {
    transform: none;
    box-shadow: none;
}

/* GPS status animations */
.gps-status-enter {
    animation: slideInDown 0.3s ease-out;
}

.gps-status-exit {
    animation: slideOutUp 0.3s ease-in;
}

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

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

/* Mobile Responsive GPS Buttons */
@media (max-width: 640px) {
    .gps-location-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .gps-location-controls button {
        width: 100%;
        justify-content: center;
    }
}
