/* Air Plant Care Guide - Styles */

/* ===== CSS Variables ===== */
:root {
    --color-primary: #2d6a4f;
    --color-primary-light: #40916c;
    --color-primary-dark: #1b4332;
    --color-secondary: #95d5b2;
    --color-accent: #74c69d;
    --color-bg: #f8faf9;
    --color-bg-alt: #e8f5e9;
    --color-text: #1a1a2e;
    --color-text-light: #4a5568;
    --color-white: #ffffff;
    --color-warning: #e76f51;
    --color-info: #457b9d;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

ul, ol {
    padding-left: 1.5rem;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p {
    margin-bottom: 1rem;
}

/* ===== Layout ===== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.section-alt {
    background-color: var(--color-bg-alt);
}

.section-intro {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 800px;
    margin-bottom: 2rem;
}

/* ===== Navigation ===== */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
}

.logo:hover {
    color: var(--color-secondary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    padding: 0;
}

.nav-links a {
    color: var(--color-white);
    font-weight: 500;
    opacity: 0.9;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--color-secondary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-white);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    max-width: 800px;
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: 1rem;
    font-size: 3rem;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--color-white);
    color: var(--color-primary);
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== Content Grid ===== */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

.content-text h3 {
    margin-top: 1.5rem;
}

.content-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--color-primary);
}

.content-card h4 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.facts-list {
    display: grid;
    gap: 0.5rem;
}

.facts-list dt {
    font-weight: 600;
    color: var(--color-text-light);
    font-size: 0.875rem;
}

.facts-list dd {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}

.facts-list dd:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.5rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* ===== Method Cards ===== */
.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.method-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.method-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.method-card h3 {
    color: var(--color-primary);
}

.method-card ol {
    margin: 1rem 0;
}

.method-card li {
    margin-bottom: 0.5rem;
}

.tip {
    background: var(--color-bg-alt);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* ===== Warning & Info Boxes ===== */
.warning-box, .caution-box {
    background: #fff8f6;
    border: 1px solid var(--color-warning);
    border-left: 4px solid var(--color-warning);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

.warning-box h4, .caution-box h4 {
    color: var(--color-warning);
    margin-bottom: 1rem;
}

.content-box {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin: 2rem 0;
}

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

.signs-card {
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

.signs-underwatered {
    background: #fef3cd;
    border-left: 4px solid #ffc107;
}

.signs-overwatered {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
}

.signs-card h4 {
    margin-bottom: 1rem;
}

.signs-card ul {
    margin-bottom: 1rem;
}

/* ===== Light Guide ===== */
.light-guide {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.light-level {
    display: flex;
    gap: 1.5rem;
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.light-indicator {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    flex-shrink: 0;
}

.light-indicator.optimal {
    background: linear-gradient(135deg, #ffeb3b, #ffc107);
}

.light-indicator.acceptable {
    background: linear-gradient(135deg, #fff9c4, #fff59d);
}

.light-indicator.caution {
    background: linear-gradient(135deg, #ffcdd2, #ef9a9a);
}

.light-info h3 {
    margin-bottom: 0.5rem;
}

.light-info p {
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
}

.light-info ul {
    margin: 0;
    padding-left: 1.25rem;
}

/* ===== Table ===== */
.species-light-table {
    margin-top: 2rem;
}

.species-light-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.species-light-table th,
.species-light-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.species-light-table th {
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
}

.species-light-table tr:last-child td {
    border-bottom: none;
}

.species-light-table tr:hover {
    background: var(--color-bg-alt);
}

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

.display-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.display-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.display-card h3 {
    color: var(--color-primary);
}

.display-card ul {
    margin: 1rem 0;
}

.display-tip {
    font-size: 0.9rem;
    color: var(--color-text-light);
    padding-top: 0.5rem;
    border-top: 1px dashed #e0e0e0;
    margin-top: auto;
}

/* ===== Species Grid ===== */
.species-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.species-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--color-primary);
}

.species-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tag.beginner { background: #d4edda; color: #155724; }
.tag.small { background: #e2e3e5; color: #383d41; }
.tag.medium { background: #fff3cd; color: #856404; }
.tag.large { background: #cce5ff; color: #004085; }
.tag.statement { background: #f8d7da; color: #721c24; }
.tag.unique { background: #d1ecf1; color: #0c5460; }
.tag.prolific { background: #e2d5f1; color: #563d7c; }
.tag.collector { background: #ffeeba; color: #856404; }
.tag.fuzzy { background: #f5f5f5; color: #666; }

.species-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem 1rem;
    background: var(--color-bg-alt);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin: 1rem 0;
}

.species-specs dt {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.species-specs dd {
    margin: 0;
    font-size: 0.9rem;
}

/* ===== Products Grid ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-md);
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.product-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.product-card p {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    flex-grow: 1;
}

.product-features li {
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
}

.product-features li::before {
    content: '•';
    position: absolute;
    left: 0.5rem;
    color: var(--color-primary);
}

.product-button {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    transition: var(--transition);
}

.product-button:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* ===== FAQ Section ===== */
.faq-list {
    max-width: 800px;
}

.faq-item {
    background: var(--color-white);
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-item h3 {
    padding: 1.25rem 1.5rem;
    margin: 0;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-bg);
    transition: var(--transition);
}

.faq-item h3:hover {
    background: var(--color-bg-alt);
}

.faq-item p {
    padding: 0 1.5rem 1.25rem;
    margin: 0;
    color: var(--color-text-light);
}

/* ===== Problem List ===== */
.problem-list dt {
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 1rem;
}

.problem-list dd {
    margin-left: 0;
    color: var(--color-text-light);
}

/* ===== Footer ===== */
.footer {
    background: var(--color-primary-dark);
    color: var(--color-white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--color-secondary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section p {
    opacity: 0.9;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--color-white);
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--color-secondary);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.affiliate-disclosure {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0;
}

/* ===== Mobile Navigation ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        z-index: 101;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-primary-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

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

    .hero p {
        font-size: 1rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .content-card {
        order: -1;
    }

    h2 {
        font-size: 1.75rem;
    }

    .section {
        padding: 3rem 0;
    }

    .light-level {
        flex-direction: column;
        text-align: center;
    }

    .light-indicator {
        margin: 0 auto;
    }

    .species-light-table {
        overflow-x: auto;
    }

    .species-light-table table {
        min-width: 600px;
    }

    .footer-content {
        text-align: center;
    }
}

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

    .hero {
        min-height: 60vh;
    }

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

    .method-grid,
    .display-grid,
    .species-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .species-specs {
        grid-template-columns: 1fr;
    }
}
