/* Connect Wallet Button Styling */

.button.primary {
    background: linear-gradient(135deg, #9945FF, #14F195);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(153, 69, 255, 0.3);
    cursor: pointer;
}

.button.primary::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: all 0.6s ease;
}

.button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(153, 69, 255, 0.4);
}

.button.primary:hover::before {
    left: 100%;
}

/* Connect Wallet Button States */
.button.primary.connecting {
    background: linear-gradient(135deg, #7B38CC, #10C278);
    position: relative;
}

.button.primary.connecting::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: connecting-pulse 1.5s infinite linear;
}

.button.primary.connected {
    background: linear-gradient(135deg, #14F195, #00C2FF);
}

@keyframes connecting-pulse {
    0% { left: -30%; }
    100% { left: 100%; }
}

/* Mobile optimizations */
@media (max-width: 767px) {
    .button.primary {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .header .right .button.primary {
        display: flex !important;
    }
    
    /* Ensure button is always visible in mobile */
    .hamburger {
        margin-right: 15px;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .button.primary:active {
        transform: scale(0.97);
    }
}

/* Ensure visibility on dark backgrounds */
.button.primary {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
