/* ========================= */
/* BUTTONS SYSTEM            */
/* ========================= */

.hero-button {
    display: inline-block;
    padding: var(--btn-padding-y) var(--btn-padding-x);
    background: var(--primary);
    color: #000000; /* High contrast text for the bright orange */
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid var(--primary-bright);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    transform: translateZ(0); /* Hardware acceleration */
}

/* 🎯 DESKTOP ONLY LOGIC */
/* This ensures ONLY devices with physical mice get the pulse and hover states */
@media (hover: hover) {
    /* 1. Pulse when idle on desktop */
    .hero-button {
        animation: button-pulse 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* 2. Solid glow and stop pulse on hover */
    .hero-button:hover {
        background: var(--primary-bright);
        transform: translateY(-2px);
        animation: none;
        box-shadow: var(--glow-strong);
        color: #000000;
    }
}

/* 📱 Native Mobile Tap State */
.hero-button:active {
    transform: scale(0.96);
    background: var(--primary-strong);
}

/* ========================= */
/* BUTTON VARIANTS           */
/* ========================= */

/* Small button for Forms and Cookie Banner */
.hero-button.btn-sm {
    padding: 12px 24px;
    font-size: 0.85rem;
    border-width: 1px;
}

@media (hover: hover) {
    .hero-button.btn-sm {
        animation: none; /* No pulse on small utility buttons */
    }
    
    .hero-button.btn-sm:hover {
        box-shadow: var(--glow-medium);
        transform: translateY(-1px);
    }
}

/* Outline button for secondary actions (e.g. "Essential Cookies", "Send Another") */
.hero-button.outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

@media (hover: hover) {
    .hero-button.outline {
        animation: none; /* No pulse on outline buttons */
    }
    
    .hero-button.outline:hover {
        background: rgba(var(--primary-rgb), 0.1);
        color: var(--primary-bright);
        box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.2);
    }
}

.hero-button.outline:active {
    background: rgba(var(--primary-rgb), 0.2);
    transform: scale(0.96);
}

/* ========================= */
/* KEYFRAMES                 */
/* ========================= */

@keyframes button-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(var(--primary-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0);
    }
}