* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9f4;
    transition: background-color 0.3s, color 0.3s;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Hero Section */
.care-hero {
    background: linear-gradient(135deg, #A5D6A7, #E8F5E9);
    padding: 60px 20px 40px;
    text-align: center;
    border-radius: 12px;
}

body.dark-mode .care-hero {
    background: linear-gradient(135deg, #2d5a2f, #1a3a1a);
}

.care-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #064E3B;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.dark-mode .care-hero h1 {
    color: #A5D6A7;
}

.care-hero p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #166534;
    max-width: 700px;
    margin: 0 auto;
}

body.dark-mode .care-hero p {
    color: #c8e6c9;
}

/* Search & Filter Section */
.care-filters {
    background: #F9F7F3;
    padding: 30px 20px;
    border-radius: 12px;
    margin-bottom: 40px;
}

body.dark-mode .care-filters {
    background: #2d2d2d;
}

.care-search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto 30px;
}

.care-search-wrapper input {
    width: 100%;
    padding: 14px 45px 14px 20px;
    border: 2px solid #064E3B;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    background: white;
    color: #333;
    transition: all 0.3s ease;
}

body.dark-mode .care-search-wrapper input {
    background: #1e1e1e;
    color: #e0e0e0;
    border-color: #4caf50;
}

.care-search-wrapper input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.care-search-wrapper .search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #064E3B;
    pointer-events: none;
}

body.dark-mode .care-search-wrapper .search-icon {
    color: #4caf50;
}

.filter-section {
    margin-bottom: 20px;
}

.filter-section h3 {
    font-size: 1.1rem;
    color: #064E3B;
    margin-bottom: 12px;
}

body.dark-mode .filter-section h3 {
    color: #A5D6A7;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    background: white;
    color: #064E3B;
    border: 2px solid #064E3B;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.dark-mode .filter-chip {
    background: #1e1e1e;
    color: #A5D6A7;
    border-color: #4caf50;
}

.filter-chip:hover {
    background: #064E3B;
    color: white;
}

body.dark-mode .filter-chip:hover {
    background: #4caf50;
    color: #1e1e1e;
}

.filter-chip.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

body.dark-mode .filter-chip.active {
    background: #66bb6a;
    border-color: #66bb6a;
}

.reset-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.reset-btn:hover {
    background: #b91c1c;
}

/* Plant Care Grid */
.care-grid-section {
    margin-bottom: 60px;
}

.care-grid-section h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: #064E3B;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.dark-mode .care-grid-section h2 {
    color: #A5D6A7;
}

.care-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .care-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.plant-care-card {
    background: #F9F7F3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    min-height: auto;
}

body.dark-mode .plant-care-card {
    background: #2d2d2d;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
}

.plant-care-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

body.dark-mode .plant-care-card:hover {
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1);
}

.plant-care-card img {
    width: 100px;
    height: 100px;
    min-width: 100px;
    max-width: 100px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 8px;
}

.plant-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
}

.plant-card-content h3 {
    font-size: 1.5rem;
    color: #064E3B;
    margin: 0 0 6px 0;
}

body.dark-mode .plant-card-content h3 {
    color: #A5D6A7;
}

.plant-category {
    display: inline-block;
    background: #E8F5E9;
    color: #166534;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 6px;
    width: fit-content;
}

body.dark-mode .plant-category {
    background: #1a3a1a;
    color: #81c784;
}

.care-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.care-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: white;
    color: #064E3B;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    border: 1px solid #A5D6A7;
    white-space: nowrap;
}

body.dark-mode .care-badge {
    background: #1e1e1e;
    color: #A5D6A7;
    border-color: #4caf50;
}

.care-badge svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.care-details-inline {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
    overflow: hidden;
}

.care-detail-inline {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.75rem;
    line-height: 1.4;
}

.care-detail-inline svg {
    width: 14px;
    height: 14px;
    min-width: 14px;
    flex-shrink: 0;
    margin-top: 1px;
    color: #4CAF50;
}

.care-detail-inline strong {
    color: #064E3B;
    min-width: 55px;
    flex-shrink: 0;
    font-size: 0.8rem;
}

body.dark-mode .care-detail-inline strong {
    color: #A5D6A7;
}

