/* =============================================
   BitkiDoktor - Fresh & Natural Theme
   ============================================= */

/* --- CSS Variables --- */
:root {
    --green-50:  #f0fdf4;
    --green-100: #dcfce7;
    --green-200: #bbf7d0;
    --green-300: #86efac;
    --green-400: #4ade80;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-700: #15803d;
    --green-800: #166534;
    --green-900: #14532d;

    --earth-50:  #faf6f1;
    --earth-100: #f0e6d3;
    --earth-200: #e2cca8;
    --earth-300: #c9a66e;
    --earth-400: #a67c45;
    --earth-500: #8b6332;

    --red-500:   #ef4444;
    --red-600:   #dc2626;
    --yellow-500: #eab308;
    --yellow-100: #fef9c3;
    --blue-500:  #3b82f6;

    --white:     #ffffff;
    --gray-50:   #f9fafb;
    --gray-100:  #f3f4f6;
    --gray-200:  #e5e7eb;
    --gray-300:  #d1d5db;
    --gray-400:  #9ca3af;
    --gray-500:  #6b7280;
    --gray-600:  #4b5563;
    --gray-700:  #374151;
    --gray-800:  #1f2937;
    --gray-900:  #111827;

    --font-sans: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    --font-serif: Georgia, 'Times New Roman', serif;

    --shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md:  0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg:  0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-xl:  0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);

    --radius-sm:  6px;
    --radius-md:  10px;
    --radius-lg:  16px;
    --radius-xl:  24px;
    --radius-full: 9999px;

    --transition: 200ms ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-800);
    background-color: var(--green-50);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1;
}

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

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

a:hover {
    color: var(--green-500);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    color: var(--gray-900);
}

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

/* --- Navigation --- */
.main-nav {
    background: var(--white);
    border-bottom: 1px solid var(--green-100);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.35rem;
    color: var(--gray-800);
    text-decoration: none;
}

.nav-logo:hover {
    color: var(--gray-800);
}

.logo-icon {
    font-size: 1.6rem;
}

.logo-text {
    font-weight: 400;
    letter-spacing: -0.02em;
}

.logo-text strong {
    font-weight: 700;
    color: var(--green-700);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--green-700);
    background: var(--green-50);
}

.nav-btn {
    font-weight: 600 !important;
}

.nav-btn-outline {
    border: 1.5px solid var(--green-600) !important;
    color: var(--green-700) !important;
}

.nav-btn-outline:hover {
    background: var(--green-600) !important;
    color: var(--white) !important;
}

.nav-btn-primary {
    background: var(--green-600) !important;
    color: var(--white) !important;
}

.nav-btn-primary:hover {
    background: var(--green-700) !important;
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all 300ms ease;
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after  { top: 7px; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--green-600);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--green-700);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--white);
    color: var(--green-700);
    border: 2px solid var(--green-200);
}

.btn-secondary:hover {
    border-color: var(--green-400);
    background: var(--green-50);
    color: var(--green-700);
}

.btn-danger {
    background: var(--red-500);
    color: var(--white);
}

.btn-danger:hover {
    background: var(--red-600);
    color: var(--white);
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, var(--green-700) 0%, var(--green-600) 50%, var(--green-500) 100%);
    color: var(--white);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.15;
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.92;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-search {
    display: flex;
    gap: 0;
    max-width: 560px;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-search input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    font-size: 1rem;
    font-family: var(--font-sans);
    color: var(--gray-800);
    outline: none;
    background: transparent;
}

.hero-search input::placeholder {
    color: var(--gray-400);
}

.hero-search button {
    padding: 16px 28px;
    background: var(--green-600);
    color: var(--white);
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
    white-space: nowrap;
}

.hero-search button:hover {
    background: var(--green-800);
}

.hero-decorative {
    position: absolute;
    font-size: 6rem;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.hero-decorative.leaf-1 { top: 10%; right: 5%; transform: rotate(25deg); }
.hero-decorative.leaf-2 { bottom: 10%; right: 15%; transform: rotate(-15deg); font-size: 4rem; }
.hero-decorative.leaf-3 { top: 40%; right: 30%; transform: rotate(45deg); font-size: 3rem; }

/* --- Section --- */
.section {
    padding: 80px 0;
}

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

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

.section-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--green-100);
    color: var(--green-700);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

/* --- Card Grid --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.card-grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card-grid-2 {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

/* --- Card --- */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--green-100);
    overflow: hidden;
    transition: all 300ms ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-200);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--green-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.card-body {
    padding: 24px;
}

.card-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-body p {
    font-size: 0.92rem;
    color: var(--gray-500);
    margin-bottom: 16px;
    line-height: 1.6;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--gray-400);
}

.card-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--green-100);
    color: var(--green-700);
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.card-tag-yellow {
    background: var(--yellow-100);
    color: var(--earth-500);
}

