/* assets/css/style.css */

/* सामान्य बॉडी स्टाइल */
body {
    font-family: 'Poppins', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    background-color: #f8f8f8;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* कंटेनर के लिए सामान्य स्टाइल */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* हेडर स्टाइल */
.main-header-frontend {
    background-color: #4CAF50; /* हरा रंग */
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.main-header-frontend .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* मोबाइल पर रैप सक्षम करें */
}
.main-header-frontend .logo-area-frontend a {
    color: white;
    text-decoration: none;
    font-size: 1.8em;
    font-weight: 600;
}
.main-header-frontend .main-nav-frontend {
    flex-basis: auto;
    width: auto;
}
.main-header-frontend .main-nav-frontend ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
.main-header-frontend .main-nav-frontend ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}
.main-header-frontend .main-nav-frontend ul li a:hover {
    background-color: #45a049;
}
.main-header-frontend .mobile-menu-toggle-frontend {
    display: none;
    font-size: 1.5em;
    cursor: pointer;
    color: white;
}

/* हीरो सेक्शन */
.hero-section {
    background: url('https://via.placeholder.com/1500x500/66BB6A/FFFFFF?text=Jadibuti+Hero') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 100px 0;
    margin-bottom: 20px;
    box-shadow: inset 0 0 0 1000px rgba(0,0,0,0.5);
}
.hero-section h1 {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 600;
}
.hero-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* जड़ी-बूटी लिस्ट (कार्ड) */
#herbs-list {
    padding: 50px 0;
}
#herbs-list h2 {
    color: #4CAF50;
    font-size: 2.5em;
    margin-bottom: 40px;
}
.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.card-body {
    padding: 20px;
}
.card-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}
.card-text {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 15px;
}
.text-muted {
    color: #777 !important;
}

/* बटन */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.btn-primary {
    background-color: #4CAF50;
    color: white;
    border: 1px solid #4CAF50;
}
.btn-primary:hover {
    background-color: #45a049;
    border-color: #45a049;
}
.btn-lg {
    padding: 12px 25px;
    font-size: 1.1em;
}

/* अलर्ट */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 1em;
    text-align: center;
}
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* फुटर स्टाइल */
.main-footer-frontend {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
    margin-top: auto;
}
.main-footer-frontend .container p {
    margin: 0;
}

/* Grid System (Basic, similar to Bootstrap) */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}
.col {
    padding: 0 15px;
    flex-basis: 100%;
    max-width: 100%;
}
.row-cols-md-2 > .col {
    @media (min-width: 768px) {
        flex-basis: 50%;
        max-width: 50%;
    }
}
.row-cols-lg-3 > .col {
    @media (min-width: 992px) {
        flex-basis: 33.333333%;
        max-width: 33.333333%;
    }
}
.g-4 > .col {
    padding-bottom: 1.5rem;
    padding-top: 1.5rem;
}


/* ========================================= */
/* herb_detail.php के लिए विशिष्ट स्टाइल */
/* ========================================= */
.herb-detail-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 30px;
    margin-bottom: 30px;
}
.herb-detail-container h1, .herb-detail-container h2, .herb-detail-container h3 {
    color: #343a40;
}
.herb-detail-container .btn-back {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}
.herb-detail-container .btn-back:hover {
    background-color: #5a6268;
    border-color: #545b62;
}
/* नई थंबनेल गैलरी के लिए स्टाइल */
.herb-thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 30px;
}
.herb-thumbnail-gallery .thumbnail-item {
    margin: 0;
    padding: 0;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    background-color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.herb-thumbnail-gallery .thumbnail-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.herb-thumbnail-gallery .thumbnail-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}
.herb-thumbnail-gallery figcaption {
    padding: 8px;
    font-size: 0.85em;
    color: #555;
    text-align: center;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
}

