/* ============================================
   BUTTON ANIMATIONS
   Cinematic hover effects with warm amber accent
   ============================================ */

/* Primary Button - Fill effect */
.btn-primary {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: var(--accent-primary, #d4a853);
    color: var(--bg-primary, #0a0a0a);
    border: 1px solid var(--accent-primary, #d4a853);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-secondary, #c49a47);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
    border-color: var(--accent-secondary, #c49a47);
    box-shadow: 0 12px 35px rgba(212, 168, 83, 0.3);
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Secondary Button - Border fill effect */
.btn-secondary {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: transparent;
    color: var(--text-primary, #ffffff);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary:hover {
    color: var(--text-primary, #ffffff);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Hero buttons entrance animation */
.hero-buttons .btn {
    opacity: 0;
    transform: translateY(20px);
}

.hero-buttons .btn:nth-child(1) {
    animation: buttonSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

.hero-buttons .btn:nth-child(2) {
    animation: buttonSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.15s forwards;
}

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

/* Active/pressed state */
.btn:active {
    transform: translateY(1px) scale(0.98);
}

/* Focus state for accessibility */
.btn:focus {
    outline: 2px solid var(--accent-primary, #d4a853);
    outline-offset: 3px;
}

.btn:focus:not(:focus-visible) {
    outline: none;
}

/* Subtle pulse animation for CTA emphasis */
@keyframes subtlePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 168, 83, 0);
    }
    50% {
        box-shadow: 0 0 20px 0 rgba(212, 168, 83, 0.15);
    }
}

.btn-primary.pulse {
    animation: subtlePulse 3s ease-in-out infinite;
}
