/* Smooth Transitions & Micro-interactions */
/* Professional animations and transitions for enhanced UX */

/* ============================================
   PAGE TRANSITIONS
   ============================================ */

body {
    transition: opacity 0.3s ease;
}

body.page-transitioning {
    opacity: 0.95;
}

/* ============================================
   NAVIGATION MICRO-INTERACTIONS
   ============================================ */

.nav-link,
.nav-icon-btn,
.btn-header-primary,
.btn-header-cta,
.mobile-menu-btn,
.mobile-menu-toggle {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Hover lift effect */
.nav-link:hover,
.nav-icon-btn:hover {
    transform: translateY(-2px);
}

.nav-link:active,
.nav-icon-btn:active {
    transform: translateY(0);
}

/* Icon glow on hover */
.nav-icon-btn:hover svg,
.nav-icon-btn:hover i {
    color: #D4AF37;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
}

/* Active page indicator */
.nav-link.active {
    color: #D4AF37;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: #D4AF37;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* ============================================
   BUTTON INTERACTIONS
   ============================================ */

.btn-primary,
.btn-secondary,
.btn-header-primary,
.btn-header-cta {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ripple effect */
.btn-primary::after,
.btn-secondary::after,
.btn-header-primary::after,
.btn-header-cta::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:active::after,
.btn-secondary:active::after,
.btn-header-primary:active::after,
.btn-header-cta:active::after {
    width: 300px;
    height: 300px;
}

/* Shine effect on hover */
.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    left: 100%;
}

/* Button hover states */
.btn-primary:hover,
.btn-header-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(212, 175, 55, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* ============================================
   CARD INTERACTIONS
   ============================================ */

.venue-card,
.event-card,
.list-card,
.post-card,
.story-item,
.friend-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.venue-card:hover,
.event-card:hover,
.list-card:hover,
.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* Card image zoom on hover */
.venue-card:hover .venue-image img,
.event-card:hover img,
.list-card:hover img {
    transform: scale(1.05);
}

.venue-image img,
.event-card img,
.list-card img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   FORM INTERACTIONS
   ============================================ */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="date"],
input[type="time"],
textarea,
select {
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    transform: translateY(-1px);
}

/* ============================================
   MODAL ANIMATIONS
   ============================================ */

.modal {
    transition: opacity 0.3s ease;
}

.modal.active {
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    animation: modalSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
   LOADING ANIMATIONS
   ============================================ */

.loading-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-top-color: #D4AF37;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

/* ============================================
   CONTENT ANIMATIONS
   ============================================ */

/* Fade in */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for lists */
.stagger-item {
    opacity: 0;
    animation: staggerFadeIn 0.5s ease forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }
.stagger-item:nth-child(7) { animation-delay: 0.7s; }
.stagger-item:nth-child(8) { animation-delay: 0.8s; }

@keyframes staggerFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide in from left */
.slide-in-left {
    animation: slideInLeft 0.5s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide in from right */
.slide-in-right {
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   INTERACTIVE ELEMENTS
   ============================================ */

/* Like button animation */
.like-btn.liked {
    animation: heartBeat 0.5s ease;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(0.9);
    }
    75% {
        transform: scale(1.1);
    }
}

/* Vote button animation */
.vote-btn.voted {
    animation: voteSuccess 0.5s ease;
}

@keyframes voteSuccess {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Save button animation */
.save-btn.saved {
    animation: saveSuccess 0.5s ease;
}

@keyframes saveSuccess {
    0% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.2) rotate(-10deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    75% {
        transform: scale(1.2) rotate(-10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* ============================================
   NOTIFICATION ANIMATIONS
   ============================================ */

.notification {
    animation: notificationSlideIn 0.3s ease;
}

@keyframes notificationSlideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.removing {
    animation: notificationSlideOut 0.3s ease;
}

@keyframes notificationSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* ============================================
   TOOLTIP ANIMATIONS
   ============================================ */

[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 8px 12px;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 0.875rem;
    white-space: nowrap;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1000;
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   BADGE ANIMATIONS
   ============================================ */

.badge-new {
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }
}

/* ============================================
   PROGRESS ANIMATIONS
   ============================================ */

.progress-bar {
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ============================================
   RESPONSIVE ANIMATIONS
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Disable animations on mobile for performance */
@media (max-width: 768px) {
    .venue-card:hover,
    .event-card:hover,
    .list-card:hover,
    .post-card:hover {
        transform: none;
    }
    
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
}

/* ============================================
   FOCUS STATES (Accessibility)
   ============================================ */

*:focus-visible {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
}

/* ============================================
   CUSTOM CURSOR (Optional Enhancement)
   ============================================ */

.clickable {
    cursor: pointer;
}

.clickable:active {
    cursor: grabbing;
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Use GPU acceleration for transforms */
.venue-card,
.event-card,
.list-card,
.post-card,
.btn-primary,
.btn-secondary,
.modal-content {
    will-change: transform;
}

/* Prevent layout shifts */
img {
    content-visibility: auto;
}