/* ============================================
   GROWTECH COLLECTIVE - UNIFIED CROP STYLES
   For both browse and detail pages
   ============================================ */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: linear-gradient(to bottom, #f7fafc 0%, #ffffff 100%);
    min-height: 100vh;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
    background: linear-gradient(135deg, #2f855a 0%, #38a169 100%);
    padding: 0.6rem 1.5rem;
    box-shadow: 0 2px 10px rgba(47, 133, 90, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 0.5rem;
    padding: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav-logo {
    height: 35px;
    width: auto;
}

.name {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

nav li:not(.brand) {
    display: inline-block;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================
   HERO SECTIONS
   ============================================ */
.crops-hero {
    background: linear-gradient(135deg, #2f855a 0%, #38a169 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(47, 133, 90, 0.2);
}

.crops-hero h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.crops-hero p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   MAIN CONTAINERS
   ============================================ */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
}

.content-box {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 2rem;
}

/* ============================================
   SEARCH SECTION
   ============================================ */
.search-section {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    margin: 2rem 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-box input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: #f7fafc;
    font-family: inherit;
}

.search-box input:focus {
    outline: none;
    border-color: #2f855a;
    background: white;
    box-shadow: 0 4px 16px rgba(47, 133, 90, 0.15);
}

.search-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: #a0aec0;
}

/* ============================================
   CATEGORY FILTERS
   ============================================ */
.category-filter {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e2e8f0;
    background: white;
    color: #4a5568;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #2f855a;
    color: #2f855a;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #2f855a 0%, #38a169 100%);
    color: white;
    border-color: #2f855a;
}

/* ============================================
   RESULTS INFO
   ============================================ */
.results-info {
    text-align: center;
    margin: 2rem 0 1rem;
    color: #4a5568;
    font-size: 1.05rem;
}

/* ============================================
   CROPS GRID
   ============================================ */
.crops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.crop-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.crop-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(47, 133, 90, 0.15);
    border-color: #2f855a;
}

.crop-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.crop-card h3 {
    color: #2d3748;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.crop-category {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.crop-card-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.view-details {
    color: #2f855a;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ============================================
   NO RESULTS
   ============================================ */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #718096;
}

.no-results p:first-child {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ============================================
   CROP DETAIL PAGE
   ============================================ */
.back-button-container {
    margin-bottom: 2rem;
}

.back-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: white;
    color: #2f855a;
    border: 2px solid #2f855a;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: #2f855a;
    color: white;
}

.crop-header {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
    border-radius: 16px;
    margin-bottom: 2rem;
}

.crop-emoji-large {
    font-size: 6rem;
    margin-bottom: 1rem;
}

.crop-header h1 {
    color: #2f855a;
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.crop-category-badge {
    display: inline-block;
    background: #2f855a;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
}

/* ============================================
   INFO SECTIONS
   ============================================ */
.info-section {
    margin: 2.5rem 0;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.info-section:last-child {
    border-bottom: none;
}

.info-section h2 {
    color: #2f855a;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.info-section p {
    color: #4a5568;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ============================================
   FERTILIZER SECTION
   ============================================ */
.fertilizer-section {
    background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid #48bb78;
}

.fertilizer-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.fertilizer-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid #9ae6b4;
    transition: all 0.3s ease;
}

.fertilizer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(47, 133, 90, 0.15);
}

.fertilizer-card h4 {
    color: #2f855a;
    margin: 0.5rem 0;
    font-size: 1.2rem;
}

.cost-badge {
    display: inline-block;
    background: #2f855a;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ============================================
   DISEASE & PEST SECTIONS
   ============================================ */
.disease-section, .pest-section {
    background: linear-gradient(135deg, #fff5f5 0%, #fffaf0 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid #fc8181;
}

.disease-card, .pest-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    border: 2px solid #fed7d7;
    transition: all 0.3s ease;
}

.disease-card:hover, .pest-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(252, 129, 129, 0.15);
}

.disease-card h3, .pest-card h3 {
    color: #c53030;
    margin-top: 0;
}

.symptoms {
    color: #744210;
    font-style: italic;
    margin: 0.5rem 0;
}

.treatment {
    background: #f0fff4;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    border-left: 3px solid #2f855a;
}

.treatment strong {
    color: #2f855a;
}

/* ============================================
   PROVINCES & VARIETIES
   ============================================ */
.provinces-section {
    background: linear-gradient(135deg, #ebf8ff 0%, #e6fffa 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.provinces-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.province-badge {
    background: white;
    color: #2c5282;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid #bee3f8;
}

.varieties-section {
    margin: 2rem 0;
}

.varieties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.variety-card {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #2f855a;
}

.variety-card h4 {
    color: #2f855a;
    margin-top: 0;
}

/* ============================================
   GARDEN PLANNER
   ============================================ */
.garden-planner {
    background: linear-gradient(135deg, #ebf8ff 0%, #e6fffa 100%);
    padding: 2.5rem;
    border-radius: 16px;
    margin: 3rem 0;
    border: 2px solid #4299e1;
}

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

.input-group label {
    display: block;
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    border: 2px solid #bee3f8;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.2);
}

.primary-btn {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
    display: block;
    width: 100%;
    margin-top: 1rem;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 153, 225, 0.4);
}

/* ============================================
   LOADING & ERROR STATES
   ============================================ */
.loading-state, .error-state {
    text-align: center;
    padding: 4rem 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #2f855a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-state h2 {
    color: #c53030;
    margin-bottom: 1rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .brand {
        flex-basis: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }

    main {
        padding: 2rem 1rem;
    }

    .crops-hero h1, .crop-header h1 {
        font-size: 2rem;
    }

    .crops-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .content-box {
        padding: 2rem 1.5rem;
    }

    .fertilizer-options, .varieties-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .crop-emoji {
        font-size: 3rem;
    }

    .crop-emoji-large {
        font-size: 4rem;
    }

    .crop-card h3 {
        font-size: 1.3rem;
    }
}
/* ============================================
   SITE FOOTER - FULLY UPDATED
   ============================================ */
.site-footer {
    background: linear-gradient(135deg, #2f855a 0%, #38a169 100%);
    color: white;
    padding: 3rem 2rem 1rem;
    font-size: 0.95rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 2rem;
    gap: 2rem;
}

.footer-section {
    flex: 1 1 250px;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #ffffff; /* White headings */
}

.footer-section p,
.footer-section ul,
.footer-section li {
    color: #ffffff; /* White text for readability */
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ffffff; /* White links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #f0fff4; /* Slightly lighter white on hover */
}

/* Footer Social Media */
.footer-social-media {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.footer-social-media a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
    background: #ffffff; /* White circle */
    color: #2f855a; /* Green icon */
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.footer-social-media a:hover {
    transform: translateY(-5px) scale(1.1);
    background: #38a169; /* Green on hover */
    color: #ffffff; /* Icon turns white on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    padding-top: 1rem;
    font-size: 0.85rem;
    color: #ffffff; /* Full white copyright */
    font-weight: 500; /* Slightly bolder for visibility */
}

#copy {
    color: white;
}