/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 70px;
    height: 70px;
    margin-right: 15px;
}

.brand-name {
    font-family: 'Playfair Display', serif;
    color: #00a651;
    font-size: 28px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #00a651;
}

/* Hero section */
.hero {
    position: relative;
    height: 70vh;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-title {
    position: absolute;
    bottom: 50px;
    left: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: #333;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 15px 25px;
    border-radius: 4px;
}

/* Content section */
.content {
    padding: 80px 0;
}

.about-section, .eco-guide-section {
    max-width: 800px;
    margin: 0 auto;
}

h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    margin-bottom: 20px;
    color: #00a651;
}

p {
    margin-bottom: 25px;
    font-size: 16px;
    color: #555;
}

.cta-button {
    background-color: #00a651;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #008c44;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 50px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

.logo-small {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: white;
}

/* Animation classes */
.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Grocery Tracker Styles */
.tracker-container {
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.tracker-container h2 {
    color: #00a651;
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
    font-size: 28px;
}

.tracker-container input, 
.tracker-container button {
    padding: 12px;
    margin: 10px 0;
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.tracker-container button {
    background-color: #00a651;
    color: white;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tracker-container button:hover {
    background-color: #008c44;
}

.item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.item button {
    width: auto;
    padding: 8px 15px;
    margin-top: 10px;
    background-color: #e74c3c;
}

.item button:hover {
    background-color: #c0392b;
}

.warning {
    color: #e74c3c;
    font-weight: bold;
}

.tabs {
    display: flex;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    background-color: #f1f1f1;
    border: none;
    cursor: pointer;
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
    font-weight: 500;
}

.tab.active {
    background-color: #00a651;
    color: white;
}

/* Recipe Styles */
.recipe-container {
    margin-top: 30px;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.recipe {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.recipe:hover {
    transform: translateY(-5px);
}

.recipe img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.recipe-content {
    padding: 15px;
}

.recipe h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

.recipe a {
    display: inline-block;
    background-color: #00a651;
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.recipe a:hover {
    background-color: #008c44;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Eco Guide Styles */
.eco-guide-section {
    padding: 40px 0;
}

.eco-tip {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 5px solid #00a651;
}

.eco-tip h4 {
    color: #00a651;
    font-size: 22px;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.eco-tip-icon {
    font-size: 24px;
    margin-right: 10px;
    color: #00a651;
}

.eco-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.eco-category {
    flex: 1 1 200px;
    background-color: #f1f9f1;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.eco-category:hover {
    transform: translateY(-5px);
}

.eco-category h4 {
    color: #00a651;
    margin: 15px 0;
    font-family: 'Playfair Display', serif;
}

.eco-category-icon {
    font-size: 40px;
    color: #00a651;
}

/* Responsive styles */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    nav ul {
        margin-top: 15px;
    }
    
    nav ul li {
        margin-left: 0;
        margin-right: 20px;
    }
    
    .hero-title {
        font-size: 32px;
        bottom: 30px;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        margin-top: 30px;
    }

    .eco-categories {
        flex-direction: column;
    }

    .recipe-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}