/* Custom styles for CrumbsByT Bakery */
/* ====================================
   THEME COLOR VARIABLES
   ====================================
   Change these variables to customize the entire color theme
   ==================================== */

:root {
    /* Primary Brand Colors - Pink Logo Accent (light theme) */
    --primary-color: #E91E63; /* Pink accent color - same as pink-accent */
    --primary-hover: #C2185B; /* Darker pink on hover - same as pink-accent-dark */
    --primary-gradient-start: #F06292; /* Lighter pink */
    --primary-gradient-end: #E91E63; /* Pink accent */
    
    /* Accent Colors - Brown (crumbs/chocolate chips) */
    --accent-brown: #8B4513; /* Brown for accents */
    --accent-brown-light: #A0522D; /* Lighter brown */
    
    /* Secondary Colors - Neutral grays */
    --secondary-color: #495057;
    --secondary-hover: #343a40;
    
    /* Status Colors */
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #F5C6D9;
    
    /* Background Colors - Light theme */
    --bg-primary: #ffffff; /* White background */
    --bg-secondary: #f8f9fa; /* Light gray background */
    --bg-tertiary: #ffffff; /* Card backgrounds - white */
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --white: #ffffff;
    --black: #000000;
    
    /* Accent Colors - Pink accents for light theme */
    --pink-accent: #E91E63; /* Pink for accents - vibrant on light */
    --pink-accent-light: #F06292; /* Lighter pink */
    --pink-accent-dark: #C2185B; /* Darker pink */
    --pink-glow: rgba(233, 30, 99, 0.15); /* Subtle pink glow effect */
    
    /* Text Colors - Dark text on light background */
    --text-primary: #212529; /* Dark text for contrast */
    --text-secondary: #6c757d; /* Medium gray */
    --text-muted: #adb5bd; /* Muted gray */
    --text-dark: #212529; /* For light backgrounds */
    
    /* Border & Shadow */
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 3rem;
}

/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    min-height: 100vh;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

.animate-fade-in {
    animation: fadeIn 0.6s ease-in;
}

.animate-slide-in {
    animation: slideIn 0.8s ease-out;
}

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

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-secondary) 50%, var(--white) 100%);
    padding: 80px 0;
    border-radius: 0 0 50px 50px;
    border-bottom: 4px solid var(--pink-accent);
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.1);
    position: relative;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, var(--pink-glow) 0%, transparent 50%);
    opacity: 0.5;
    pointer-events: none;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--pink-accent-light) 0%, var(--pink-accent) 100%);
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: var(--radius-lg);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}

.product-card img {
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

/* Buttons */
.btn {
    transition: all 0.3s ease;
    border-radius: var(--radius-md);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: var(--pink-accent); /* Vibrant pink - accent color */
    border: none;
    color: var(--white); /* White text */
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.2);
}

.btn-primary:hover {
    background: var(--pink-accent-dark);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border-color: var(--pink-accent);
    color: var(--pink-accent);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--pink-accent);
    border-color: var(--pink-accent);
    color: var(--white); /* White text on pink background */
}

/* Enhanced Navbar */
.custom-navbar {
    backdrop-filter: blur(10px);
    background: var(--white) !important;
    border-bottom: 3px solid var(--pink-accent); /* Pink border - accent color */
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.1);
}

.custom-navbar:hover {
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.15);
    border-bottom-color: var(--pink-accent-light);
}

.logo-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--pink-accent); /* Vibrant pink circle - accent color */
    border-radius: 50%; /* Circular like logo */
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
    transition: transform 0.3s ease;
}

.logo-wrapper:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4);
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--white); /* White icon on pink background */
}

.brand-text {
    display: inline-block;
    font-size: 1.5rem;
    line-height: 1.2;
}

.brand-name {
    color: var(--text-primary); /* Dark text on light background */
    font-weight: 700;
}

.brand-by {
    color: var(--pink-accent); /* Vibrant pink - accent color */
    font-weight: 600;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-secondary) !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--pink-accent) !important;
    background-color: rgba(233, 30, 99, 0.1);
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    color: var(--pink-accent) !important;
    background-color: rgba(233, 30, 99, 0.1);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(233, 30, 99, 0.1);
    transform: translateX(5px);
    color: var(--pink-accent);
}

