/* 
* Plantiary - Custom CSS Styles
* Remember to update the versioning parameter (?1) when making changes to prevent caching
*/

/* Global Styles */
:root {
    --primary-color: #28a745;
    --primary-color-dark: #218838;
    --secondary-color: #f8f9fa;
    --text-color: #343a40;
    --text-muted: #6c757d;
    --border-radius: 0.5rem;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    padding-top: 76px;
}

/* Navigation */
.navbar {
    transition: var(--transition);
}

.navbar-brand {
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    transition: var(--transition);
 }

/* Feature Icons */
.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

/* Cards */
.card {
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Badges */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
    border-radius: 50px;
}

/* Social Icons */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-color);
}

/* Testimonial Avatar */
.testimonial-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Download Buttons */
.btn-download {
    display: inline-block;
    transition: var(--transition);
}

.btn-download:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.btn-download img {
    height: 40px;
}

/* Bottom Sheet */
.bottom-sheet {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    z-index: 1050;
    transition: bottom 0.5s ease-in-out;
}

.bottom-sheet-content {
    background-color: white;
    padding: 30px 0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1);
    position: relative;
}

.bottom-sheet.active {
    bottom: 0;
}

.btn-close-sheet {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-close-sheet:hover {
    background: var(--primary-color-dark);
}

.app-screenshot {
    max-height: 250px;
}

/* Plant Details Page */
.plant-header {
    background-color: #f8f9fa;
    padding: 100px 0 50px;
}

.plant-info-card {
    border-radius: var(--border-radius);
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.care-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 50%;
    margin-right: 15px;
}

.toxicity-safe {
    color: var(--primary-color);
}

.toxicity-warning {
    color: #dc3545;
}

.about-content img {
    width: 100%;
}

.accordion-body img {
    width: 100%;
}

/* Blog Page */
.blog-card {
    overflow: hidden;
}

.blog-card img {
    transition: var(--transition);
}

.blog-card:hover img {
    transform: scale(1.05);
}

.blog-date {
    background-color: var(--primary-color);
    color: white;
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 15px;
    border-radius: var(--border-radius);
}

/* Category Page */
.category-card {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.category-card:hover .category-overlay {
    background: linear-gradient(rgba(40, 167, 69, 0.6), rgba(40, 167, 69, 0.9));
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .hero {
        padding: 60px 0;
        text-align: center;
    }
    
    .app-screenshot {
        display: none;
    }
    
    .bottom-sheet-content {
        padding: 20px 0;
    }
    
    .plant-header {
        padding: 80px 0 30px;
    }
    
    .plant-info-card {
        margin-top: -30px;
    }
}
