/* === Explore Page Styles === */
/* === Explore CSS File == */

/* === Scroll Header === */
.scroll-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.7);
    color: #1b5e20;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.scroll-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-left, .scroll-right {
    font-size: 1.5em;
    font-weight: 700;
    color: #1b5e20;
}

.back-link {
    display: inline-block;
    margin-bottom: 15px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.back-link:hover {
    color: #7CB342;
}

/* === Filter Section === */
.filter-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px 30px;
    margin-bottom: -60px;
    margin-top: 90px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.filter-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-container label {
    font-weight: 600;
    color: #1B5E20;
    white-space: nowrap;
}

.filter-select {
    padding: 10px 15px;
    border: 2px solid rgba(27, 94, 32, 0.3);
    border-radius: 15px;
    font-size: 1em;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Manrope', sans-serif;
}

.filter-select:focus {
    outline: none;
    border-color: #1B5E20;
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1);
}

/* === Plants Grid === */
.plants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.plant-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    height: 320px;
    position: relative;
}

.plant-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
    border-color: #7CB342;
}

.plant-icon {
    font-size: 4em;
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f8fff5 0%, #e8f5e8 100%);
    border-bottom: 2px solid rgba(123, 179, 66, 0.3);
}

.plant-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plant-name {
    font-size: 1.2em;
    font-weight: 700;
    color: #1B5E20;
    margin-bottom: 12px;
    line-height: 1.3;
}

.plant-category {
    font-size: 0.9em;
    color: #558B2F;
    display: inline-block;
    background: linear-gradient(135deg, #f8fff5 0%, #e8f5e8 100%);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.plant-description {
    font-size: 0.9em;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}

.plant-btn {
    font-family: 'Manrope', sans-serif;
    width: 100%;
    padding: 10px;
    background: linear-gradient(45deg, #6b9939, #7cb342);
    color: #fff;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #7CB342;
    box-shadow: 0 5px 15px rgba(82, 183, 136, 0.3);
}

.plant-btn:hover {
    background: #FAFBF7;
    color: #1B5E20;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(27, 94, 32, 0.4);
}

.bookmark-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1B5E20;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: white;
}

.empty-state h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: white;
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .scroll-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .scroll-right {
        width: 100%;
    }

    .scroll-right .filter-container {
        width: 100%;
    }

    .back-link {
        margin-bottom: 20px;
        font-size: 0.95em;
        padding: 10px 15px;
    }

    .filter-section {
        padding: 20px 15px;
        margin-bottom: 25px;
    }

    .filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .filter-container label {
        font-size: 0.95em;
        margin-bottom: 5px;
    }

    .filter-select {
        padding: 12px 15px;
        font-size: 0.95em;
        width: 100%;
    }

    .plants-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .plant-card {
        height: auto;
        padding: 16px;
        border-radius: 15px;
    }

    .plant-icon {
        font-size: 3.2em;
        padding: 20px 12px;
    }

    .plant-info {
        padding: 12px;
    }

    .plant-name {
        font-size: 1.05em;
        margin-bottom: 10px;
    }

    .plant-btn {
        padding: 12px;
        font-size: 0.9em;
    }

    .empty-state {
        padding: 40px 20px;
    }

    .empty-state h2 {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .back-link {
        margin-bottom: 15px;
        font-size: 0.9em;
        padding: 8px 12px;
    }

    .filter-section {
        padding: 15px 12px;
        margin-bottom: 20px;
        border-radius: 12px;
    }

    .filter-container {
        gap: 10px;
    }

    .filter-container label {
        font-size: 0.9em;
    }

    .filter-select {
        padding: 10px 12px;
        font-size: 0.9em;
    }

    .plants-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .plant-card {
        padding: 12px;
        border-radius: 12px;
    }

    .plant-icon {
        font-size: 2.6em;
        padding: 14px 8px;
    }

    .plant-info {
        padding: 10px;
    }

    .plant-name {
        font-size: 0.98em;
        margin-bottom: 8px;
    }

    .plant-btn {
        padding: 10px;
        font-size: 0.85em;
    }

    .empty-state {
        padding: 30px 15px;
    }

    .empty-state h2 {
        font-size: 1.2em;
    }
}

/* === Mobile Enhancements === */
@media (max-width: 768px) {
    /* Touch-friendly plant cards */
    .plant-card {
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .plant-card:active {
        transform: scale(0.98);
    }

    /* Better filter interaction */
    .filter-select {
        appearance: none;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
        background-position: right 0.5rem center;
        background-repeat: no-repeat;
        background-size: 1.5em 1.5em;
        padding-right: 2.5rem;
    }

    /* Improve card layout */
    .plant-info {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
    }

    .plant-description {
        flex-grow: 1;
    }
}

@media (max-width: 480px) {
    /* Optimize for very small screens */
    .plant-card {
        margin: 0 auto;
        max-width: 100%;
    }

    .plant-icon {
        padding: 15px;
    }

    .plant-info {
        padding: 8px;
    }

    .bookmark-badge {
        top: 8px;
        right: 8px;
        width: 24px;
        height: 24px;
        font-size: 0.82rem;
    }
}
