/* ============================
   Film Strip Gallery Styles
============================ */

.film-gallery-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.film-row {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.film-strip-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: auto;
    touch-action: pan-x;
}

.film-strip {
    display: flex;
    flex-wrap: nowrap;
    width: 200%;
    position: relative;
    will-change: transform;
    user-select: none;
    touch-action: pan-x;
    cursor: grab;
    transition: transform 0.1s ease-out;
}

.film-strip:active {
    cursor: grabbing;
}

.film-strip.move-left {
    animation: scrollLeft 240s linear infinite;
}

.film-strip.move-right {
    animation: scrollRight 240s linear infinite;
}

.film-frame {
    flex: 0 0 auto;
    width: 200px;
    margin-right: 16px;
    position: relative;
    height: 200px;
    background: #0a0f0a;
    border: 2px solid #1a2f1a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    transform-origin: center center;
}

.film-frame:hover {
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
}

.film-frame:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

.film-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease, opacity 0.3s ease;
    background: linear-gradient(135deg, #1a2f1a 0%, #0a0f0a 100%);
}

.film-frame:hover .film-image {
    filter: brightness(1.1);
}

.film-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0) 100%);
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.film-frame:hover .film-overlay {
    transform: translateY(0);
}

.overlay-content {
    color: white;
}

.film-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.05) 50%, transparent 60%);
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.8s ease;
    pointer-events: none;
}

.film-frame:hover .film-shine {
    transform: rotate(45deg) translateX(100%);
}

/* ============================
   Animations
============================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ripple {
    to {
        transform: scale(3);
        opacity: 0;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0%); }
  }
  
  @keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
  }

/* Animation Triggers */
.animate-fade-in { animation: fadeIn 0.8s ease-out forwards; }
.animate-slide-in { animation: slide-in 0.3s ease-out; }
.animate-slide-up { animation: slide-up 0.3s ease-out; }

/* ============================
   Utility & Button Styles
============================ */

.add-to-cart-quick {
    transition: all 0.2s ease;
    padding: 5px;
    border-radius: 4px;
    position: relative;
}

.add-to-cart-quick:hover {
    background: rgba(34, 197, 94, 0.2);
    transform: translateY(-2px);
}

.cart-ripple {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.3);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
    top: 50%;
    left: 50%;
    margin-top: -15px;
    margin-left: -15px;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

a, button {
    transition: all 0.2s ease;
}

/* ============================
   Responsive Design
============================ */

@media (max-width: 768px) {
    .film-frame {
        width: 200px;
        height: 150px;
    }

    .film-strip {
        gap: 15px;
    }
}

/* ============================
   Text & UI Enhancements
============================ */

.gradient-text {
    background: linear-gradient(135deg, #22c55e, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
