
/* Reset and Base 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;
    background-color: #f8f9fa;
}

/* Header */
.header {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.header .subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    opacity: 1;
}

.header .tagline {
    font-size: 1rem;
    opacity: 0.8;
}

/* Plant Detail Page Header */
.brand-header {
    text-align: center;
}

.brand-title {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    color: white;
}

.plant-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: white;
}

.brand-header .latin-name {
    font-size: 1.1rem;
    font-style: italic;
    opacity: 0.9;
    color: white;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Search Section */
.search-section {
    background: white;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.search-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #4CAF50;
}

.search-btn {
    padding: 12px 25px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background: #45a049;
}

/* Categories */
.categories {
    background: white;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.categories h2 {
    color: #4CAF50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.category-card:hover, .category-card.active {
    border-color: #4CAF50;
    background: #f1f8e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.category-card h3 {
    color: #4CAF50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.category-count {
    color: #666;
    font-size: 0.9rem;
}

/* Plants Grid */
.plants-section {
    background: white;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.plants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.plant-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
    cursor: pointer;
}

.plant-card:hover {
    border-color: #4CAF50;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.plant-card h3 {
    color: #4CAF50;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.plant-card .latin-name {
    font-style: italic;
    color: #666;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.plant-card .category {
    background: #e8f5e8;
    color: #4CAF50;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.plant-card .description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Plant Detail Page */
.plant-detail {
    background: white;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.plant-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plant-header h1 {
    color: #4CAF50;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.plant-header .latin-name {
    font-style: italic;
    color: #666;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.plant-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.plant-info h3 {
    color: #4CAF50;
    margin-bottom: 1rem;
}

/* Care Calendar */
.care-calendar {
    margin-top: 2rem;
}

.care-calendar h3 {
    color: #4CAF50;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.calendar-table th {
    background: #4CAF50;
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
}

.calendar-table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
    vertical-align: top;
}

.calendar-table tr:nth-child(even) {
    background: #f8f9fa;
}

.calendar-table tr:hover {
    background: #e8f5e8;
}

.month-name {
    font-weight: bold;
    background: #e8f5e8 !important;
    color: #4CAF50;
}

/* Sticky Sidebar */
.sticky-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    max-width: 200px;
}

.sticky-sidebar .sidebar-btn {
    display: block;
    width: 100%;
    padding: 0.8rem;
    margin: 0.5rem 0;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.sticky-sidebar .sidebar-btn:hover {
    background: #45a049;
}

/* Back to Home */
.back-home {
    text-align: center;
    margin: 2rem 0;
}

.back-home a {
    display: inline-block;
    padding: 1rem 2rem;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s;
}

.back-home a:hover {
    background: #45a049;
}

/* Hidden class for filtering */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .plants-grid {
        grid-template-columns: 1fr;
    }
    
    .sticky-sidebar {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        max-width: none;
        margin: 2rem 0;
    }
    
    .calendar-table {
        font-size: 0.8rem;
    }
    
    .calendar-table th,
    .calendar-table td {
        padding: 0.5rem;
    }
}

/* Print Styles */
@media print {
    .sticky-sidebar,
    .back-home {
        display: none;
    }
    
    .plant-detail {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
