/* Reels Gallery CSS - Adapted */

.reels-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 20px;
}

/* Header Styles */
.reels-header {
    text-align: center;
    margin-bottom: 60px;
}

.reels-subtitle {
    font-family: 'Brush Script MT', cursive;
    color: #D4AF37;
    font-size: 28px;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.reels-title {
    font-size: 56px;
    font-weight: 700;
    color: #D4AF37;
    margin-bottom: 20px;
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.2s forwards;
}

.reels-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.4s forwards;
}

/* Grid Layout */
.reels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Reel Card */
.reel-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    opacity: 0;
    animation: fadeInScale 0.6s ease forwards;
}

.reel-card:nth-child(1) { animation-delay: 0.1s; }
.reel-card:nth-child(2) { animation-delay: 0.2s; }
.reel-card:nth-child(3) { animation-delay: 0.3s; }
.reel-card:nth-child(4) { animation-delay: 0.4s; }
.reel-card:nth-child(5) { animation-delay: 0.5s; }
.reel-card:nth-child(6) { animation-delay: 0.6s; }

.reel-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.3);
}

/* Video Container */
.reel-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 177.78%; /* Ratio 9:16 para reels */
    background: #1a1a1a;
    overflow: hidden;
}

.reel-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay */
.reel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

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

/* Play Button Overlay */
.reel-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(212, 175, 55, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.reel-card:hover .reel-play-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(212, 175, 55, 1);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
}

.reel-play-overlay svg {
    width: 32px;
    height: 32px;
    fill: #000000;
    margin-left: 4px;
}

/* Instagram Badge */
.reel-instagram-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 3;
}

.reel-card:hover .reel-instagram-badge {
    transform: scale(1.1) rotate(5deg);
}

.reel-instagram-badge svg {
    width: 28px;
    height: 28px;
    fill: #ffffff;
}

/* Info Section */
.reel-info {
    position: relative;
    z-index: 2;
}

.reel-caption {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reel-stats {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 15px;
}

.reel-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.reel-stat svg {
    width: 18px;
    height: 18px;
    fill: #D4AF37;
}

/* CTA Button */
.reel-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.reel-cta:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    color: #ffffff;
}

.reel-cta svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
    transition: transform 0.3s ease;
}

.reel-cta:hover svg {
    transform: translateX(3px);
}

/* Duration Badge */
.reel-duration {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    z-index: 3;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .reels-container {
        padding: 60px 15px;
    }

    .reels-title {
        font-size: 40px;
    }

    .reels-subtitle {
        font-size: 24px;
    }

    .reels-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .reel-overlay {
        padding: 20px;
    }

    .reel-play-overlay {
        width: 60px;
        height: 60px;
    }

    .reel-play-overlay svg {
        width: 24px;
        height: 24px;
    }
}

/* Shimmer Loading Effect */
.reel-card.loading .reel-video-container {
    background: linear-gradient(
        90deg,
        #1a1a1a 0%,
        #2a2a2a 50%,
        #1a1a1a 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}
