/* ============================================
   FUTURISTIC BUTTONS - 2026 UK STANDARDS
   ============================================ */

:root {
    --primary-glow: #00d4ff;
    --secondary-glow: #ff006e;
    --accent-glow: #8338ec;
    --dark-bg: #0a0e27;
    --light-bg: #f5f7fa;
    --success-glow: #06d6a0;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============ MAIN FUTURISTIC BUTTON ============ */
.btn-futuristic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    text-transform: uppercase;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    color: #000 !important;
}

.btn-futuristic:focus {
    outline: 2px solid rgba(0, 212, 255, 0.5);
    outline-offset: 4px;
}

.btn-futuristic:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-futuristic i {
    font-size: 14px;
    transition: transform var(--transition);
}

.btn-futuristic:hover i {
    transform: translateX(4px);
}

/* ============ GLOW VARIANT ============ */
.btn-glow {
    background: linear-gradient(135deg, var(--primary-glow) 0%, #00a8cc 100%);
    color: #000 !important;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

.btn-glow:hover {
    background: linear-gradient(135deg, #00e5ff 0%, #00d4ff 100%);
    box-shadow: 0 0 35px rgba(0, 212, 255, 0.6),
                0 0 50px rgba(0, 212, 255, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    color: #000 !important;
}

.btn-glow:active {
    transform: translateY(-1px);
}

/* ============ GLASS MORPHISM VARIANT ============ */
.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    font-weight: 700;
}

.btn-glass:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(0, 212, 255, 0.3),
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    transform: translateY(-3px);
}

.btn-glass:active {
    transform: translateY(-1px);
}

/* ============ NEON VARIANT ============ */
.btn-neon {
    background: transparent;
    color: #ffffff !important;
    border: 2px solid var(--primary-glow);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3),
                inset 0 0 10px rgba(0, 212, 255, 0.1);
    position: relative;
}

.btn-neon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
    animation: neon-pulse 2s infinite;
    border-radius: var(--radius-lg);
    pointer-events: none;
}

.btn-neon:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: #00e5ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6),
                inset 0 0 20px rgba(0, 212, 255, 0.2);
    color: #ffffff !important;
    text-shadow: 0 0 20px rgba(0, 212, 255, 1);
    transform: translateY(-3px);
}

/* ============ SECONDARY COLORS ============ */
.btn-secondary-glow {
    background: linear-gradient(135deg, var(--secondary-glow) 0%, #e0005a 100%);
    color: #fff !important;
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.4);
}

.btn-secondary-glow:hover {
    background: linear-gradient(135deg, #ff1a7e 0%, var(--secondary-glow) 100%);
    box-shadow: 0 0 35px rgba(255, 0, 110, 0.6);
    transform: translateY(-3px);
    color: #fff !important;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-glow) 0%, #5d00ff 100%);
    color: #fff !important;
    box-shadow: 0 0 20px rgba(131, 56, 236, 0.4);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #9d5dff 0%, var(--accent-glow) 100%);
    box-shadow: 0 0 35px rgba(131, 56, 236, 0.6);
    transform: translateY(-3px);
    color: #fff !important;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-glow) 0%, #00b88a 100%);
    color: #000 !important;
    box-shadow: 0 0 20px rgba(6, 214, 160, 0.4);
}

.btn-success:hover {
    background: linear-gradient(135deg, #1fd6a6 0%, var(--success-glow) 100%);
    box-shadow: 0 0 35px rgba(6, 214, 160, 0.6);
    transform: translateY(-3px);
    color: #000 !important;
}

/* ============ SIZE VARIANTS ============ */
.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 18px;
}

.btn-xl {
    padding: 22px 50px;
    font-size: 20px;
    font-weight: 700;
}

/* ============ FILL VARIANTS ============ */
.btn-outline {
    background: transparent;
    border: 2.5px solid currentColor;
    color: var(--primary-glow);
}

.btn-outline:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-3px);
}

.btn-solid {
    background: var(--primary-glow);
    color: #000;
}

.btn-solid:hover {
    background: #00e5ff;
}

