/* ==========================================================================
   PLANTAS VITALES - MASTER BOTANICAL DESIGN SYSTEM (2026)
   Google Fonts: Outfit (Headings & Accents) + Inter (Reading Body)
   Designed for Maximum Readability, E-E-A-T Authority & Flawless UX
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Botanical Color Palette */
    --primary-900: #041c14;
    --primary: #083325;
    --primary-700: #0d4a36;
    --primary-600: #146349;
    --accent: #10b981;
    --accent-hover: #059669;
    --accent-light: #ecfdf5;
    --accent-border: #a7f3d0;
    
    /* Surface & Background */
    --bg-main: #f8faf9;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-elevated: #f0fdf4;
    --border-subtle: #e2e8f0;
    --border-hover: #cbd5e1;
    
    /* Text Hierarchy */
    --text-heading: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-inverse: #ffffff;
    
    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Elevation & Shapes */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --shadow-xs: 0 1px 3px rgba(8, 51, 37, 0.04);
    --shadow-sm: 0 4px 12px rgba(8, 51, 37, 0.06);
    --shadow-md: 0 10px 28px rgba(8, 51, 37, 0.08);
    --shadow-lg: 0 20px 45px rgba(8, 51, 37, 0.12);
    --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.2);
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-body);
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

h2 {
    font-size: 1.95rem;
    font-weight: 700;
    margin-top: 2.75rem;
    margin-bottom: 1.15rem;
    color: var(--primary);
    position: relative;
}

h3 {
    font-size: 1.45rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.85rem;
    color: var(--primary-700);
}

p {
    margin-bottom: 1.35rem;
    font-size: 1.05rem;
    color: var(--text-body);
}

strong {
    color: var(--text-heading);
    font-weight: 600;
}

a {
    color: var(--primary-600);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

main {
    display: block;
    width: 100%;
}

main > section,
main > .category-hub-section,
main > .related-species-section,
.catalog-section {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

/* Sticky Header with Frosted Glass */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.03em;
}

.logo-icon {
    font-size: 1.8rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--accent-border);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}

nav a {
    font-weight: 600;
    font-size: 0.96rem;
    color: var(--text-body);
    padding: 9px 16px;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

nav a:hover, nav a.active {
    color: var(--primary);
    background-color: var(--accent-light);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 55%, var(--primary) 100%);
    color: white;
    padding: 80px 48px;
    border-radius: var(--radius-lg);
    margin-top: 28px;
    margin-bottom: 56px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16,185,129,0.12) 0%, transparent 60%);
    pointer-events: none;
}

.hero h2 {
    color: white;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 18px;
    margin-top: 0;
    line-height: 1.15;
}

.hero p {
    font-size: 1.2rem;
    max-width: 780px;
    margin: 0 auto 36px;
    color: #e2e8f0;
    line-height: 1.6;
}

.hero-search {
    display: flex;
    max-width: 640px;
    margin: 0 auto 28px;
    gap: 12px;
    position: relative;
}

.hero-search input {
    flex: 1;
    padding: 18px 26px;
    border-radius: var(--radius-full);
    border: none;
    font-size: 1.05rem;
    outline: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
    font-family: var(--font-body);
}

.hero-search button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(16,185,129,0.4);
}

.hero-search button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(16,185,129,0.5);
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-badge-item {
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: #f8fafc;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 56px;
}

.category-card {
    background: var(--bg-surface);
    padding: 36px 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: block;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-accent);
}

.category-card h3 {
    margin-top: 0;
    color: var(--primary);
    font-size: 1.35rem;
}

/* Plant Grid & Catalog Cards */
.plant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.plant-item {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.plant-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-accent);
}

.plant-item img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    background: #f1f5f9;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    transition: transform 0.4s ease;
}

.plant-main-image {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
    background: #f1f5f9;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin: 20px 0 32px;
}

.plant-item:hover img {
    transform: scale(1.03);
}

.plant-item h3 {
    font-size: 1.22rem;
    padding: 20px 20px 8px;
    margin: 0;
    color: var(--primary);
}

