/* Instagram Video Cards with Real Videos */
.video-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    max-width: 100%;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.instagram-video {
    width: 100%;
    height: auto;
    min-height: 400px;
    max-height: 550px;
    object-fit: cover;
    display: block;
}

/* Video overlay */
.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #dc2743;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.instagram-link:hover {
    background: white;
    transform: scale(1.05);
}

.instagram-link i {
    font-size: 1.2rem;
}

/* Sound Indicator */
.sound-indicator {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10;
    pointer-events: none;
}

.sound-indicator.active {
    background: rgba(220, 39, 67, 0.9);
    opacity: 1 !important;
}

.video-card:hover .sound-indicator {
    opacity: 1;
}

.instagram-video {
    cursor: pointer;
}


.instagram-video-card {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.instagram-video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.video-preview {
    position: relative;
    aspect-ratio: 9/16;
    max-height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

/* Animated background */
.video-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%),
        radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    background-size: 200% 200%, 150% 150%, 100% 100%;
    animation: shimmer 2s infinite, pulse-bg 3s infinite alternate;
}

@keyframes shimmer {

    0%,
    100% {
        background-position: 0% 50%, 0% 0%, 0% 0%;
    }

    50% {
        background-position: 100% 50%, 100% 100%, 0% 0%;
    }
}

@keyframes pulse-bg {
    0% {
        opacity: 0.9;
    }

    100% {
        opacity: 1;
    }
}

/* Play button overlay */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.play-pulse {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
    cursor: pointer;
}

.play-pulse i {
    font-size: 2rem;
    color: #dc2743;
    margin-left: 5px;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 0 25px rgba(255, 255, 255, 0);
    }
}

.instagram-video-card:hover .play-pulse {
    animation: pulse 0.8s infinite;
    transform: scale(1.15);
}

/* Instagram badge */
.instagram-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 8px 15px;
    border-radius: 20px;
    color: white;
    font-size: 1.2rem;
    z-index: 2;
}

/* Video info */
.video-info {
    padding: 20px;
    text-align: center;
    background: white;
}

.video-info h4 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.video-info p {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.video-info i {
    color: var(--secondary);
}

.instagram-card {
    min-height: 400px;
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 40px;
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.instagram-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: var(--transition);
}

.instagram-card:hover::before {
    background: rgba(0, 0, 0, 0.2);
}

.instagram-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.instagram-play {
    position: relative;
    margin-bottom: 30px;
}

.instagram-play .fa-instagram {
    font-size: 5rem;
    opacity: 0.3;
}

.instagram-play .fa-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    background: white;
    color: #dc2743;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    transition: var(--transition);
}

.instagram-card:hover .fa-play {
    transform: translate(-50%, -50%) scale(1.1);
}

.instagram-card-info h4 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.instagram-card-info p {
    color: white;
    font-size: 1rem;
    opacity: 0.9;
}