/**
 * Ravian Pharmaceuticals Limited
 * Dedicated Stylesheet: media.css
 * Modern Corporate Media Center & Interactive Image Lightbox Gallery
 */

/* ==========================================================================
   1. INNER HERO & STATS BADGES
   ========================================================================== */
.media-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #EBF5FF;
    color: var(--rp-blue);
    font-size: 13.5px;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: var(--rp-radius-pill);
    border: 1.5px solid #BFDBFE;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

/* ==========================================================================
   2. FILTER TABS STRIP
   ========================================================================== */
.media-filter-strip {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 16px 20px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
    border: 1px solid #E2E8F0;
    margin-bottom: 40px;
}

.filter-btn-group {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.media-filter-btn {
    background: #F8FAFC;
    color: #475569;
    border: 1px solid #E2E8F0;
    padding: 9px 20px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.media-filter-btn:hover {
    background: #F1F5F9;
    color: var(--rp-blue);
    border-color: #CBD5E1;
    transform: translateY(-2px);
}

.media-filter-btn.active {
    background: linear-gradient(135deg, #16335C 0%, #1D4ED8 100%);
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(29, 78, 216, 0.25);
}

.media-filter-btn .filter-count {
    display: inline-block;
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
}

.media-filter-btn.active .filter-count {
    background: rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
}

/* ==========================================================================
   3. GALLERY CARDS & MASONRY-STYLE GRID
   ========================================================================== */
.gallery-grid {
    transition: opacity 0.3s ease;
}

.gallery-item {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item.hidden-item {
    display: none !important;
    opacity: 0;
    transform: scale(0.9);
}

.gallery-card {
    position: relative;
    background: #FFFFFF;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-card:hover {
    transform: translateY(-8px);
    border-color: var(--rp-blue);
    box-shadow: 0 20px 38px rgba(15, 23, 42, 0.12);
}

.gallery-thumb-wrap {
    position: relative;
    height: 220px;
    width: 100%;
    overflow: hidden;
    background: #0B1E3B;
}

.gallery-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-card:hover .gallery-thumb-img {
    transform: scale(1.08);
}

/* Glassmorphic Category Badge on Image */
.gallery-cat-pill {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 3;
}

/* Hover Overlay with Expand Icon */
.gallery-hover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.65) 100%);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.gallery-card:hover .gallery-hover-overlay {
    opacity: 1;
}

.gallery-zoom-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--rp-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-card:hover .gallery-zoom-circle {
    transform: scale(1);
}

/* Card Body Content */
.gallery-card-body {
    padding: 20px 18px 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.gallery-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    color: #94A3B8;
    margin-bottom: 8px;
    font-weight: 600;
}

.gallery-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.gallery-card-title {
    font-size: 15.5px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.35;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.gallery-card:hover .gallery-card-title {
    color: var(--rp-blue);
}

.gallery-card-desc {
    font-size: 12.5px;
    color: #64748B;
    line-height: 1.55;
    margin-bottom: 14px;
    flex-grow: 1;
}

.gallery-view-more {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--rp-blue);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    transition: gap 0.2s ease;
}

.gallery-card:hover .gallery-view-more {
    gap: 9px;
}

/* ==========================================================================
   4. FULL-SCREEN LIGHTBOX MODAL (Premium Modern Experience)
   ========================================================================== */
.custom-lightbox-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 18, 32, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 1060;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.custom-lightbox-backdrop.active {
    display: flex;
    opacity: 1;
}

.lightbox-content-box {
    position: relative;
    max-width: 960px;
    width: 100%;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    background: #0B1323;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.custom-lightbox-backdrop.active .lightbox-content-box {
    transform: scale(1);
}

/* Lightbox Header Bar */
.lightbox-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.lightbox-counter-pill {
    font-size: 12.5px;
    font-weight: 700;
    color: #93C5FD;
    background: rgba(37, 99, 235, 0.2);
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(147, 197, 253, 0.3);
}

.btn-lightbox-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-lightbox-close:hover {
    background: #EF4444;
    color: #FFFFFF;
    transform: scale(1.1) rotate(90deg);
}

/* Lightbox Image Container */
.lightbox-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    max-height: 60vh;
    background: #060B14;
    overflow: hidden;
}

.lightbox-main-img {
    max-width: 100%;
    max-height: 60vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: opacity 0.2s ease;
}

/* Lightbox Navigation Buttons */
.btn-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.7);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 10;
}

.btn-lightbox-nav:hover {
    background: #2563EB;
    color: #FFFFFF;
    transform: translateY(-50%) scale(1.12);
    border-color: #60A5FA;
}

.btn-lightbox-prev {
    left: 18px;
}

.btn-lightbox-next {
    right: 18px;
}

/* Lightbox Caption / Info Panel */
.lightbox-caption-bar {
    padding: 20px 24px;
    background: #0F172A;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.lightbox-img-category {
    font-size: 11px;
    font-weight: 700;
    color: #FBBF24;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: inline-block;
    margin-bottom: 4px;
}

.lightbox-img-title {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 6px;
}

.lightbox-img-desc {
    font-size: 13px;
    color: #94A3B8;
    line-height: 1.5;
    margin-bottom: 0;
}

/* ==========================================================================
   5. PRESS RELEASES / ARTICLES SECTION
   ========================================================================== */
.press-article-card {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 24px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.press-article-card:hover {
    transform: translateY(-5px);
    border-color: var(--rp-blue);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.press-badge-ribbon {
    font-size: 11px;
    font-weight: 700;
    color: var(--rp-blue);
    background: #EFF6FF;
    border: 1px solid #DBEAFE;
    padding: 4px 12px;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: 12px;
    width: fit-content;
}

.press-article-title {
    font-size: 17px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.35;
    margin-bottom: 10px;
}

.press-article-excerpt {
    font-size: 13.5px;
    color: #64748B;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.press-article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #F1F5F9;
    font-size: 12px;
    color: #94A3B8;
    font-weight: 600;
}

/* ==========================================================================
   6. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 991px) {
    .lightbox-content-box {
        max-width: 95%;
    }
    .lightbox-stage {
        min-height: 300px;
    }
}

@media (max-width: 575px) {
    .media-filter-strip {
        padding: 12px 10px;
    }
    .media-filter-btn {
        padding: 7px 14px;
        font-size: 12.5px;
    }
    .gallery-thumb-wrap {
        height: 190px;
    }
    .lightbox-caption-bar {
        padding: 14px 16px;
    }
    .lightbox-img-title {
        font-size: 16px;
    }
    .btn-lightbox-nav {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
    .btn-lightbox-prev { left: 8px; }
    .btn-lightbox-next { right: 8px; }
}