.card-tag-red {
    background: #fef2f2;
    color: var(--red-600);
}

/* --- Feature Cards --- */
.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--green-100);
    text-align: center;
    transition: all 300ms ease;
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* --- Seasonal Tips --- */
.seasonal-banner {
    background: linear-gradient(135deg, var(--green-100) 0%, var(--earth-50) 100%);
    border-radius: var(--radius-xl);
    padding: 48px;
    display: flex;
    align-items: center;
    gap: 40px;
    border: 1px solid var(--green-200);
}

.seasonal-icon {
    font-size: 5rem;
    flex-shrink: 0;
}

.seasonal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.seasonal-content p {
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.7;
}

.seasonal-tips-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
}

.seasonal-tips-list li {
    font-size: 0.9rem;
    color: var(--gray-600);
    padding-left: 20px;
    position: relative;
}

.seasonal-tips-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green-500);
    font-weight: 700;
}

/* --- Diagnosis Page --- */
.diagnosis-steps {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-400);
    white-space: nowrap;
    transition: all var(--transition);
}

.step-indicator.active {
    border-color: var(--green-500);
    color: var(--green-700);
    background: var(--green-50);
}

.step-indicator.completed {
    border-color: var(--green-400);
    color: var(--green-600);
    background: var(--green-100);
}

.step-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-500);
    font-size: 0.8rem;
    font-weight: 700;
}

.step-indicator.active .step-number {
    background: var(--green-600);
    color: var(--white);
}

.step-indicator.completed .step-number {
    background: var(--green-500);
    color: var(--white);
}

.diagnosis-panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--green-100);
    min-height: 400px;
}

.symptom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.symptom-option {
    padding: 16px;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    font-size: 0.9rem;
}

.symptom-option:hover {
    border-color: var(--green-300);
    background: var(--green-50);
}

.symptom-option.selected {
    border-color: var(--green-500);
    background: var(--green-50);
    color: var(--green-800);
    font-weight: 600;
}

.symptom-option .symptom-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

/* Diagnosis result */
.diagnosis-result {
    background: var(--green-50);
    border: 2px solid var(--green-200);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.diagnosis-result h3 {
    color: var(--green-800);
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.diagnosis-result-item {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid var(--green-100);
}

.diagnosis-result-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.diagnosis-result-item p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.match-score {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
}

.match-high   { background: #dcfce7; color: var(--green-700); }
.match-medium { background: var(--yellow-100); color: #92400e; }
.match-low    { background: #fee2e2; color: var(--red-600); }

/* --- Guide Page --- */
.guide-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.filter-btn {
    padding: 8px 18px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-full);
    background: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--green-500);
    background: var(--green-50);
    color: var(--green-700);
}

.species-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--green-100);
    overflow: hidden;
    transition: all 300ms ease;
}

.species-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.species-card-icon {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--green-100) 0%, var(--green-50) 100%);
    font-size: 4rem;
}

.species-card-body {
    padding: 20px;
}

.species-card-body h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.species-card-body .scientific {
    font-style: italic;
    font-size: 0.82rem;
    color: var(--gray-400);
    margin-bottom: 12px;
}

.species-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--gray-600);
}

.species-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.species-info-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* Difficulty badges */
.difficulty-kolay   { color: var(--green-600); }
.difficulty-orta    { color: var(--yellow-500); }
.difficulty-zor     { color: var(--red-500); }

/* --- Dashboard (Bitkilerim) --- */
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.dashboard-header h1 {
    font-size: 1.75rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--green-100);
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--green-600);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 4px;
}

/* Plant item in dashboard */
.plant-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--green-100);
    overflow: hidden;
    transition: all 300ms ease;
}

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

.plant-card-photo {
    height: 180px;
    background: linear-gradient(135deg, var(--green-100) 0%, var(--green-50) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
}

.plant-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plant-card-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.status-healthy  { background: var(--green-100); color: var(--green-700); }
.status-warning  { background: var(--yellow-100); color: #92400e; }
.status-sick     { background: #fee2e2; color: var(--red-600); }

.plant-card-body {
    padding: 20px;
}

.plant-card-body h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.plant-card-body .plant-species-label {
    font-size: 0.82rem;
    color: var(--gray-400);
    margin-bottom: 12px;
}

.plant-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.plant-card-actions .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.82rem;
}

/* Care log entry */
.care-log-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-100);
    margin-bottom: 8px;
}

.care-log-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.care-sulama      { background: #dbeafe; }
.care-gubreleme   { background: var(--earth-100); }
.care-budama      { background: #fce7f3; }
.care-ilaclama    { background: #fee2e2; }

.care-log-info {
    flex: 1;
}

.care-log-info strong {
    font-size: 0.9rem;
}

.care-log-info small {
    display: block;
    color: var(--gray-400);
    font-size: 0.8rem;
}

/* --- Forms --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--gray-800);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--green-400);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-error {
    color: var(--red-500);
    font-size: 0.85rem;
    margin-top: 8px;
    min-height: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* --- Image Upload --- */
.upload-area {
    border: 2px dashed var(--green-300);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--green-50);
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--green-500);
    background: var(--green-100);
}

.upload-area .upload-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    display: block;
}

