/* ==========================================================================
   Enhanced Button System - FameForecast Edition
   ========================================================================== */

/* Base Button Styles */
.btn {
    background: var(--button-bg);
    border: 2px solid var(--box-border);
    color: var(--button-text);
    padding: 12px 24px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    box-shadow: 
        0 4px 15px rgba(var(--yellow-rgb), 0.4),
        inset 0 0 10px rgba(var(--white-rgb), 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(var(--black-rgb), 0.3);
    transform: translateZ(0); /* Hardware acceleration */
    cursor: pointer;
	width: fit-content;
}

/* Shimmer Effect */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(var(--white-rgb), 0.2),
        transparent
    );
    transition: all 0.6s ease;
}

/* Hover States */
.btn:hover {
    background: var(--button-hover);
    box-shadow: 
        0 6px 20px rgba(var(--yellow-rgb), 0.6),
        inset 0 0 15px rgba(var(--white-rgb), 0.3);
    transform: translateY(-2px) scale(1.02);
}

.btn:hover::before {
    left: 100%;
}

/* Active/Pressed State */
.btn:active {
    transform: translateY(1px);
    box-shadow: 
        0 2px 10px rgba(var(--yellow-rgb), 0.4),
        inset 0 0 5px rgba(var(--white-rgb), 0.2);
}

/* Prominent Button (Primary CTA) */
.btn-prominent {
    padding: 16px 32px;
    font-size: 1.2rem;
    border-width: 3px;
    box-shadow: 
        0 6px 25px rgba(var(--yellow-rgb), 0.5),
        0 0 15px rgba(var(--yellow-rgb), 0.4),
        inset 0 0 15px rgba(var(--white-rgb), 0.3);
    letter-spacing: 1px;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 6px 25px rgba(var(--yellow-rgb), 0.5), 0 0 15px rgba(var(--yellow-rgb), 0.4), inset 0 0 15px rgba(var(--white-rgb), 0.3); }
    50% { box-shadow: 0 6px 30px rgba(var(--yellow-rgb), 0.7), 0 0 20px rgba(var(--yellow-rgb), 0.6), inset 0 0 20px rgba(var(--white-rgb), 0.4); }
}

/* Platform-Specific Buttons */
.btn--spotify {
    background: linear-gradient(135deg, var(--spotify-green), #0E8C3A);
    border-color: rgba(var(--white-rgb), 0.3);
    box-shadow: 0 4px 15px rgba(29, 185, 84, 0.4);
}

.btn--youtube {
    background: linear-gradient(135deg, var(--youtube-red), #CC0000);
    border-color: rgba(var(--white-rgb), 0.3);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.btn--twitch {
    background: linear-gradient(135deg, var(--twitch-purple), #6B2DBC);
    border-color: rgba(var(--white-rgb), 0.3);
    box-shadow: 0 4px 15px rgba(var(--yellow-rgb), 0.4);
}

/* Secondary Button */
.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    border-color: rgba(var(--white-rgb), 0.2);
    box-shadow: 0 4px 10px rgba(108, 117, 125, 0.3);
}

/* Google Button */
.btn--google {
    background: linear-gradient(135deg, var(--white), #F1F1F1);
    color: #3c4043;
    border: 2px solid #E0E0E0;
    box-shadow: 0 2px 5px rgba(var(--black-rgb), 0.1);
}

.btn--google:hover {
    background: linear-gradient(135deg, #F8F8F8, #E8E8E8);
}

/* Search Button */
.btn--search {
    border-radius: 0 8px 8px 0;
    border-left: none;
    padding: 12px 20px;
}

/* Small Button */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .btn-prominent {
        padding: 12px 24px;
        font-size: 1rem;
        animation: none; /* Disable pulse on mobile */
    }
    
    /* Reduce glow effects on mobile */
    .btn, .btn-prominent {
        box-shadow: 0 4px 10px rgba(var(--black-rgb), 0.2);
    }
}

/* Button Container Styles (keeps your existing layout) */
.nav-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
}

.nav-row .btn {
    flex: 0 1 auto;
    min-width: 0;
}


/* Override for the prominent button to give it a success color */
.btn-prominent.btn-success {
    background: var(--button-bg);
    color: var(--button-text);
    box-shadow: 
        0 6px 25px rgba(29, 185, 84, 0.5),
        0 0 15px rgba(84, 255, 150, 0.4),
        inset 0 0 15px rgba(var(--white-rgb), 0.3);
    animation: pulse-glow-success 2s infinite; /* Custom pulse for success */
}
