/* Plants & Herbs CSS - Thai SEO Pages */
/* Mobile-first design matching Health Tools style */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary-green: #22C55E;
    --primary-dark-green: #16A34A;
    --primary-light-green: #86EFAC;
    --accent-brown: #92400E;
    --accent-light-brown: #FEF3C7;
    --background: #FFFFFF;
    --text-primary: #000000;
    --text-secondary: #666666;
    --text-light: #999999;
    --border-light: #E5E5E5;
    --background-gray: #F5F8FA;
    --background-light-gray: #F8F9FA;
    --background-cream: #FEFCE8;
    --card-border: #E5E5E5;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --success-green: #22C55E;
    --warning-yellow: #EAB308;
    --danger-red: #EF4444;
    --info-blue: #3B82F6;
}

body {
    font-family: 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    background: var(--background);
    min-height: 100vh;
    position: relative;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--background-gray);
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    box-shadow: 0 2px 10px var(--shadow-color);
    max-width: 480px;
    margin: 0 auto;
}

.header-left {
    width: 40px;
    display: flex;
    align-items: center;
}

.header-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.header-right {
    width: 40px;
}

.header-logo {
    width: 28px;
    height: 28px;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.back-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.back-btn:hover {
    background: #E8E8E8;
}

.back-btn svg {
    width: 24px;
    height: 24px;
}

/* Main Content */
.main-content {
    padding: 70px 16px 40px;
}

/* Hero Image */
.hero-image {
    margin: 0 -16px 24px;
    width: calc(100% + 32px);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--background-cream);
}

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

/* Page Header */
.page-header {
    margin-bottom: 24px;
}

.page-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
}

.page-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-top: 8px;
    line-height: 1.6;
}

/* Content Sections */
.content-section {
    margin-bottom: 28px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
    line-height: 1.4;
}

.intro-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.content-section p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 14px;
}

.content-section p:last-child {
    margin-bottom: 0;
}

/* Lists */
.content-list,
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.content-list li,
.benefits-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.content-list li::before,
.benefits-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--primary-green);
    border-radius: 50%;
}

/* Info Box */
.info-box {
    background: var(--background-cream);
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
    border-left: 4px solid var(--warning-yellow);
}

.info-box-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.info-box-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.fact-row {
    display: flex;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.fact-row:last-child {
    border-bottom: none;
}

.fact-label {
    font-weight: 500;
    color: var(--text-primary);
    min-width: 80px;
}

.fact-value {
    color: var(--text-secondary);
}

/* Safety Box */
.safety-box {
    background: #FEF2F2;
    border-radius: 12px;
    padding: 16px;
    margin: 24px 0;
    border-left: 4px solid var(--danger-red);
}

.safety-title {
    font-size: 15px;
    font-weight: 600;
    color: #991B1B;
    margin-bottom: 10px;
}

.safety-box p {
    font-size: 14px;
    color: #7F1D1D;
    line-height: 1.6;
    margin: 0;
}

/* Topics Grid */
.topics-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.topic-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--background);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.topic-card:hover {
    border-color: var(--primary-green);
    background: rgba(34, 197, 94, 0.05);
}

.topic-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.topic-arrow {
    width: 20px;
    height: 20px;
    color: var(--text-light);
}

.topic-card:hover .topic-arrow {
    color: var(--primary-green);
}

/* Related Links */
.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.related-link {
    display: inline-block;
    padding: 10px 16px;
    background: var(--background-light-gray);
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.related-link:hover {
    background: var(--primary-light-green);
    color: var(--primary-dark-green);
}

.related-link-primary {
    background: var(--primary-green);
    color: #FFFFFF;
}

.related-link-primary:hover {
    background: var(--primary-dark-green);
    color: #FFFFFF;
}

/* FAQ */
.faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-question {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.faq-answer {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.1));
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
    text-align: center;
}

.cta-section p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Disclaimer */
.disclaimer {
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
    padding: 20px 16px;
    line-height: 1.6;
    border-top: 1px solid var(--border-light);
    margin-top: 24px;
}

/* Banner Container */
.banner-container {
    margin: 24px 0;
    text-align: center;
}

.banner-link {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.banner-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Responsive */
@media (max-width: 380px) {
    .page-title {
        font-size: 22px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .hero-image {
        margin: 0 -16px 20px;
    }
}

/* Print styles */
@media print {
    .header,
    .banner-container,
    .cta-section {
        display: none;
    }
    
    .main-content {
        padding-top: 20px;
    }
}
