/* Reset basic styles */
body, html {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Container for sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4CAF50;
    text-decoration: none;
}

.logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
}

.login-btn {
    background-color: #4CAF50;
    color: white !important;
}

.login-btn:hover {
    background-color: #3e8e41 !important;
    color: white !important;
}

.logout-btn {
    background-color: #dc3545 !important;
}

.logout-btn:hover {
    background-color: #bd2130 !important;
}

/* Language switcher */
.language-switcher {
    display: inline-flex;
    align-items: center;
    margin-left: 15px;
    font-size: 0.9rem;
}

.language-switcher a {
    color: #333;
    text-decoration: none;
    padding: 3px 5px;
    border-radius: 3px;
}

.language-switcher a:hover {
    background-color: #f0f0f0;
}

.language-switcher a.active {
    font-weight: bold;
    color: #28a745;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #4CAF50;
}

/* Hero section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('./Backgrounds/kamer02.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.search-filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-container {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-container input {
    width: 100%;
    padding: 12px 20px;
    padding-right: 40px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

.sort-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-container label {
    font-weight: 500;
    color: #555;
}

.sort-container select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background-color: #f5f5f5;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
}

.sort-container select:focus {
    border-color: #4CAF50;
}

.clear-filters-btn {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    color: #666;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.clear-filters-btn:hover {
    background-color: #e0e0e0;
    color: #333;
}

.clear-filters-btn i {
    font-size: 0.8rem;
}

/* About section */
.about-section {
    padding: 60px 0;
    background-color: #ffffff;
    text-align: center;
}

.about-section h2 {
    color: #4CAF50;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #666;
}

/* Categories section */
.categories-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    text-align: center;
}

.categories-section h2 {
    color: #4CAF50;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    color: #333;
    padding: 8px 15px;
    margin: 5px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn .count {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-left: 2px;
}

.filter-btn:hover, .filter-btn.active {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* Category information section */
.category-info {
    margin-top: 40px;
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.category-info h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 1.5rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.category-item .tag {
    font-size: 0.9rem;
    padding: 5px 12px;
    margin-bottom: 10px;
}

.category-item p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

/* Gallery */
.gallery-container {
    padding: 20px 0 60px;
    background-color: #f8f9fa;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.plant-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.plant-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.plant-card a {
    text-decoration: none;
    color: inherit;
}

.card-images {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s;
}

.main-image {
    opacity: 1;
}

.hover-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.plant-card:hover .main-image {
    opacity: 0;
}

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

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin: 0 0 5px;
    color: #333;
    font-size: 1.3rem;
}

.scientific-name {
    color: #666;
    font-style: italic;
    margin: 0 0 15px;
    font-size: 0.9rem;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 20px;
    background-color: #f0f0f0;
    color: #555;
}

.tag.easy-care {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.tag.low-light {
    background-color: #e3f2fd;
    color: #1565c0;
}

.tag.rare {
    background-color: #fff3e0;
    color: #e65100;
}

.tag.flowering {
    background-color: #fce4ec;
    color: #c2185b;
}

.tag.air-purifying {
    background-color: #e0f2f1;
    color: #00796b;
}

.tag.pet-friendly {
    background-color: #f1f8e9;
    color: #558b2f;
}

.tag.drought-tolerant {
    background-color: #fff8e1;
    color: #ff8f00;
}

.tag.trailing {
    background-color: #e8eaf6;
    color: #3949ab;
}

.tag.variegated {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #4CAF50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p {
    color: #ccc;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #4CAF50;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #4CAF50;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.9rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 20px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .search-container input,
    .search-container button {
        border-radius: 30px;
        width: 100%;
    }
    
    .search-container button {
        margin-top: 10px;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
}

/* Styling for plant detail pages */
.plant-detail-header {
    background-color: #f0f8f0;
    padding: 30px 0;
    text-align: center;
}

.plant-detail-header h1 {
    color: #4CAF50;
    margin-bottom: 10px;
}

.plant-detail-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.care-section {
    margin-bottom: 30px;
}

.care-section h2 {
    color: #4CAF50;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.care-section ul {
    padding-left: 20px;
}

.care-section li {
    margin-bottom: 10px;
}

.care-section strong {
    color: #3e8e41;
}

/* Comment section styling */
.comment-section {
    margin-top: 50px;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
}

.comment-section h2 {
    color: #4CAF50;
    margin-bottom: 20px;
}

#commentForm {
    margin-bottom: 30px;
}

#commentForm textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
    max-width: 100%;
}

#commentForm button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    font-weight: 500;
}

#commentForm button:hover {
    background-color: #3e8e41;
}

#comments {
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
}

.comment {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.comment:last-child {
    border-bottom: none;
}

.comment-date {
    color: #999;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.comment-text {
    color: #555;
}

/* Button styling */
.button {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 12px 25px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.button:hover {
    background-color: #3e8e41;
}

.button-secondary {
    background-color: #504caf;
}

.button-secondary:hover {
    background-color: #3f3c8e;
}

/* Collapsible content */
.collapsible {
    background-color: #c19962;
    color: white;
    padding: 12px 25px;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    margin: 10px 0;
    transition: background-color 0.3s;
}

.collapsible:hover {
    background-color: #a17d4f;
}

.collapsible:after {
    content: '\002B';
    float: right;
    font-weight: bold;
}

.active:after {
    content: "\2212";
}

.content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.content.active {
    padding: 20px;
    max-height: 500px;
}

/* Form styling */
form {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 5px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="file"] {
    margin-bottom: 15px;
}

/* Gallery page styling */
.plant-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.results-count {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.results-count span {
    font-weight: 600;
    color: #4CAF50;
}

/* Cookie notification */
.cookie-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px;
    max-width: 300px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.cookie-notification p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #555;
}

.button-small {
    padding: 5px 10px;
    font-size: 0.8rem;
    min-width: auto;
}