:root {
    --text-primary: #333333;
    --text-secondary: #666666;
    --bg-color: #ffffff;
    --accent-color: #7a9c59; /* Muted olive green */
    --spacing-unit: 2rem;
    --container-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* Navigation */
header {
    padding: 3rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: block;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 3rem;
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent-color);
}

/* Language Switcher */
.lang-switch {
    margin-left: 2rem;
    padding-left: 2rem;
    border-left: 1px solid #eee;
}

.lang-link {
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-secondary);
}

.lang-link:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    margin-bottom: 6rem;
    position: relative;
    text-align: center;
    width: 100%;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('gfx/IMG_6516.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff; /* Text needs to be white on image */
}

/* Remove old hero image styles */
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    /* Add a slight backdrop to ensure text readability if needed, or text shadow */
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    color: #ffffff;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 300;
}

/* Sidebar Layout */
.main-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.sidebar {
    border-right: 1px solid #eee;
    padding-right: 2rem;
}

.sidebar-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    display: block;
}

/* Featured Plant Sidebar Widget */
.featured-plant {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.featured-plant-image {
    width: 100%;
    aspect-ratio: 3/5; /* High and long portrait ratio */
    object-fit: cover;
    border-radius: 4px; /* Slight rounding */
    background-color: #f0f0f0;
}

.featured-plant-info {
    text-align: left;
}

.featured-plant-name {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--text-primary);
    text-decoration: none;
}

.featured-plant-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: block;
}

.featured-plant-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}


/* Main Content Adjustments */
.latest-posts {
    margin-bottom: 0;
}

.section-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    display: block;
    text-align: left; /* Align left to match sidebar title */
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 3rem;
}

.post-card {
    display: flex;
    flex-direction: column;
}

.post-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    margin-bottom: 1.5rem;
    background-color: #f5f5f5;
    transition: opacity 0.3s ease;
}

.post-card:hover .post-image {
    opacity: 0.9;
}

.post-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-title a {
    text-decoration: none;
    color: var(--text-primary);
}

.post-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid #eee;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .sidebar {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-right: 0;
        padding-bottom: 2rem;
    }
    
    .featured-plant-image {
        aspect-ratio: 16/9; /* Use landscape on mobile */
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    header {
        flex-direction: column;
        gap: 1.5rem;
    }

    nav {
        flex-direction: column;
        width: 100%;
    }
    
    nav ul {
        gap: 1.5rem;
    }
    
    .lang-switch {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #eee;
        padding-top: 1rem;
        width: 100%;
        text-align: center;
    }
}

/* Page Header (Inner Pages) */
.page-header {
    text-align: center;
    margin: 4rem 0 6rem 0;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 300;
}

/* Filter Bar */
.filter-bar {
    margin-bottom: 4rem;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.filter-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 5px;
    transition: all 0.3s ease;
}

.filter-link:hover,
.filter-link.active {
    color: var(--text-primary);
    border-bottom: 1px solid var(--text-primary);
}

/* Nav Active State */
nav a.active {
    color: var(--text-primary);
}

/* Taxonomy Tree Styles */
.taxonomy-tree {
    list-style: none;
    padding: 0;
}

.taxonomy-tree li {
    margin-bottom: 0.5rem;
}

.taxonomy-tree summary {
    cursor: pointer;
    font-weight: 500;
    padding: 0.5rem 0;
    user-select: none;
    list-style: none; /* Hide default triangle in some browsers if desired, or keep it */
}

/* Custom indicator for summary if needed, but default is often fine */
.taxonomy-tree summary::-webkit-details-marker {
    color: var(--accent-color);
}

.taxonomy-tree ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.plant-node {
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.plant-node:hover {
    background-color: #f5f5f5;
    color: var(--accent-color);
}

.plant-node.active {
    background-color: var(--accent-color);
    color: #ffffff;
}

/* Plant Detail Styles */
.plant-detail-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.plant-detail-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    background-color: #f0f0f0;
}

.plant-detail-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.plant-detail-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-primary);
    margin: 0;
}

.plant-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.plant-detail-meta p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.plant-detail-meta strong {
    color: var(--text-primary);
    font-weight: 500;
}

.plant-detail-desc {
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 1.05rem;
}
