/* ===== MEDIA AWARDS & REVIEWS STYLES ===== */

/* Main Section */
.media-awards-reviews-section {
    margin: 30px 0 40px;
    padding: 0;
}

.media-awards-reviews-section .section-title {
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 600;
    color: #374250;
    border-bottom: 2px solid #e1e7ec;
    padding-bottom: 10px;
}

.media-awards-reviews-section .section-title i {
    margin-right: 8px;
}

/* Grid Layout - Dynamic columns based on data attribute */
.media-items-grid {
    display: grid;
    gap: 30px;
    margin-top: 30px;
}

/* 2 columns layout (sidebar/narrow) */
.media-items-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
}

/* 4 columns layout (full-width) */
.media-items-grid[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
}

/* 3 columns fallback */
.media-items-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
}

/* Individual Media Item */
.media-item {
    position: relative;
}

.media-item-card {
    background: #fff;
    border: 1px solid #e1e7ec;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.media-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #d0d7de;
}

/* Square Thumbnail */
.media-thumbnail-square {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Creates 1:1 aspect ratio */
    overflow: hidden;
    background: #f8f9fa;
}

.media-thumbnail-square img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Shows full image with padding if needed */
    background: #ffffff;
    transition: transform 0.3s ease;
}

.media-item-card:hover .media-thumbnail-square img {
    transform: scale(1.05);
}

.media-thumbnail-square .media-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9da9b9;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

/* Minimal Content */
.media-content-minimal {
    padding: 16px 0;
    text-align: center;
}

.media-content-minimal .media-title {
    font-size: 18px;
    font-weight: 600;
    color: #374250;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.media-content-minimal .media-date {
    color: #9da9b9;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}


/* Custom Modal Styles */
.media-awards-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.media-awards-modal.active {
    z-index: 9999;
    opacity: 1;
    visibility: visible;
}

.media-awards-modal * {
    box-sizing: border-box;
}

/* Awards Banner - matching bikmo-insurance-banner style */
.awards-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 18px;
    margin-bottom: 10px;
    background-color: #333333;
    background: linear-gradient(135deg, #7b7b7b 0%, #0a0702 100%);
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.awards-banner:hover {
    background: linear-gradient(135deg, #555555 0%, #000000 100%);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.awards-banner i {
    font-size: 16px;
}

.awards-banner span {
    color: #fff;
    font-weight: 600;
}

.media-awards-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    transition: opacity 0.3s ease;
}

.media-awards-modal-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.media-awards-modal-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.media-awards-modal.active .media-awards-modal-content {
    transform: scale(1);
}

.media-awards-modal-close-only {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.media-awards-modal-close-only:hover {
    background: #fff;
    color: #374250;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.media-awards-modal-body {
    padding: 25px;
    max-height: 90vh;
    overflow-y: auto;
}

.media-awards-modal-loading {
    text-align: center;
    padding: 40px;
    color: #9da9b9;
}

.media-awards-modal-loading i {
    margin-bottom: 15px;
}

/* Modal Content Styles */
.media-modal-content {
    padding: 0;
}

.media-modal-image img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.media-modal-details {
    padding: 0;
}

.media-header {
    margin-bottom: 20px;
}

.badge-lg {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-block;
}

.media-modal-title {
    font-size: 22px;
    font-weight: 600;
    color: #374250;
    margin: 0;
    line-height: 1.3;
}

.media-outlet-info {
    margin-bottom: 15px;
}

.media-outlet-info h6 {
    font-size: 14px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Detailed Rating */
.media-rating-detailed {
    margin: 15px 0 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ffb74f;
}

.rating-stars-large {
    margin-bottom: 8px;
}

.rating-stars-large .fa-star {
    font-size: 18px;
    color: #e1e7ec;
    margin-right: 2px;
}

.rating-stars-large .fa-star.filled {
    color: #ffb74f;
}

.rating-score {
    font-size: 14px;
    font-weight: 600;
    color: #374250;
}

/* Date Info */
.media-date-info {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Snippet */
.media-snippet {
    margin: 20px 0;
}

.media-snippet h6 {
    font-size: 14px;
    font-weight: 600;
    color: #374250;
    margin: 0 0 8px 0;
}

.snippet-text {
    font-size: 14px;
    line-height: 1.5;
    color: #606975;
    /*font-style: italic;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid #e1e7ec;
    margin: 0;*/
}

/* Actions */
.media-actions {
    margin-top: 25px;
    text-align: center;
}

.media-actions .btn {
    font-weight: 600;
    padding: 0px 30px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.media-actions .btn i {
    margin-right: 8px;
}

.badge-review {
    background-color: #333333!important;
}

/* Responsive Modal Styles */
@media (max-width: 768px) {
    .media-awards-modal-container {
        padding: 10px;
    }
    
    .media-awards-modal-content {
        max-height: 100vh;
        height: 100%;
        border-radius: 0;
    }
    
    .media-awards-modal-close-only {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .media-awards-modal-body {
        padding: 20px;
        max-height: 100vh;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    /* 4 columns becomes 3 on large tablets */
    .media-items-grid[data-columns="4"] {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .media-items-grid {
        gap: 20px;
        margin-top: 20px;
    }
    
    /* 4 and 3 columns become 2 on tablets */
    .media-items-grid[data-columns="4"],
    .media-items-grid[data-columns="3"] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .media-awards-reviews-section {
        margin: 20px 0 30px;
    }
    
    .media-awards-reviews-section .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .media-content-minimal {
        padding: 12px 0;
    }
    
    .media-content-minimal .media-title {
        font-size: 16px;
    }
    
    .media-content-minimal .media-date {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    /* All layouts become single column on mobile */
    .media-items-grid[data-columns="2"],
    .media-items-grid[data-columns="3"],
    .media-items-grid[data-columns="4"] {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .media-awards-reviews-section .section-title {
        font-size: 18px;
    }
    
    .media-content-minimal .media-title {
        font-size: 15px;
    }
    
    .media-content-minimal .media-date {
        font-size: 12px;
    }
}


/* Loading State */
.media-modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #9da9b9;
}

.media-modal-loading i {
    margin-right: 10px;
}

/* Empty State */
.media-awards-empty {
    text-align: center;
    padding: 40px 20px;
    color: #9da9b9;
}

.media-awards-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #e1e7ec;
}

/* Hover Effects */
.media-item-card:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 169, 239, 0.3);
}