/* Global Styles */
:root {
    --primary-color: #4a6741;
    --secondary-color: #8ba888;
    --accent-color: #d4b483;
    --light-color: #f5f5f5;
    --dark-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* Header Styles */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}
/* Home Page Styles */
.welcome-section {
    text-align: center;
    padding: 2rem;
    background-color: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.search-bar {
    display: flex;
    max-width: 600px;
    margin: 1rem auto;
}

.search-bar input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.search-bar button {
    padding: 0 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* Post Feed Styles */
.posts-feed {
    padding: 0 20px;
    width: 100%;
}

.post-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Ensure cards take full height of their grid cell */
}

/* Grid layout */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px; /* Optional: set a max-width for larger screens */
}

/* Responsive design */
@media (max-width: 1024px) {
    .post-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
}

/* Rest of your existing styles... */
.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.avatar {
    width: 100px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.post-header h3 {
    margin-bottom: 0.2rem;
    color: var(--primary-color);
}

.post-header small {
    color: #666;
    font-size: 0.9rem;
}

.post-content {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.post-actions {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

.post-actions .btn {
    align-self: flex-start;
    margin-bottom: 0.5rem;
    padding: 0.3rem 0.8rem;
    background: none;
    border: 1px solid #ddd;
    color: #555;
    cursor: pointer;
}

.post-actions .btn:hover {
    background-color: #f5f5f5;
}
/* Responsive Styles */
@media (max-width: 768px) {
    .search-bar {
        flex-direction: column;
    }
    
    .search-bar input {
        border-radius: 4px;
        margin-bottom: 0.5rem;
    }
    
    .search-bar button {
        border-radius: 4px;
        padding: 0.8rem;
    }
}
.welcome-section {
    width: 100%;
    max-width: 100%;
    height: 657px;
    margin: 0;
    padding: 2rem;
    background-image: url('home-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

/* Fix h1 overlay text inside image if needed */
.welcome-section h1 {
    font-size: 2rem;
    margin-bottom: 1rem;

    padding: 0.5rem 1rem;
    border-radius: 5px;
}

/* Search bar centered inside welcome-section */
.search-bar {
    display: flex;
    width: 80%;
    max-width: 600px;
    margin: 0 auto 1rem auto;
}

.search-bar input {
    flex: 1;
    padding: 0.8rem;
    font-size: 1rem;
    border: none;
    border-radius: 4px 0 0 4px;
}

.search-bar button {
    padding: 0 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* Button container under image */
.create-post-center {
    text-align: center;
    margin-top: 1rem;
}

/* Smaller Create Post button */
.btn-small {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
}

/* Extended Welcome Section */
.welcome-hero {
    width: 100%;
    min-height: 400px; /* Increased height */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 12px;
    margin-bottom: 3rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.welcome-content {
    width: 100%;
    max-width: 800px; /* Increased width */
    text-align: center;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Larger text and elements */
.welcome-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #2d6a4f;
}

.search-bar {
    display: flex;
    max-width: 600px;
    margin: 1.5rem auto;
}

.search-bar input {
    flex: 1;
    padding: 1rem;
    font-size: 1.1rem;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.search-bar button {
    padding: 0 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

/* Background image option (uncomment if needed) */
/*
.welcome-hero {
    background-image: url('images/welcome-bg.jpg');
    background-size: cover;
    background-position: center;
}
*/

/* Responsive adjustments */
@media (max-width: 768px) {
    .welcome-hero {
        min-height: 300px;
        padding: 1rem;
    }
    
    .welcome-content {
        padding: 1.5rem;
    }
    
    .welcome-hero h1 {
        font-size: 2rem;
    }
}
/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background-color: var(--accent-color);
    color: var(--dark-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn:hover {
    background-color: #c5a06d;
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

/* Simple Footer Styles */
.simple-footer {
  background-color: #4a6741; /* Same green as header */
  color: white;
  padding: 20px 0;
  text-align: center;
  font-family: Arial, sans-serif;
}

.footer-box {
  margin-bottom: 15px;
}

.footer-box h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.contact-line {
  margin: 8px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.contact-icon {
  font-size: 18px;
}

.email-link {
  color: white;
  text-decoration: none;
}

.email-link:hover {
  text-decoration: underline;
}


/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.py-1 { padding: 1rem 0; }
.py-2 { padding: 2rem 0; }


/* Additional Styles for TreeTalk */

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
    background-color: var(--light-color);
    border-radius: 8px;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

/* Post Cards */
 /* Additional Styles for Events Page */
        .events-header {
            text-align: center;
            margin-bottom: 2rem;
        }
        
        .events-header h1 {
            color: var(--primary-color);
            font-size: 2.5rem;
            margin-bottom: 0.5rem;
        }
        
        .events-header h2 {
            color: #555;
            font-size: 1.8rem;
            margin-bottom: 2rem;
        }
        
        .create-event-form {
            background-color: #f8f9fa;
            padding: 1.5rem;
            border-radius: 8px;
            margin-bottom: 2rem;
            border: 1px solid #ddd;
        }
        
        .form-row {
            display: flex;
            gap: 1rem;
            margin-bottom: 1rem;
        }
        
        .form-group {
            flex: 1;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            color: #555;
        }
        
        .form-group input {
            width: 100%;
            padding: 0.8rem;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 1rem;
        }
        
        .create-event-btn {
            background-color: var(--primary-color);
            color: white;
            border: none;
            padding: 0.8rem 1.5rem;
            border-radius: 4px;
            cursor: pointer;
            font-size: 1rem;
        }
        
        .events-list {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }
        
        .event-card {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            padding: 1.5rem;
            border-left: 4px solid var(--primary-color);
        }
        
        .event-title {
            font-size: 1.3rem;
            color: var(--primary-color);
            margin-bottom: 0.5rem;
        }
        
        .event-details {
            display: flex;
            gap: 1.5rem;
            margin-bottom: 1rem;
            color: #555;
        }
        
        .event-date, .event-location {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .join-event-btn {
            background-color: var(--primary-color);
            color: white;
            border: none;
            padding: 0.5rem 1.5rem;
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.9rem;
        }
        
        hr {
            border: none;
            border-top: 1px solid #eee;
            margin: 1.5rem 0;
        }
        
        @media (max-width: 768px) {
            .form-row {
                flex-direction: column;
                gap: 0;
            }
            
            .event-details {
                flex-direction: column;
                gap: 0.5rem;
            }
        }

        
/* Event Cards */
.event-card {
    display: flex;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
}

.event-image {
    width: 300px;
    height: 200px;
    object-fit: cover;
}

.event-details {
    padding: 1.5rem;
    flex: 1;
}
/* Events Page Specific Styles */
.events-hero {
    text-align: center;
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: 8px;
    margin-bottom: 2rem;
}

/* Event Form Styles */
.event-form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input[type="date"] {
    padding: 0.7rem;
}

.form-group input[type="file"] {
    padding: 0.5rem;
    border: none;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

/* Event Cards */
.events-list {
    margin-top: 2rem;
}

.event-card {
    display: flex;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.event-image {
    width: 300px;
    height: 200px;
    object-fit: cover;
}

.event-details {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-details h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.event-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.event-category {
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
}

.event-category.planting {
    background-color: #4a6741;
}

.event-category.workshop {
    background-color: #d4b483;
    color: var(--dark-color);
}

.event-category.conservation {
    background-color: #3a7ca5;
}

.event-category.social {
    background-color: #8ba888;
}

.event-category.other {
    background-color: #666;
}

.event-date {
    color: #666;
}

.event-location {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.event-description {
    color: #555;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.event-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.attendees {
    font-size: 0.9rem;
    color: #666;
}
/* Interested Button Styles */
.interested-btn {
    transition: all 0.3s ease;
}

.interested-btn:hover:not(.interested-confirmed) {
    background-color: #3a5a40;
    transform: translateY(-2px);
}

.interested-btn:active:not(.interested-confirmed) {
    transform: translateY(1px);
}

.interested-confirmed {
    background-color: #2d6a4f !important;
    cursor: default !important;
}
/* Responsive Styles */
@media (max-width: 768px) {
    .event-card {
        flex-direction: column;
    }
    
    .event-image {
        width: 100%;
        height: 180px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Marketplace */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 1rem;
}

.price {
    font-weight: bold;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.seller {
    font-size: 0.9rem;
    color: #666;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tag {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
}




/* Auth Background image */
.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('auth-bg.jpg'); /* make sure this is in same folder */
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    z-index: -1;
}

/* Auth page wrapper */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    padding: 2rem;
}

/* Auth form box */
.auth-container {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem 2.5rem;
    max-width: 400px;
    width: 100%;
    margin: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Tabs */
.auth-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.tab-btn {
    padding: 0.5rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #333;
}
.tab-btn.active {
    font-weight: bold;
    color: #2d6a4f;
    border-bottom: 2px solid #2d6a4f;
}

/* Show only selected tab */
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* Form styling */
.auth-form .form-group {
    margin-bottom: 1rem;
}
.auth-form label {
    font-weight: bold;
    margin-bottom: 0.3rem;
    display: block;
    color: #333;
}
.auth-form input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

/* Button */
.btn-primary {
    background-color: #2d6a4f;
    color: white;
    border: none;
    padding: 0.6rem;
    width: 100%;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background-color 0.3s ease;
}
.btn-primary:hover {
    background-color: #22543d;
}

.auth-form a {
    color: #2d6a4f;
    text-decoration: none;
    font-size: 0.9rem;
}
.auth-form a:hover {
    text-decoration: underline;
}

/* Profile Page Styles */
.profile-section {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 2rem;
}

.profile-title {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.profile-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.profile-picture-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.change-picture-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-field {
    margin-bottom: 1.5rem;
}

.profile-field label {
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.profile-value {
    font-size: 1.1rem;
    color: #333;
}

.settings-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.settings-form .form-group {
    margin-bottom: 1rem;
}

.settings-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.settings-form input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}