.care-detail-inline span {
    color: #555;
    word-wrap: break-word;
    font-size: 0.8rem;
}

body.dark-mode .care-detail-inline span {
    color: #c8c8c8;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

body.dark-mode .no-results {
    color: #999;
}

.no-results p {
    font-size: 1.2rem;
}

/* Care by Category Section */
.care-by-category {
    margin-bottom: 60px;
}

.care-by-category h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: #064E3B;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.dark-mode .care-by-category h2 {
    color: #A5D6A7;
}

.category-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

@media (max-width: 768px) {
    .category-tips-grid {
        grid-template-columns: 1fr;
    }
}

.category-tip-card {
    background: #F9F7F3;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.dark-mode .category-tip-card {
    background: #2d2d2d;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
}

.category-tip-card h3 {
    font-size: 1.4rem;
    color: #064E3B;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

body.dark-mode .category-tip-card h3 {
    color: #A5D6A7;
}

.category-tip-card ul {
    list-style: none;
    padding: 0;
}

.category-tip-card li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: #333;
}

body.dark-mode .category-tip-card li {
    color: #e0e0e0;
}

.category-tip-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Pot Care Section */
.pot-care-section {
    margin-bottom: 60px;
}

.pot-care-section h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: #064E3B;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.dark-mode .pot-care-section h2 {
    color: #A5D6A7;
}

.pot-care-section h3 {
    text-align: center;
    font-size: 1.5rem;
    color: #166534;
    margin: 40px 0 20px;
}

body.dark-mode .pot-care-section h3 {
    color: #81c784;
}

.pot-guide-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.pot-guide-intro p {
    font-size: 1.1rem;
    color: #555;
}

body.dark-mode .pot-guide-intro p {
    color: #c8c8c8;
}

.pot-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .pot-tips-grid {
        grid-template-columns: 1fr;
    }
}

.pot-tip-card {
    background: #E8F5E9;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body.dark-mode .pot-tip-card {
    background: #1a3a1a;
}

.pot-tip-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.pot-tip-card h3 {
    font-size: 1.2rem;
    color: #064E3B;
    margin-bottom: 12px;
}

body.dark-mode .pot-tip-card h3 {
    color: #A5D6A7;
}

.pot-tip-card p {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
}

body.dark-mode .pot-tip-card p {
    color: #e0e0e0;
}

.pot-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .pot-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .pot-cards-grid {
        grid-template-columns: 1fr;
    }
}

.pot-card {
    background: #F9F7F3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

body.dark-mode .pot-card {
    background: #2d2d2d;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
}

.pot-card:hover {
    transform: translateY(-3px);
}

.pot-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.pot-card-content {
    padding: 16px;
}

.pot-card-content h4 {
    font-size: 1.1rem;
    color: #064E3B;
    margin-bottom: 8px;
}

body.dark-mode .pot-card-content h4 {
    color: #A5D6A7;
}

.pot-size {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

body.dark-mode .pot-size {
    color: #999;
}

.pot-tip {
    font-size: 0.9rem;
    color: #333;
    font-style: italic;
}

body.dark-mode .pot-tip {
    color: #c8c8c8;
}

/* FAQ Section */
.faq-section {
    margin-bottom: 60px;
}

.faq-section h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: #064E3B;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.dark-mode .faq-section h2 {
    color: #A5D6A7;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #F9F7F3;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

body.dark-mode .faq-item {
    background: #2d2d2d;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.05);
}

.faq-item summary {
    padding: 18px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #064E3B;
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.dark-mode .faq-item summary {
    color: #A5D6A7;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 20px 20px;
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
}

body.dark-mode .faq-item p {
    color: #c8c8c8;
}

/* Mobile responsive adjustments for care cards */
@media (max-width: 600px) {
    .care-grid {
        grid-template-columns: 1fr;
    }

    .plant-care-card {
        flex-direction: column;
    }

    .plant-care-card img {
        width: 100%;
        height: 180px;
        max-width: none;
    }

    .plant-card-content h3 {
        white-space: normal;
    }

    .care-detail-inline {
        flex-direction: row;
    }

    .care-detail-inline span {
        -webkit-line-clamp: 3;
    }

    .care-detail-inline strong {
        min-width: 60px;
    }
}