/* ============ ANIMATED BACKGROUND ============ */
.btn-animated-bg {
    background: linear-gradient(270deg, var(--primary-glow), var(--accent-glow), var(--primary-glow));
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
    color: #fff;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.btn-animated-bg:hover {
    animation: gradient-shift 2s ease infinite;
    transform: translateY(-3px);
}

/* ============ PULSE EFFECT ============ */
.btn-pulse {
    animation: btn-pulse-animation 2s infinite;
}

@keyframes btn-pulse-animation {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(0, 212, 255, 0);
    }
}

.btn-pulse:hover {
    animation: none;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

/* ============ ICON BUTTONS ============ */
.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-lg {
    width: 56px;
    height: 56px;
}

.btn-icon-sm {
    width: 40px;
    height: 40px;
}

/* ============ TEXT BUTTON ============ */
.btn-text {
    background: transparent;
    color: var(--primary-glow);
    padding: 8px 12px;
    font-size: 14px;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

.btn-text:hover {
    color: #00e5ff;
    gap: 8px;
}

/* ============ GROUP BUTTONS ============ */
.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .btn-group {
        flex-direction: column;
    }
    
    .btn-futuristic {
        width: 100%;
    }
}

/* ============ ANIMATIONS ============ */
@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes neon-pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.btn-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.btn-futuristic {
    animation: slide-in 0.6s ease-out;
}

/* ============ LOADING STATE ============ */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* ============ ACCESSIBILITY ============ */
@media (prefers-reduced-motion: reduce) {
    .btn-futuristic,
    .btn-futuristic::before,
    .btn-futuristic::after,
    .btn-animated-bg,
    .btn-pulse,
    .btn-float {
        animation: none !important;
        transition: none !important;
    }
}

/* ============ DARK MODE SUPPORT ============ */
@media (prefers-color-scheme: dark) {
    .btn-glass {
        background: rgba(0, 212, 255, 0.05);
        border-color: rgba(0, 212, 255, 0.3);
    }
    
    .btn-glass:hover {
        background: rgba(0, 212, 255, 0.15);
    }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .btn-futuristic {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    .btn-xl {
        padding: 16px 32px;
        font-size: 18px;
    }
}

/* ============ HOVER LIFT EFFECT ============ */
.btn-lift {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all var(--transition);
}

.btn-lift:hover {
    box-shadow: 0 12px 30px rgba(0, 212, 255, 0.3);
    transform: translateY(-6px);
}

/* ============ ROUNDED FULL BUTTON ============ */
.btn-rounded {
    border-radius: 50px;
}

/* ============ FLOATING HOME BUTTON ============ */
.btn-floating-home {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-glow) 0%, #00a8cc 100%);
    color: #000 !important;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all var(--transition);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
}

.btn-floating-home.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.btn-floating-home:hover {
    background: linear-gradient(135deg, #00e5ff 0%, #00d4ff 100%);
    box-shadow: 0 0 35px rgba(0, 212, 255, 0.6),
                0 0 50px rgba(0, 212, 255, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-5px) scale(1.05);
}

.btn-floating-home:active {
    transform: translateY(-2px) scale(0.98);
}

@media (max-width: 768px) {
    .btn-floating-home {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-floating-home,
    .btn-floating-home:hover {
        transition: none;
        transform: none;
    }
}


/* ============ GRADIENT TEXT ============ */
.btn-gradient-text {
    background: linear-gradient(135deg, var(--primary-glow) 0%, var(--secondary-glow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============ COMBINED WITH SELECT ============ */
.btn-glass.form-control,
select.btn-glass {
    padding: 12px 16px;
    font-size: 15px;
    color: var(--primary-glow);
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300d4ff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

select.btn-glass:hover,
select.btn-glass:focus {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.6);
    outline: none;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

select.btn-glass option {
    background: #0a0e27;
    color: #fff;
}

/* ============ CONTRAST SUPPORT ============ */
@media (prefers-contrast: more) {
    .btn-futuristic {
        border: 2px solid currentColor;
        font-weight: 700;
    }
    
    .btn-glass {
        border-width: 3px;
    }
    
    .btn-neon {
        border-width: 3px;
    }
}

/* ============ HIGH DPI DISPLAY SUPPORT ============ */
@media (resolution: 2dppx) {
    .btn-futuristic {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}
