/* 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;
    background-color: #f8f9fa;
    color: #333;
}

main a,
footer a {
    color: #1a4016;
    text-decoration: underline;
}

main a:hover,
footer a:hover {
    color: #2d5a27;
}

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

/* Header Styles */
header {
    background-color: #1a3a15;
    color: white;
    padding: 0.75rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    min-height: 3rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.9;
    color: white;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

header nav .nav-links a,
header nav .nav-links a:link,
header nav .nav-links a:visited,
header nav .nav-links a:active,
header nav .nav-links a:focus {
    color: #ffffff;
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    background-color: transparent;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    font-weight: 500;
    white-space: nowrap;
    font-size: 0.95rem;
}

header nav .nav-links a:hover,
header nav .nav-links a:focus:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    text-decoration: none;
}

header nav .nav-links a.active {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.6);
}

/* Force white color on header navigation links - highest priority */
header .nav-links a:hover {
    color: white;
}

header .nav-links a:focus {
    color: white;
}

header .nav-links a:active {
    color: white;
}

header .nav-links a.active {
    color: white;
}

/* Main Content */
main {
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #4CAF50, #2d5a27);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Content Sections */
.content {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.content h2 {
    color: #1a4016;
    margin-bottom: 1rem;
}

.content h3 {
    color: #1a4016;
    margin-bottom: 0.5rem;
}

/* Grid Layouts */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    text-align: center;
    padding: 1rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Tips and Info Boxes */
.tip-box {
    background: #f8f9fa;
    padding: 1.5rem;
    border-left: 4px solid #4CAF50;
    margin-top: 1rem;
}

.tip-box h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.pro-tip {
    background: #d1ecf1;
    padding: 1.5rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.pro-tip h3,
.pro-tip h4 {
    margin-top: 0;
}

.pro-tip p {
    margin-bottom: 0;
}

.value-item {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.value-item strong {
    color: #1a4016;
}

/* Lists */
.checklist {
    line-height: 2;
    font-size: 1.1rem;
}

/* Buttons - Consolidated Sizing and Alignment */
/* Base button styles - Default size */
.btn,
.btn-secondary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    text-decoration: none;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
    vertical-align: middle;
}

/* Primary button */
.btn {
    background-color: #2d7a2f;
    color: white;
    border-color: #2d7a2f;
}

.btn:hover {
    background-color: #3d8a3f;
    border-color: #3d8a3f;
    color: white;
    text-decoration: none;
}

.btn:visited {
    color: white;
}

.btn:active,
.btn:focus {
    color: white;
}

/* Secondary button */
.btn-secondary {
    background-color: #5a6268;
    color: white;
    border-color: #5a6268;
}

.btn-secondary:hover {
    background-color: #4a5056;
    border-color: #4a5056;
    color: white;
    text-decoration: none;
}

.btn-secondary:visited {
    color: white;
}

.btn-secondary:active,
.btn-secondary:focus {
    color: white;
}

/* Outlined button */
.btn-outline {
    background-color: transparent;
    color: #4CAF50;
    border-color: #4CAF50;
}

.btn-outline:hover:not(:disabled) {
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
}

.btn-outline:visited {
    color: #4CAF50;
}

.btn-outline:hover:visited {
    color: white;
}

/* Button sizes */
.btn-large {
    padding: 0.875rem 1.75rem;
    font-size: 1.0625rem;
}

/* Disabled state */
.btn:disabled,
.btn-secondary:disabled,
.btn-outline:disabled {
    background-color: #ccc;
    border-color: #ccc;
    color: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Button on hero background needs better contrast */
.hero .btn {
    background-color: white;
    color: #1a4016;
    border-color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    margin-top: 1.5rem;
}

.hero .btn:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
    color: #1a4016;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero .btn:visited {
    color: #1a4016;
}

/* Button groups and spacing */
.btn-group {
    display: inline-flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-spaced {
    margin: 0.5rem;
}

/* Footer */
footer {
    background-color: #1a3a15;
    color: white;
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
    font-size: 0.95rem;
}

footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 1px;
}

footer a:hover {
    color: white;
    border-bottom-color: white;
}

footer p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

footer p:last-child {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 2.5rem 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .content {
        padding: 2rem 1.5rem;
    }

    .features-grid,
    .values-grid,
    .steps-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    header {
        padding: 0.5rem 0;
    }

    nav {
        gap: 0.5rem;
        min-height: auto;
    }

    .logo {
        font-size: 1.25rem;
    }

    .nav-links {
        gap: 0.25rem;
        width: 100%;
        justify-content: flex-end;
    }

    header nav .nav-links a {
        padding: 0.35rem 0.5rem;
        font-size: 0.85rem;
        color: #ffffff;
        text-decoration: none;
    }

    header nav .nav-links a:hover {
        color: #ffffff;
    }

    .form-group-inline {
        flex-direction: column;
        gap: 1rem;
    }

    .newsletter-signup {
        padding: 2rem 1.5rem;
    }

    .coming-soon-banner {
        margin: 0 0 2rem 0;
        padding: 2rem 1.5rem;
    }

    .coming-soon-banner h2 {
        font-size: 1.5rem;
    }

    .cta-section {
        padding: 2.5rem 1.5rem;
    }

    .step-card {
        padding: 1.5rem;
    }

    .pricing-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 1rem;
    }

    .content {
        padding: 1.5rem 1rem;
    }

    .container {
        padding: 0 10px;
    }

    header {
        padding: 0.4rem 0;
    }

    nav {
        justify-content: center;
        text-align: center;
    }

    .logo {
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
        margin-bottom: 0.25rem;
    }

    .nav-links {
        justify-content: center;
        gap: 0.2rem;
    }

    header nav .nav-links a {
        padding: 0.3rem 0.4rem;
        font-size: 0.8rem;
    }

    .newsletter-signup {
        padding: 1.5rem 1rem;
    }

    .coming-soon-banner {
        margin: 0 0 2rem 0;
        padding: 1.5rem 1rem;
    }

    .cta-section {
        padding: 2rem 1rem;
    }

    .step-card {
        padding: 1.5rem 1rem;
    }

    .pricing-card {
        padding: 1.5rem 1rem;
    }
}

/* API Documentation specific styles */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #1a4016;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #595959;
    line-height: 1.6;
}

/* Enhanced pro-tip styling for API docs */
.pro-tip {
    background: #e8f5e8 !important;
    border-left: 4px solid #2d5a27;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.pro-tip h3,
.pro-tip h4 {
    margin-top: 0;
    color: #1a4016;
}

/* Poster Creator styles */
.coming-soon-banner {
    background: linear-gradient(135deg, #e8f5e8, #d4ebd4);
    margin: 2rem 0 3rem 0;
    padding: 3rem 2rem;
    text-align: center;
    border-bottom: 3px solid #4CAF50;
    border-radius: 8px;
}

.coming-soon-banner h2 {
    color: #1a4016;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.newsletter-signup {
    background: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    margin: 2rem auto;
}

.newsletter-form {
    margin-top: 2rem;
}

.form-group-inline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.form-group-inline label {
    text-align: left;
    font-weight: 500;
    color: #333;
}

.form-group-inline .newsletter-input {
    width: 100%;
}

.newsletter-input {
    flex: 1;
    padding: 0.625rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    font-size: 0.9375rem;
    line-height: 1.5;
    height: auto;
}

.newsletter-input:focus {
    outline: none;
    border-color: #4CAF50;
}

.privacy-note {
    color: #595959;
    font-size: 0.9rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.step-card {
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem auto;
}

.preview-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.preview-placeholder {
    aspect-ratio: 3/4;
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.preview-placeholder:hover {
    border-color: #4CAF50;
    background: #f0f8f0;
}

.placeholder-content {
    text-align: center;
    color: #595959;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.pricing-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-card h3 {
    color: #1a4016;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.price {
    font-size: 3rem;
    font-weight: bold;
    color: #1a5a1d;
    margin-bottom: 0.5rem;
}

.price strong {
    color: #1a5a1d;
    font-weight: 700;
}

.plan-description {
    color: #595959;
    margin-bottom: 2rem;
}

.features-list {
    text-align: left;
    margin-bottom: 2rem;
    padding-left: 0;
    list-style: none;
}

.features-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 1.5rem;
}

.features-list li:before {
    content: "✓";
    color: #4CAF50;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.features-list li:last-child {
    border-bottom: none;
}



.cta-section {
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 3rem 2rem;
    border-radius: 12px;
    margin: 3rem 0;
}

.cta-section h2 {
    color: #1a4016;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    color: #595959;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Articles Styles */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card h2 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    line-height: 1.3;
}

.article-card h2 a {
    color: #1a4016;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-card h2 a:hover {
    color: #2d5a27;
}

.article-excerpt {
    color: #595959;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
}

.article-meta time {
    color: #5a5a5a;
}

.read-more {
    color: #1a4016;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.read-more:hover {
    color: #2d5a27;
}

/* Single Article Styles */
.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero .article-date {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    margin-top: 0.5rem;
}

.hero .article-date time {
    color: rgba(255, 255, 255, 0.95);
}

.article-date {
    color: #5a5a5a;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.article-featured-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 8px;
    margin: 2rem 0;
    background-color: #f0f0f0;
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-body h2 {
    color: #1a4016;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-body h3 {
    color: #1a4016;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-body p {
    margin-bottom: 1.25rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body strong {
    color: #1a4016;
    font-weight: 600;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-body {
        font-size: 1rem;
    }
}

/* Sample Data Viewer Styles */
.sample-data-viewer {
    margin-top: 2rem;
    padding: 2rem;
    background: #f5f5f5;
    border-radius: 8px;
}

.sample-data-container {
    display: none;
    margin-top: 2rem;
}

.sample-data-container.is-visible {
    display: block;
}

.sample-loading {
    text-align: center;
    padding: 2rem;
}

.sample-content {
    display: none;
}

.sample-content.is-visible {
    display: block;
}

.sample-controls {
    margin-bottom: 1rem;
    text-align: right;
}

.sample-plants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.sample-plants-grid.is-hidden {
    display: none;
}

.plant-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.plant-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.plant-card h4 {
    margin: 0 0 0.5rem 0;
    color: #2c5f2d;
}

.plant-card .scientific-name {
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.plant-card .category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.plant-card .info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

.plant-detail {
    display: none;
    margin-top: 2rem;
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

.plant-detail.is-visible {
    display: block;
}

.plant-detail>.btn-secondary {
    margin-bottom: 1rem;
}

.plant-detail-section {
    margin-bottom: 1.5rem;
}

.plant-detail-section h4 {
    color: #2c5f2d;
    margin-bottom: 0.5rem;
}

.variety-item {
    background: white;
    padding: 1rem;
    margin: 0.5rem 0;
    border-left: 3px solid #4caf50;
}

.translations-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.translation-badge {
    padding: 0.25rem 0.75rem;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 12px;
    font-size: 0.85rem;
}