/* Index page specific styles */

.content-section {
    margin-bottom: 20px;
    padding: 10px 20px;
}

.category-heading {
    text-align: center;
    margin: 0 auto 20px;
    padding: 20px 30px;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    border-radius: 16px;
    border: none;
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.25);
    position: relative;
    overflow: hidden;
    max-width: 1200px;
}

.category-heading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    pointer-events: none;
}

.category-heading h2 {
    margin: 0;
    color: white;
    font-size: 1.6em;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.category-heading .category-count {
    color: rgba(255,255,255,0.95);
    font-size: 0.95em;
    font-weight: 500;
    margin-top: 6px;
    opacity: 1;
    position: relative;
    z-index: 1;
}

/* Purple zombie theme */
.category-heading.zombies {
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    box-shadow: 0 6px 25px rgba(147, 51, 234, 0.25);
}

.category-heading.zombies::before {
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
}

.category-heading.zombies h2 {
    color: white;
}

.category-heading.zombies .category-count {
    color: rgba(255,255,255,0.95);
}


.category-heading.zombies h2 {
    border-bottom-color: #7C3AED;
}

.plant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: clamp(12px, 2.5vw, 18px);
    max-width: 1200px;
    margin: 0 auto;
}

.plant-card {
    background: linear-gradient(145deg, #ffffff, #fafbfc);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 0;
    text-decoration: none;
    color: inherit;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
    height: 260px;
    display: flex;
    flex-direction: column;
}

.plant-card:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.18);
    border-color: rgba(76, 175, 80, 0.3);
}

.plant-card.zombie:hover {
    box-shadow: 0 8px 30px rgba(147, 51, 234, 0.18);
    border-color: rgba(147, 51, 234, 0.3);
}

.plant-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(76, 175, 80, 0.06) 0%, 
        rgba(139, 195, 74, 0.06) 50%, 
        rgba(76, 175, 80, 0.06) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 1;
}

.plant-card.zombie::before {
    background: linear-gradient(135deg, 
        rgba(147, 51, 234, 0.06) 0%, 
        rgba(168, 139, 250, 0.06) 50%, 
        rgba(147, 51, 234, 0.06) 100%);
}

.plant-card:hover::before {
    opacity: 1;
}

.plant-image-container {
    position: relative;
    height: 160px;
    background: linear-gradient(135deg, #f0f8f0, #e8f5e8);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 2;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.plant-card.zombie .plant-image-container {
    background: linear-gradient(135deg, #faf8ff, #f3e8ff);
    border-bottom-color: rgba(147, 51, 234, 0.1);
}

.plant-icon {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 12px;
    transition: all 0.35s ease;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.12));
}

.plant-card:hover .plant-icon {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.16));
}

.plant-info {
    padding: 16px;
    text-align: center;
    background: white;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.plant-name {
    font-size: 1.25em;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1b5e20;
    text-shadow: none;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

.plant-card.zombie .plant-name {
    color: #5B21B6;
}

.plant-description {
    color: #64748b;
    font-size: 0.9em;
    font-weight: 400;
    opacity: 0.85;
    line-height: 1.4;
}

.plant-placeholder {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, #f1f5f9, #f8fafc);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 2.2em;
    border: 2px dashed #cbd5e1;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.08));
}

.header {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 50%, #1B5E20 100%);
    color: white;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.header-logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

.header-text {
    text-align: left;
}

.header h1 {
    font-size: 2.8em;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header p {
    font-size: 1.15em;
    margin: 0;
    opacity: 0.9;
    font-weight: 300;
}

.search-box {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.search-box input {
    width: 100%;
    padding: 16px 20px;
    font-size: 1.05em;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
    background: white;
    transform: scale(1.02);
}

.content-type-count {
    color: #4CAF50;
    font-weight: 600;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    font-size: 1.1em;
    font-weight: 500;
}

/* Force 1 column on very narrow screens */
@media (max-width: 360px) {
    .plant-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    /* Grid uses intelligent auto-fill from base styles */
    
    .plant-card {
        height: 240px;
    }

    .plant-image-container {
        height: 140px;
    }

    .plant-icon {
        width: 100px;
        height: 100px;
    }
    
    .plant-placeholder {
        width: 100px;
        height: 100px;
        font-size: 2.0em;
    }
    
    .header {
        padding: 40px 20px;
    }
    
    .header h1 {
        font-size: 2.0em;
        line-height: 1.2;
        margin-bottom: 8px;
    }
    
    .header p {
        font-size: 0.95em;
        line-height: 1.4;
        opacity: 0.95;
    }
    

    .category-heading h2 {
        font-size: 1.4em;
    }

    .header-content {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 25px;
    }

    .header-text {
        text-align: center;
    }

    .header-logo {
        height: 65px;
    }

    .search-box {
        max-width: 100%;
        margin: 0 auto;
    }

    .search-box input {
        padding: 14px 18px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    /* Grid uses intelligent auto-fill from base styles */
    
    .plant-card {
        height: 200px;
    }
    
    .plant-image-container {
        height: 110px;
    }
    
    .plant-icon {
        width: 75px;
        height: 75px;
    }
    
    .plant-placeholder {
        width: 75px;
        height: 75px;
        font-size: 1.5em;
    }
    
    .plant-info {
        padding: 12px;
    }
    
    .plant-name {
        font-size: 1.05em;
    }
    
    .plant-description {
        font-size: 0.8em;
    }

    .category-heading h2 {
        font-size: 1.25em;
    }
    
    .category-heading .category-count {
        font-size: 0.9em;
    }
    
    .header {
        padding: 25px 15px;
        text-align: center;
    }
    
    .header h1 {
        font-size: clamp(1.2em, 4vw, 1.6em);
        line-height: 1.2;
        margin-bottom: 8px;
    }

    .header p {
        font-size: 0.85em;
        line-height: 1.4;
    }

    .header-content {
        gap: 15px;
        margin-bottom: 20px;
        align-items: center;
        justify-content: center;
    }

    .header-text {
        text-align: center;
        width: 100%;
    }

    .header-logo {
        height: clamp(40px, 8vw, 50px);
        flex-shrink: 0;
    }

    .search-box {
        padding: 0 10px;
    }

    .search-box input {
        padding: 12px 16px;
        font-size: 0.95em;
    }
} 