/* ===============================================
  Plantious - Plant Care Website CSS
  Author: Plantious Team
=============================================== */

/* ========== Base Styles ========== */
:root {
    --primary-color: #28a745;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: #2c3e50;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: darken(var(--primary-color), 10%);
}

/* ========== Header Styles ========== */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    z-index: 999;
}

.navbar-brand img {
    height: 40px;
}

.navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--primary-color);
}

.navbar-nav .btn-primary {
    padding: 0.5rem 1.5rem;
}

/* ========== Main Content Spacing ========== */
#main {
    margin-top: 120px;
    min-height: calc(100vh - 70px - 300px);
}

/* ========== Hero Section ========== */
.hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 80px 0;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
}

.hero-buttons .btn {
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat-item h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #666;
    margin: 0;
}

/* ========== Plant Cards ========== */
.plant-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.plant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

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

.plant-card .card-body {
    padding: 1.5rem;
}

.plant-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.plant-card .scientific-name {
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.care-info {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.care-info .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

/* ========== Plant Detail Page ========== */
.plant-detail-header {
    background-size: cover;
    background-position: center;
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
}

.plant-detail-header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.plant-detail-header h1,
.plant-detail-header p {
    color: white;
    position: relative;
    z-index: 2;
}

.care-requirements .care-item {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 2rem;
}

.care-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.disease-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
}

/* ========== Features Section ========== */
.feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: 100%;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

/* ========== Download Section ========== */
.download-section {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    background: linear-gradient(270deg, #28a745 0%, #ffffff 105%);
    color: white;
}

.download-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.app-features {
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.feature-item i {
    margin-right: 1rem;
    font-size: 1.5rem;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-store img {
    height: 60px;
}

/* ========== Sidebar Widgets ========== */
.sidebar-widget {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.sidebar-widget h4 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.app-widget {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.app-widget h4 {
    color: white;
}

.app-widget .btn {
    width: 100%;
}

/* ========== Footer ========== */
.footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding-top: 3rem;
}

.footer-top {
    padding: 2rem 0;
}

.footer h3,
.footer h4 {
    color: white;
    margin-bottom: 1.5rem;
}

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

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

.footer-links ul li i {
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.footer-links a {
    color: #bdc3c7;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: white;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.footer-bottom {
    background: #1a252f;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.footer-menu a {
    color: #bdc3c7;
    margin-left: 2rem;
}

.footer-menu a:hover {
    color: white;
}

/* ========== Back to Top ========== */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 998;
}

.back-to-top:hover {
    background: darken(var(--primary-color), 10%);
    transform: scale(1.1);
}

/* ========== Search Section ========== */
.search-section {
    max-width: 600px;
    margin: 2rem auto;
}

.search-section .input-group {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 50px;
    overflow: hidden;
}

.search-section .form-control {
    border: none;
    padding: 1rem 1.5rem;
}

.search-section .btn {
    border-radius: 0;
    padding: 0 2rem;
}

/* ========== Category Cards ========== */
.category-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.category-card:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.category-card:hover h5,
.category-card:hover p {
    color: white;
}

.category-link {
    text-decoration: none;
    color: inherit;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
    }
    
    .stat-item {
        flex: 1 1 33.333%;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .plant-detail-header {
        height: 300px;
    }
    
    .download-buttons {
        justify-content: center;
    }

    
}