.plant-item p {
    font-size: 0.92rem;
    padding: 0 20px 16px;
    color: var(--text-muted);
    flex: 1;
    margin-bottom: 0;
}

.plant-meta-badges {
    padding: 16px 20px 20px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-top: 1px solid #f8faf9;
}

.meta-badge {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: var(--accent-light);
    color: var(--primary-600);
    border: 1px solid var(--accent-border);
}

/* Breadcrumbs */
.breadcrumbs {
    margin: 24px 0 16px;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--primary-600);
    font-weight: 500;
}

.breadcrumbs a:hover {
    color: var(--accent);
}

/* Single Plant View */
.plant-header {
    margin-bottom: 24px;
}

.plant-header h1 {
    font-size: 2.85rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.scientific-name {
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.15rem;
    font-weight: 500;
}

.plant-main-image {
    width: 100%;
    max-height: 480px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin: 20px 0 32px;
}

/* Featured Snippet Box */
blockquote.featured-snippet {
    background: linear-gradient(135deg, var(--accent-light) 0%, #f0fdf4 100%);
    border-left: 6px solid var(--accent);
    padding: 26px 32px;
    margin: 32px 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 1.12rem;
    line-height: 1.7;
    color: var(--primary-900);
    box-shadow: var(--shadow-xs);
}

/* Table of Contents */
.plant-toc {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 24px 28px;
    border-radius: var(--radius-md);
    margin: 28px 0 36px;
    box-shadow: var(--shadow-xs);
}

.plant-toc h4 {
    color: var(--primary);
    font-size: 1.18rem;
    margin-bottom: 14px;
}

.plant-toc ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plant-toc a {
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--primary-700);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.plant-toc a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

/* Care Tables */
.care-table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-subtle);
}

.care-table th, .care-table td {
    padding: 18px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.care-table th {
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-heading);
}

.care-table tr:hover td {
    background-color: var(--bg-elevated);
}

.care-table tr:last-child td {
    border-bottom: none;
}

/* Authority Card USDA / BGCI / Pl@ntNet */
.botanical-authority-card {
    background: var(--bg-elevated);
    border: 1px solid var(--accent-border);
    padding: 32px;
    border-radius: var(--radius-lg);
    margin: 36px 0;
    box-shadow: var(--shadow-sm);
}

.botanical-authority-card h3 {
    margin-top: 0;
    color: var(--primary);
    font-size: 1.35rem;
}

/* AdSense Slot Frame */
.adsense-slot {
    margin: 40px 0;
    padding: 20px;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-md);
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FAQ Accordion / Box */
.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 22px 26px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    box-shadow: var(--shadow-xs);
}

.faq-item h3 {
    margin-top: 0;
    font-size: 1.15rem;
    color: var(--primary);
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--accent-light) 0%, #f0fdf4 100%);
    border: 1px solid var(--accent-border);
    padding: 28px 32px;
    border-radius: var(--radius-md);
    margin: 36px 0;
    text-align: center;
}

/* Footer */
footer {
    background: var(--primary-900);
    color: #94a3b8;
    padding: 72px 0 36px;
    margin-top: 96px;
}

footer h4 {
    color: white;
    margin-bottom: 14px;
    font-size: 1.35rem;
}

footer ul {
    list-style: none;
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    margin: 28px 0;
}

footer a {
    color: #cbd5e1;
    font-weight: 500;
}

footer a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 28px;
    margin-top: 36px;
    font-size: 0.9rem;
    text-align: center;
    color: #64748b;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    header .container { height: 68px; }
    nav ul { display: none; }
    .hero { padding: 48px 24px; margin-top: 16px; }
    .hero h2 { font-size: 2.15rem; }
    .hero p { font-size: 1.05rem; }
    .hero-search { flex-direction: column; }
    .hero-search button { width: 100%; }
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.6rem; }
    .plant-main-image { max-height: 320px; }
    .care-table th, .care-table td { padding: 12px 16px; font-size: 0.9rem; }
}
