/* ==========================================================================
   PLANTAS VITALES - ULTRA-PREMIUM BOTANICAL DESIGN SYSTEM (2026)
   Google Fonts: Outfit (Headings) & Inter (Body)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Botanical Color Tokens */
    --primary: #0a3225;
    --primary-light: #164e3b;
    --primary-dark: #052017;
    --accent: #10b981;
    --accent-hover: #059669;
    --accent-light: #ecfdf5;
    --bg-main: #f8faf9;
    --bg-surface: #ffffff;
    --bg-elevated: #f0fdf4;
    --border-subtle: #e2e8f0;
    --border-accent: #a7f3d0;
    --text-heading: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    
    /* Typography System */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Elevation & Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --shadow-sm: 0 2px 8px rgba(10, 50, 37, 0.04);
    --shadow-md: 0 8px 24px rgba(10, 50, 37, 0.08);
    --shadow-lg: 0 16px 36px rgba(10, 50, 37, 0.12);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-body);
    line-height: 1.75;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* 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.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.85rem; margin-top: 2.25rem; margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-top: 1.5rem; margin-bottom: 0.75rem; }

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Sticky Header with Glassmorphism */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-sm);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.logo-icon {
    font-size: 1.75rem;
    line-height: 1;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

nav a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-body);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

nav a:hover, nav a.active {
    color: var(--primary);
    background-color: var(--accent-light);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 72px 40px;
    border-radius: var(--radius-lg);
    margin-top: 32px;
    margin-bottom: 48px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h2 {
    color: white;
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 16px;
    margin-top: 0;
}

.hero p {
    font-size: 1.15rem;
    max-width: 760px;
    margin: 0 auto 32px;
    color: #e2e8f0;
}

.hero-search {
    display: flex;
    max-width: 620px;
    margin: 0 auto 24px;
    gap: 12px;
}

.hero-search input {
    flex: 1;
    padding: 16px 24px;
    border-radius: var(--radius-full);
    border: none;
    font-size: 1rem;
    outline: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.hero-search button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.hero-search button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-badge-item {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 500;
    color: #f1f5f9;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.category-card {
    background: var(--bg-surface);
    padding: 32px 24px;
    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(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-accent);
}

.category-card h3 {
    margin-top: 0;
    color: var(--primary);
}

/* Plant Grid & Cards */
.plant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 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, .plant-main-image {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
    background: #e2e8f0;
}

.plant-item h3 {
    font-size: 1.25rem;
    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;
}

.plant-meta-badges {
    padding: 0 20px 20px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.meta-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--accent-light);
    color: var(--primary-light);
}

/* Featured Snippet & Callouts */
blockquote.featured-snippet {
    background: linear-gradient(to right, var(--accent-light), #f0fdf4);
    border-left: 5px solid var(--accent);
    padding: 24px 28px;
    margin: 28px 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 1.05rem;
    color: var(--primary-dark);
}

/* Care Tables */
.care-table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 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: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.care-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.care-table tr:last-child td {
    border-bottom: none;
}

/* AdSense Slot Frame */
.adsense-slot {
    margin: 36px 0;
    padding: 16px;
    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;
}

/* Author Bio Card */
.author-bio-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-accent);
    padding: 24px;
    border-radius: var(--radius-md);
    margin-top: 48px;
}

.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: #94a3b8;
    padding: 64px 0 32px;
    margin-top: 80px;
}

footer h4 {
    color: white;
    margin-bottom: 12px;
    font-size: 1.25rem;
}

footer ul {
    list-style: none;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin: 24px 0;
}

footer a {
    color: #cbd5e1;
}

footer a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    margin-top: 32px;
    font-size: 0.88rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    header .container { height: 64px; }
    nav ul { display: none; }
    .hero { padding: 44px 20px; }
    .hero h1, .hero h2 { font-size: 2rem; }
    .hero-search { flex-direction: column; }
    .hero-search button { width: 100%; }
}
