/* custom-styles.css */

/* ---------------------------------------------------
   1. FILTERS AREA
--------------------------------------------------- */
.bmr-filters {
	position: -webkit-sticky;
    position: sticky;
	top: 80px;
	z-index: 999;
	background: #ffffff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
	transition: box-shadow 0.3s ease;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    align-items: center;
}

.bmr-filters select {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    min-width: 180px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s;
}

.bmr-filters select:hover {
    border-color: #888;
}

/* Reset Button Styling */
.btn-reset {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    padding: 13.5px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: #f5f5f5;
    border-color: #bbb;
    color: #000;
}

/* ---------------------------------------------------
   2. ASSETS GRID
--------------------------------------------------- */
#bmr-assets-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* ---------------------------------------------------
   3. ASSET CARD DESIGN
--------------------------------------------------- */
.bmr-asset-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.bmr-asset-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Thumbnail Area */
.card-thumb {
    position: relative;
    height: 340px;
    width: 100%;
    background: #f4f4f4;
    overflow: hidden;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills area without stretching */
    transition: transform 0.5s ease;
}

.bmr-asset-card:hover .card-thumb img {
    transform: scale(1.05);
}

.bmr-asset-card .bmr-preview-trigger {
    display: block;
    text-decoration: none;
}

/* Play & PDF Icons Overlay */
.play-icon, .pdf-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.bmr-asset-card:hover .play-icon,
.bmr-asset-card:hover .pdf-icon {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.pdf-icon {
    background: #d63031;
    color: #fff;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(214, 48, 49, 0.3);
}

/* Checkbox Styling */
.asset-select {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 10;
    accent-color: #007cba; /* Change to your brand color */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* ---------------------------------------------------
   4. CARD CONTENT & BUTTONS
--------------------------------------------------- */
.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.asset-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #1a1a1a;
}

.card-meta {
    margin-bottom: 15px;
}

.card-meta .tag {
    display: inline-block;
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    color: #666;
    margin-right: 5px;
    margin-bottom: 5px;
}

.card-meta .tag.tag-product {
    background: #e8f4ff;
    color: #0073aa;
}

/* Action Buttons */
.card-actions {
    margin-top: auto; /* Pushes buttons to bottom */
    padding-top: 15px;
    display: flex;
    gap: 10px; /* Space between buttons */
}

/* Preview Button (Ghost/Outline Style) */
.btn-preview {
    flex: 1; /* Equal width */
    display: block;
    text-align: center;
    background: transparent;
    color: #333;
    border: 2px solid #e0e0e0;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-preview:hover {
    background: #f5f5f5;
    border-color: #bbb;
    color: #000;
}

/* Download Button */
.btn-download {
    flex: 1;
    display: block;
    text-align: center;
    background: #11394b;
    color: #ffffff;
    border: 2px solid #11394b;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: #eb7b1d;
    border-color: #eb7b1d;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ---------------------------------------------------
   5. SELECTION BAR (Floating Bottom)
--------------------------------------------------- */
#bmr-selection-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: 50px;
    padding: 12px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 9999;
    border: 1px solid #eee;
}

#selected-count {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

#download-zip-btn {
    background: #eb7b1d;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: background 0.3s ease;
}

#download-zip-btn:hover {
    background: #005177;
}

/* No Assets Message */
.no-assets {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 16px;
}

/* ---------------------------------------------------
   CUSTOM LIGHTBOX / POPUP
--------------------------------------------------- */
#bmr-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer; /* Pointer indicates clickable area to close */
    backdrop-filter: blur(5px);
}

.bmr-lightbox-close {
    position: fixed;
    top: 30px;
    right: 40px;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    font-size: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.3s;
}

.bmr-lightbox-close:hover {
    background: #fff;
    color: #000;
}

.bmr-lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    z-index: 9999998;
    cursor: default;
}

/* ---------------------------------------------------
   MODERN DASHBOARD CAROUSEL
--------------------------------------------------- */

.bmr-dashboard-widget {
    /*background: #fff;
    border-radius: 16px;
    padding: 20px 20px 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;*/
    margin-bottom: 30px;
}

/* Header: Flexbox for Title vs Nav */
.bmr-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.bmr-carousel-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111;
    display: flex;
    align-items: center;
}

.bmr-carousel-header h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: #000;
    border-radius: 2px;
    margin-right: 10px;
}

/* Navigation Controls (Top Right) */
.bmr-carousel-nav {
    display: flex;
    gap: 5px;
}

.bmr-nav-btn {
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    border: 1px solid #eee;
}

.bmr-nav-btn:hover {
    background: #000;
    border-color: #000;
}

/* Arrow Icons */
.bmr-carousel-nav .bmr-nav-btn::after {
    font-size: 10px;
    font-weight: 900;
    color: #333;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'swiper-icons'; /* Uses Swiper's built-in icon font */
}

.bmr-nav-btn:hover::after {
    color: #fff;
}

/* Positioning Swiper Default Classes */
.bmr-carousel-nav .swiper-button-prev { left: auto; right: 40px; top: -5px; bottom: 0; margin: 0; }
.bmr-carousel-nav .swiper-button-next { left: auto; right: 0; top: -5px; bottom: 0; margin: 0; }

/* Cards */
.bmr-carousel-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bmr-carousel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: #ddd;
}

.bmr-carousel-thumb {
    position: relative;
    height: 175px;
    width: 100%;
    background: #f8f8f8;
    overflow: hidden;
}

.bmr-carousel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bmr-carousel-card:hover .bmr-carousel-thumb img {
    transform: scale(1.05);
}

/* Icon Badges */
.bmr-type-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.75);
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    backdrop-filter: blur(3px);
    opacity: 0.9;
}

.bmr-type-icon.pdf {
    width: auto;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: bold;
    background: #d63031;
}

.bmr-carousel-info {
    padding: 8px 10px;
    background: #fff;
}

.bmr-carousel-info h4 {
    margin: 0;
    padding: 5px 0px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

/* Footer Button */
.bmr-carousel-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f5f5f5;
}

.bmr-btn-browse {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #000;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.bmr-btn-browse:hover {
    background: #333;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.bmr-btn-browse svg {
    transition: transform 0.3s ease;
}

.bmr-btn-browse:hover svg {
    transform: translateX(3px);
}

@media screen and (max-width: 600px) {
	.bmr-carousel-thumb {
		height: 125px;
	}
}