/**
 * News Detail Page Styles - GREEN THEME
 * Framework: Laravel 12
 * Template: Metronic 8.5
 * Theme: Medical/Hospital GREEN
 */

/* ===== HERO DETAIL - GREEN THEME ===== */
.hero-detail {
    min-height: 500px;
    background: linear-gradient(135deg, #228B22 0%, #32CD32 100%);
    position: relative;
    overflow: hidden;
}

/* Hero Pattern */
.hero-pattern-detail {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

/* Animated Shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    background: rgba(144, 238, 144, 0.15);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 15%;
    left: 5%;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 30%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

/* Breadcrumb */
.breadcrumb-custom {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.breadcrumb-custom .breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
}

.breadcrumb-custom a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.breadcrumb-custom a:hover {
    color: #fff;
}

/* Meta Info */
.info-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.info-box:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.share-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.btn-share {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
}

.btn-share:hover {
    transform: translateY(-5px) rotate(5deg);
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    color: #fff;
}

/* Hero Wave */
.hero-wave-detail {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave-detail svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

/* ===== ARTICLE BODY ===== */
.article-body {
    background: #fff;
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.featured-image-wrapper {
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
}

.article-excerpt {
    background: #f8f9fa;
    padding: 2rem;
    border-left: 4px solid #228B22;
    border-radius: 0.5rem;
}

.article-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #2c3e50;
}

.article-text p {
    margin-bottom: 1.5rem;
}

.article-text h2, .article-text h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #228B22;
}

/* ===== TAGS ===== */
.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags-label {
    font-weight: 600;
    color: #6c757d;
}

.tag-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 2rem;
    color: #228B22;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tag-badge:hover {
    background: #228B22;
    color: #fff;
    transform: translateY(-2px);
}

/* ===== SHARE SECTION ===== */
.share-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 1rem;
}

.btn-share-inline {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #fff;
    margin: 0.25rem;
}

.btn-facebook {
    background: #3b5998;
}

.btn-twitter {
    background: #1da1f2;
}

.btn-whatsapp {
    background: #25d366;
}

.btn-share-inline:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #fff;
}

/* ===== SIDEBAR ===== */
.article-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.sidebar-widget:hover {
    box-shadow: 0 10px 30px rgba(34, 139, 34, 0.15);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.widget-title i {
    color: #228B22;
}

/* Related News */
.related-news-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.related-news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-news-link {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-news-link:hover {
    transform: translateX(5px);
}

.related-news-image {
    width: 100px;
    height: 80px;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

.related-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-news-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.related-news-link:hover .related-news-title {
    color: #228B22;
}

.related-news-meta {
    font-size: 0.8rem;
    color: #6c757d;
}

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, #228B22 0%, #32CD32 100%);
    color: #fff;
}

.cta-widget .widget-title {
    color: #fff;
}

.cta-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-widget p {
    color: rgba(255, 255, 255, 0.9);
}

/* Categories */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-item:hover {
    background: #228B22;
    color: #fff;
    transform: translateX(5px);
}

.category-item i:first-child {
    color: #228B22;
}

.category-item:hover i {
    color: #fff;
}

/* ===== LIGHTBOX ===== */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.lightbox-close:hover {
    background: white;
    color: #000;
    transform: rotate(90deg);
}

.lightbox-container {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 20px;
}

.lightbox-container img {
    max-width: 95%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-title {
    color: white;
    margin-top: 20px;
    text-align: center;
    font-size: 1rem;
    max-width: 800px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .hero-detail {
        min-height: auto;
    }

    .shape {
        display: none;
    }

    .article-body {
        padding: 2rem 1.5rem;
    }

    .article-sidebar {
        position: static;
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-detail {
        padding: 4rem 0;
    }

    .article-body {
        padding: 1.5rem 1rem;
    }

    .lightbox-container {
        padding: 50px 10px 10px;
    }

    .lightbox-container img {
        max-width: 100%;
        max-height: 80vh;
    }

    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 576px) {
    .article-text {
        font-size: 1rem;
    }
}