.upload-area p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.upload-preview {
    position: relative;
    display: inline-block;
    margin-top: 16px;
}

.upload-preview img {
    max-height: 200px;
    border-radius: var(--radius-md);
    border: 2px solid var(--green-200);
}

.upload-preview .remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--red-500);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
}

/* --- Modal --- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 300ms ease;
}

.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 90%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 300ms ease;
}

.modal.open .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--gray-500);
    transition: all var(--transition);
}

.modal-close:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

.modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--gray-500);
}

.auth-switch a {
    font-weight: 600;
}

/* --- Add Plant Modal --- */
.modal-lg {
    max-width: 600px;
}

/* --- Search Input --- */
.search-box {
    position: relative;
    margin-bottom: 24px;
}

.search-box input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: 2px solid var(--green-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    background: var(--white);
    outline: none;
    transition: all var(--transition);
}

.search-box input:focus {
    border-color: var(--green-400);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.search-box::before {
    content: '\1F50D';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
}

/* --- Page Header --- */
.page-header {
    background: linear-gradient(135deg, var(--green-700) 0%, var(--green-600) 100%);
    color: var(--white);
    padding: 48px 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header h1 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.page-header p {
    opacity: 0.85;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

/* --- Breadcrumb --- */
.breadcrumb {
    padding: 16px 0;
    font-size: 0.85rem;
}

.breadcrumb a {
    color: var(--gray-400);
}

.breadcrumb span {
    color: var(--gray-400);
    margin: 0 8px;
}

.breadcrumb strong {
    color: var(--gray-700);
    font-weight: 600;
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    display: block;
}

.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--gray-500);
    margin-bottom: 24px;
}

/* --- Alerts --- */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.alert-success {
    background: var(--green-100);
    color: var(--green-800);
    border: 1px solid var(--green-200);
}

.alert-error {
    background: #fee2e2;
    color: var(--red-600);
    border: 1px solid #fecaca;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* --- Tabs --- */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 32px;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-400);
    cursor: pointer;
    transition: all var(--transition);
}

.tab-btn:hover {
    color: var(--gray-600);
}

.tab-btn.active {
    color: var(--green-700);
    border-bottom-color: var(--green-600);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* --- Footer --- */
.site-footer {
    background: var(--green-900);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
    position: relative;
    overflow: hidden;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    color: var(--white);
    text-decoration: none;
    margin-bottom: 16px;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h3 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--green-300);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
}

.footer-note {
    margin-top: 4px;
    font-size: 0.8rem;
    opacity: 0.5;
}

.footer-leaf {
    position: absolute;
    font-size: 4rem;
    opacity: 0.06;
    pointer-events: none;
}

.footer-leaf-left  { bottom: 20px; left: 20px; transform: rotate(-30deg); }
.footer-leaf-right { top: 20px; right: 20px; transform: rotate(15deg); }

/* --- Loading Spinner --- */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--green-200);
    border-top-color: var(--green-600);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Skeleton Loader --- */
.skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* --- Notification Toast --- */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 14px 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 300ms ease;
    max-width: 360px;
    border-left: 4px solid var(--green-500);
}

.toast-error  { border-left-color: var(--red-500); }
.toast-info   { border-left-color: var(--blue-500); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .seasonal-banner {
        flex-direction: column;
        text-align: center;
        padding: 32px;
    }

    .seasonal-tips-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px 20px;
        border-bottom: 1px solid var(--green-100);
        box-shadow: var(--shadow-lg);
        gap: 4px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        padding: 12px 16px;
    }

    .hero {
        padding: 48px 0 64px;
    }

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

    .hero-search {
        flex-direction: column;
        border-radius: var(--radius-md);
    }

    .hero-search button {
        border-radius: 0;
    }

    .section {
        padding: 48px 0;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .card-grid,
    .card-grid-2,
    .card-grid-3 {
        grid-template-columns: 1fr;
    }

    .diagnosis-steps {
        flex-wrap: nowrap;
    }

    .diagnosis-panel {
        padding: 24px;
    }

    .symptom-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
    }

    .page-header {
        padding: 32px 0;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 28px 20px;
        width: 95%;
    }

    .diagnosis-steps {
        gap: 8px;
    }

    .step-indicator {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}

/* --- Print --- */
@media print {
    .main-nav, .site-footer, .modal, .toast-container { display: none; }
    body { background: white; }
    .hero { background: white; color: black; padding: 20px 0; }
    .hero h1 { color: black; }
}