.search-form {
    max-width: 300px;
}

.search-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.search-btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding: 0.5rem 1rem;
}

.btn-cart {
    background: var(--pink-accent); /* Vibrant pink - accent color */
    color: var(--white); /* White text */
    border: none;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.2);
}

.btn-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
    background: var(--pink-accent-dark);
    color: var(--white);
}

.cart-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

.btn-user {
    background-color: var(--white);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.btn-user:hover {
    background-color: rgba(233, 30, 99, 0.1);
    border-color: var(--pink-accent);
    color: var(--pink-accent);
}

.btn-login, .btn-signup {
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    border-radius: var(--radius-md);
}

.navbar-brand {
    text-decoration: none;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

/* Cards */
.card {
    border: none;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

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

.card-header {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    border: none;
    background: var(--pink-accent);
    color: var(--white);
}

/* Badges */
.badge {
    padding: 0.4em 0.8em;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.bg-success {
    background-color: var(--success-color) !important;
}

.bg-danger {
    background-color: var(--danger-color) !important;
}

.bg-warning {
    background-color: var(--warning-color) !important;
}

.bg-info {
    background-color: var(--info-color) !important;
}

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

.form-control:focus,
.form-select:focus {
    border-color: var(--pink-accent);
    box-shadow: 0 0 0 0.2rem rgba(233, 30, 99, 0.15);
}

/* Alerts */
.alert-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: var(--white);
}

.alert-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
    color: var(--white);
}

.alert-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: var(--black);
}

.alert-info {
    background-color: var(--pink-accent-light);
    border-color: var(--pink-accent);
    color: var(--white);
}

/* Enhanced Footer */
.custom-footer {
    margin-top: auto;
    background: var(--bg-secondary);
    border-top: 3px solid var(--pink-accent);
    box-shadow: 0 -2px 8px rgba(233, 30, 99, 0.1);
}

.footer-main {
    background: var(--bg-secondary);
    border-top: 3px solid var(--pink-accent);
}

.footer-brand {
    padding-right: 2rem;
}

.logo-icon-footer {
    font-size: 2.5rem;
    color: var(--pink-accent);
}

.brand-text-footer {
    font-size: 1.8rem;
    line-height: 1.2;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--pink-accent);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
    background: var(--pink-accent-dark);
    color: var(--white);
}

.footer-heading {
    color: var(--pink-accent);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--pink-accent);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--pink-accent);
    transform: translateX(5px);
}

.footer-links i {
    color: var(--pink-accent);
    font-size: 0.9rem;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.3rem;
    color: var(--pink-accent);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.footer-bottom {
    background: var(--text-primary);
    color: var(--white);
    border-top: 2px solid var(--pink-accent);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--pink-accent-light);
    text-decoration: underline;
}

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

/* Text Colors */
.text-primary {
    color: var(--pink-accent) !important;
}

/* Cards with light theme, pink accents */
.card {
    background-color: var(--bg-tertiary);
    border: 1px solid rgba(233, 30, 99, 0.15);
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.card:hover {
    border-color: var(--pink-accent);
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.15);
    transform: translateY(-4px);
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-banner {
        padding: 40px 0;
        text-align: center;
    }
    
    .hero-banner h1 {
        font-size: 2rem;
    }
    
    .hero-image-wrapper {
        margin-top: 2rem;
    }
    
    .hero-image-wrapper img {
        max-height: 300px !important;
    }
    
    .product-card {
        margin-bottom: var(--spacing-md);
    }
    
    .search-form {
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem !important;
    }
    
    .footer-brand {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--pink-accent);
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--pink-accent-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--pink-accent);
}

/* Placeholder Images */
.placeholder-image {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(233, 30, 99, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    position: relative;
    overflow: hidden;
}

.placeholder-image::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.1) 10px,
        rgba(255, 255, 255, 0.1) 20px
    );
    animation: slide 20s linear infinite;
}

@keyframes slide {
    0% {
        transform: translateX(-50%) translateY(-50%);
    }
    100% {
        transform: translateX(50%) translateY(50%);
    }
}

.placeholder-image i {
    position: relative;
    z-index: 1;
}
