/* --- savema/static/css/media.css --- */

.btn-filter {
    border: 2px solid #eee;
    color: #555;
    border-radius: 30px;
    padding: 8px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: white;
    margin: 5px;
    white-space: nowrap;
}

.btn-filter:hover {
    border-color: #852248;
    color: #852248;
    transform: translateY(-2px);
}

.btn-filter.active {
    background-color: #852248;
    border-color: #852248;
    color: white;
    box-shadow: 0 4px 10px rgba(133, 34, 72, 0.3);
}

.media-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    background: white;
    position: relative;
    height: 100%;
}

.media-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.img-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: pointer;
    background-color: #f8f9fa;
}
.img-wrapper img {
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}

.video-wrapper {
    aspect-ratio: 16 / 9;
    background-color: #000;
}

.video-wrapper img {
    object-fit: cover !important;
    padding: 0 !important;
    filter: brightness(1.2);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333;
    color: white;
}

.photo-wrapper {
    aspect-ratio: 16 / 9;
}

.photo-wrapper img {
    object-fit: contain !important;
    padding: 5px !important;
    background-color: #f8f9fa;
}


.catalog-wrapper {
    aspect-ratio: 2 / 3 !important;
    background-color: #fff;
}

.catalog-wrapper img {
    object-fit: contain !important;
    padding: 15px !important;
}

.video-placeholder.bg-light {
    background-color: #f8f9fa !important;
    color: #6c757d;
}

.media-card:hover .img-wrapper img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

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

.video-wrapper .overlay {
    opacity: 1;

    background: rgba(0, 0, 0, 0.01);

    transition: background 0.3s ease;
}
.media-card:hover .video-wrapper .overlay {
    background: rgba(0, 0, 0, 0.2);
}

.catalog-overlay {
    background: rgba(133, 34, 72, 0.95) !important;
    flex-direction: column;
}

.play-btn {
    width: 60px; height: 60px;
    background: #852248;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    padding-left: 4px;
    transition: transform 0.3s;
    box-shadow: 0 0 0 0 rgba(133, 34, 72, 0.7);
    animation: pulse 2s infinite;
}

.media-card:hover .play-btn {
    transform: scale(1.1);
    background: #a32a58;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(133, 34, 72, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(133, 34, 72, 0); }
    100% { box-shadow: 0 0 0 0 rgba(133, 34, 72, 0); }
}

@media (max-width: 768px) {
    .btn-filter { padding: 6px 15px; font-size: 0.85rem; }
}