/* Language Names Paragraph Styling */
.language-names-paragraph {
    font-size: 0.95em;
    color: #555;
    line-height: 1.8;
    word-wrap: break-word; /* लंबा टेक्स्ट रैप हो जाए */
    text-align: justify; /* टेक्स्ट को जस्टिफाई करें */
    padding: 10px 0; /* थोड़ी पैडिंग */
}
.language-names-paragraph strong {
    color: #4CAF50; /* **हरा नाम** */
    font-weight: bold; /* **बोल्ड करें** */
    margin-right: 5px; /* नाम और वैल्यू के बीच थोड़ी जगह */
    white-space: nowrap; /* भाषा का नाम और कोलन एक लाइन में रहें */
}


/* Full-view Modal Styles */
.image-modal .modal-content {
    background-color: rgba(0,0,0,0.9);
    border: none;
    border-radius: 10px;
}
.image-modal .modal-body {
    text-align: center;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.image-modal img {
    max-width: 95vw;
    max-height: 95vh;
    display: block;
    margin: auto;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
    object-fit: contain;
}
.image-modal .btn-close {
    filter: invert(1);
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 1050;
    opacity: 0.8;
}
.image-modal .btn-close:hover {
    opacity: 1;
}
/* मॉडल नेविगेशन बटन */
.image-modal .modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(108, 117, 125, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    z-index: 1040;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.image-modal .modal-nav-btn:hover {
    background-color: rgba(108, 117, 125, 0.9);
}
.image-modal .modal-prev-btn {
    left: 15px;
}
.image-modal .modal-next-btn {
    right: 15px;
}
.image-modal .modal-footer {
    border-top: none;
}
.image-modal .modal-caption {
    color: white;
    font-size: 1em;
    margin-top: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}
.image-modal .image-count {
    color: white;
    font-size: 0.9em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

/* ========================================= */
/* मोबाइल और टैबलेट के लिए उत्तरदायी डिज़ाइन (Responsive Design for Mobiles & Tablets) */
/* ========================================= */
@media (max-width: 768px) {
    .main-header-frontend .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .main-header-frontend .logo-area-frontend {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    .main-header-frontend .main-nav-frontend {
        order: 3;
        flex-basis: 100%;
        margin-top: 15px;
        text-align: center;
        display: none;
        width: 100%;
    }
    .main-header-frontend .main-nav-frontend.active {
        display: block;
    }
    .main-header-frontend .main-nav-frontend ul {
        flex-direction: column;
    }
    .main-header-frontend .main-nav-frontend ul li {
        margin: 5px 0;
    }
    .main-header-frontend .mobile-menu-toggle-frontend {
        display: block;
        position: absolute;
        right: 15px;
        top: 15px;
    }
    .hero-section {
        padding: 60px 0;
    }
    .hero-section h1 {
        font-size: 2.2em;
    }
    .herb-detail-container {
        padding: 15px;
        margin-top: 15px;
        margin-bottom: 15px;
    }
    /* नए थंबनेल ग्रिड के लिए */
    .herb-thumbnail-gallery {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
    .herb-thumbnail-gallery .thumbnail-img {
        height: 80px;
    }
    /* लैंग्वेज पैराग्राफ */
    .language-names-paragraph {
        font-size: 0.9em;
        line-height: 1.6;
    }
    .language-names-paragraph strong {
        font-size: 1em;
    }
    .language-names-paragraph span {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.8em;
    }
    .hero-section p {
        font-size: 1em;
    }
    .btn-lg {
        padding: 10px 20px;
        font-size: 1em;
    }
    .card-title {
        font-size: 1.2em;
    }
    .herb-detail-container h1 {
        font-size: 2em;
    }
    .herb-detail-container h2 {
        font-size: 1.5em;
    }
    .herb-detail-container .image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
    }
    .herb-detail-container .herb-thumbnail-gallery {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 5px;
    }
    .herb-detail-container .herb-thumbnail-gallery .thumbnail-img {
        height: 60px;
    }
    /* मॉडल नेविगेशन बटन मोबाइल पर छोटे करें */
    .image-modal .modal-nav-btn {
        width: 30px;
        height: 30px;
        font-size: 1em;
    }
    /* लैंग्वेज पैराग्राफ */
    .language-names-paragraph {
        font-size: 0.8em;
        line-height: 1.5;
    }
    .language-names-paragraph strong {
        font-size: 0.9em;
    }
    .language-names-paragraph span {
        font-size: 0.75em;
    }
}