/**
 * Single Camera Interactive Elements Styles
 * Additional styles for buttons, cards, and animations
 */

/* ============================================
   ANIMATED ICONS
   ============================================ */
.interactive-icon.animated,
.explore-icon.animated {
    animation: iconPulse 0.6s ease-in-out;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15) rotate(5deg);
    }
}

/* ============================================
   BUTTON INTERACTIONS
   ============================================ */
.btn-action-primary:active,
.btn-action-secondary:active,
.btn-action-buy:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-view-all-specs:active {
    transform: translateY(0) scale(0.98);
}

.btn-interactive:active {
    transform: scale(0.95);
}

/* ============================================
   EXPLORE CARD LOADING STATE
   ============================================ */
.explore-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.explore-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   INTERACTIVE CARD STATES
   ============================================ */
.interactive-card:active {
    transform: translateY(-3px) scale(0.98);
}

.sidebar-card:focus-within {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* ============================================
   OVERLAY ACTION BUTTON ANIMATION
   ============================================ */
.overlay-action-btn {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   TOOLTIP FOR BUTTONS (OPTIONAL) - REMOVED
   ============================================ */
/* Commented out to prevent tooltip appearing on explore cards */
/*
[data-modal-content]:hover::before {
    content: attr(data-modal-title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

[data-modal-content]:hover::before {
    opacity: 1;
    animation: tooltipFadeIn 0.2s ease-out 0.5s forwards;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
*/

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */
.explore-card:focus-visible,
[data-modal-content]:focus-visible {
    outline: 3px solid rgba(102, 126, 234, 0.6);
    outline-offset: 3px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .explore-card {
        border-width: 2px;
    }
    
    .btn-action-primary,
    .btn-action-secondary {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .explore-card,
    .interactive-card,
    .btn-action-primary,
    .btn-action-secondary,
    .btn-action-buy,
    .btn-view-all-specs,
    .btn-interactive,
    .overlay-action-btn {
        transition: none;
        animation: none;
    }
    
    .explore-card:hover,
    .interactive-card:hover {
        transform: none;
    }
}

/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */
@media (max-width: 768px) {
    /* Larger touch targets for mobile */
    .explore-card {
        min-height: 200px;
    }
    
    .btn-action-primary,
    .btn-action-secondary,
    .btn-action-buy {
        min-height: 48px;
        font-size: 1rem;
    }
    
    /* Remove hover effects on mobile */
    .explore-card:hover::before {
        transform: scaleX(0);
    }
    
    /* Show overlay button by default on mobile */
    .image-overlay-actions {
        opacity: 1;
        bottom: 20px;
    }
}
