/* style.css */

/* 1. Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
    --primary: #10b981;       /* Fresh Mint Green */
    --primary-dark: #059669;  /* Darker Green for hovers */
    --dark: #1e293b;          /* Slate Blue/Black */
    --light: #f3f4f6;         /* Light Gray Background */
    --danger: #ef4444;        /* Red for 'Save' hearts */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light);
    color: #333;
    -webkit-font-smoothing: antialiased;
}

/* 2. Navigation Styling */
.navbar {
    background-color: var(--dark) !important;
    padding: 15px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.5px;
    font-size: 1.5rem;
    color: var(--primary) !important;
}

/* 3. Hero Section (Homepage) */
.hero {
    /* High quality shopping image from Unsplash */
    background: linear-gradient(rgba(30, 41, 59, 0.8), rgba(30, 41, 59, 0.8)), url('https://images.unsplash.com/photo-1607082348824-0a96f2a4b9da?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: white;
    margin-bottom: 40px;
}

.hero h1 {
    font-weight: 800;
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Custom Search Input */
.hero input.form-control {
    border-radius: 50px;
    padding: 15px 30px;
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    font-size: 1.1rem;
}

/* 4. Store & Coupon Cards */
.store-header {
    background: white;
    border-top: 5px solid var(--primary); /* Green accent bar */
}

.coupon-card {
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-radius: 12px;
    overflow: visible; /* changed from hidden to show shadow nicely */
}

.coupon-left {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-right: 2px dashed rgba(255,255,255,0.5);
    position: relative;
    border-radius: 12px 0 0 12px;
}

/* The "Notch" effect for coupon look */
.coupon-left::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
}

.coupon-title { font-weight: 700; color: var(--dark); font-size: 1.15rem; }

/* 5. Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.code-container {
    border: 2px dashed var(--primary);
    color: var(--primary-dark);
    background: #ecfdf5;
}

.code-cover {
    background: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
}