/* Green Valley Allotments - Main Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}



a {
    text-decoration: none; /* removes underline */
    color: inherit;        /* keeps text color consistent */
}

a:hover {
    text-decoration: none; /* ensures no underline on hover */
    color: #2c3e50;        /* optional hover color */
}

/* Header */
header {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c2c 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo::before {
    content: "🌱";
    font-size: 2rem;
}

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

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    cursor: pointer;
}

nav a:hover {
    color: #b8e994;
}

/* Logout form in navigation */
.logout-form {
    margin: 0;
    padding: 0;
}

.logout-link {
    background: none;
    border: none;
    color: white;
    font-family: inherit;
    font-size: inherit;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s;
}

.logout-link:hover {
    color: #b8e994;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(45, 80, 22, 0.5), rgba(45, 80, 22, 0.6)),
                url('https://picsum.photos/1200/600?random=1');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 8rem 20px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #ff6b6b;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: #ee5a52;
}

.btn-secondary {
    background: #4ecdc4;
}

.btn-secondary:hover {
    background: #45b8b0;
}

/* Content Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2d5016;
    margin-bottom: 3rem;
}

.features a {
    display: block; /* Make the <a> behave like a block wrapping the card */
    height: 100%;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    align-items: stretch; /* ensures all items stretch to the same height */
}

.feature-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    height: 100%; /* ensure cards fill the grid cell */
}


.feature-card p {
    flex-grow: 1; /* makes all paragraphs push content to bottom uniformly */
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #2d5016;
    /* margin-bottom: 1rem;*/
    margin: 1rem 0;
}


/* Plant */
.plant-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: auto;
}

.plant-tag {
    padding: 4px 12px;
    background: #e8f5e9;
    color: #2d5016;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Pests */

.pest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: auto;
}

.pest-tag {
    padding: 4px 12px;
    background: #ffe8e8;
    color: #c62828;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Drinks */

.drink-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: auto;
}

.drink-tag {
    padding: 4px 12px;
    background: #ffe8e8;
    color: #c62828;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}



/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.4));
}

/* Tag Filter Section */
.filter-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.filter-title {
    color: #2d5016;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.tag-btn {
    padding: 8px 16px;
    background: #f0f0f0;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
}

.tag-btn:hover {
    background: #e8f5e9;
    border-color: #4a7c2c;
}

.tag-btn.active {
    background: #4a7c2c;
    color: white;
    border-color: #4a7c2c;
}

.clear-btn {
    padding: 8px 20px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.3s;
}

.clear-btn:hover {
    background: #ee5a52;
}

/* Video Gallery */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.video-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.video-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(45, 80, 22, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.play-icon::before {
    content: "▶";
    margin-left: 4px;
}

.video-info {
    padding: 1.5rem;
}

.video-title {
    color: #2d5016;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.video-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.video-tag {
    padding: 4px 12px;
    background: #e8f5e9;
    color: #2d5016;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.2rem;
}



/* Footer */
footer {
    background: #2d5016;
    color: white;
    padding: 2rem 20px;
    text-align: center;
}

/* Login Page */
.login-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(103, 126, 234, 0.9), rgba(118, 75, 162, 0.9)),
                url('https://picsum.photos/1200/800?random=6');
    background-size: cover;
    background-position: center;
    padding: 2rem;
}

.login-box {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    color: #2d5016;
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #4a7c2c;
}

.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background-color: white;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: #4a7c2c;
}

/* Dashboard */
.dashboard {
    background: linear-gradient(to bottom, #f5f5f5, #e8f5e9);
    min-height: calc(100vh - 200px);
}

.dashboard-header {
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.95), rgba(74, 124, 44, 0.95)),
                url('https://images.unsplash.com/photo-1585320806297-9794b3e4eeae?w=1200&h=300&fit=crop');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 3rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    margin-bottom: 2rem;
}

.dashboard-header h2 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.dashboard-header p {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.dashboard-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dashboard-card h3 {
    color: #2d5016;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #4a7c2c;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.plot-info {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.plot-info p {
    margin: 0.5rem 0;
    display: flex;
    justify-content: space-between;
}

.activity-item {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-date {
    color: #666;
    font-size: 0.9rem;
}

.logout-btn {
    background: #ff6b6b;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .login-box {
        padding: 2rem;
    }

    .video-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
            
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.4rem;
    }
    
    .logo::before {
        font-size: 1.5rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .hero {
        padding: 4rem 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 2rem 15px;
    }
    .video-gallery {
        grid-template-columns: 1fr;
    }
            
    .container {
        padding: 2rem 15px;
    }
}
