/* Icon Button Styles - Modern SVG buttons */
.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    outline: none;
}

/* Leaderboard and Spark Balance buttons - extend to fit content but maintain same height and styling */
.icon-btn.leaderboard-btn,
.icon-btn.spark-balance-btn {
    width: auto;
    min-width: 36px;
    height: 36px;
    border-radius: 18px; /* Half of height for pill shape */
    padding: 0 12px;
    gap: 4px;
    color: #fff;
}

/* Leaderboard button - gradient background */
.icon-btn.leaderboard-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
}

.icon-btn.leaderboard-btn:hover {
    background: linear-gradient(135deg, #e080ea 0%, #e4465b 100%) !important;
    transform: scale(1.05);
}

.icon-btn.leaderboard-btn:active,
.icon-btn.leaderboard-btn:focus {
    background: linear-gradient(135deg, #d070da 0%, #d3354a 100%) !important;
    transform: scale(0.95);
}

/* Spark Balance button - gradient background */
.icon-btn.spark-balance-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.icon-btn.spark-balance-btn:hover {
    background: linear-gradient(135deg, #556dd9 0%, #653a91 100%) !important;
    transform: scale(1.05);
}

.icon-btn.spark-balance-btn:active,
.icon-btn.spark-balance-btn:focus {
    background: linear-gradient(135deg, #445cc8 0%, #542980 100%) !important;
    transform: scale(0.95);
}

/* Default icon button hover states - but NOT for leaderboard or spark buttons */
.icon-btn:not(.leaderboard-btn):not(.spark-balance-btn):hover {
    background: rgba(0, 0, 0, 0.7) !important;
    transform: scale(1.05);
}

.icon-btn:not(.leaderboard-btn):not(.spark-balance-btn):active,
.icon-btn:not(.leaderboard-btn):not(.spark-balance-btn):focus {
    background: rgba(0, 0, 0, 0.8) !important;
    transform: scale(0.95);
    outline: none;
}

/* Override Elementor button states - but NOT for leaderboard or spark buttons */
.icon-btn:not(.leaderboard-btn):not(.spark-balance-btn):hover:not(:disabled),
.icon-btn:not(.leaderboard-btn):not(.spark-balance-btn):focus:not(:disabled),
.icon-btn:not(.leaderboard-btn):not(.spark-balance-btn):active:not(:disabled) {
    background: rgba(0, 0, 0, 0.7) !important;
}

.icon-btn svg {
    width: 20px;
    height: 20px;
    color: #fff;
    pointer-events: none;
}

/* Report button specific styling */
.icon-btn.report svg {
    color: #EF4444;
    width: 18px;
    height: 18px;
    transform: translate(1px, 4px); /* Shift right 1px and DOWN 1px to center visually */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .icon-btn {
        width: 40px;
        height: 40px;
    }
    
    .icon-btn svg {
        width: 22px;
        height: 22px;
    }
    
    .icon-btn.report svg {
        width: 20px;
        height: 20px;
        transform: translate(1px, 4px); /* Match desktop positioning */
    }
}

/* === ACTION BUTTONS (STOP/NEXT) === */
.top-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    z-index: 50;
}

.bottom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px 16px 16px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    z-index: 50;
}

.action-btn {
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    flex-shrink: 0; /* Prevent buttons from being stretched */
}

.action-btn:hover {
    transform: scale(1.05);
}

.action-btn:active {
    transform: scale(0.95);
}

.btn-stop {
    width: 64px;
    height: 64px;
    background: #EF4444;
    flex-shrink: 0; /* Ensure button stays circular */
}

.btn-stop:hover {
    background: #DC2626;
}

.btn-start-next {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    flex-shrink: 0; /* Ensure button stays circular */
}

.btn-start-next:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
}

/* Heart and Spark buttons */
.btn-heart,
.btn-spark {
    width: 46px;
    height: 46px;
    backdrop-filter: blur(10px);
    border: none;
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.3s;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Heart button - solid white/pink background */
.btn-heart {
    background: rgba(255, 255, 255, 0.25);
}

/* Spark button - solid white/purple background */
.btn-spark {
    background: rgba(255, 255, 255, 0.25);
}

.btn-heart:hover {
    background: rgba(255, 182, 193, 0.4) !important;
    transform: scale(1.1);
}

.btn-heart:active {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: scale(0.95);
}

.btn-spark:hover {
    background: rgba(147, 112, 219, 0.4) !important;
    transform: scale(1.1);
}

.btn-spark:active {
    background: rgba(138, 43, 226, 0.5) !important;
    transform: scale(0.95);
}

/* Prevent focus state from keeping background */
.btn-heart:focus,
.btn-spark:focus {
    background: rgba(255, 255, 255, 0.25) !important;
    outline: none;
}

.action-btn svg {
    width: 28px;
    height: 28px;
}

.btn-start-next svg {
    width: 30px;
    height: 30px;
}

/* Mobile adjustments for action buttons */
@media (max-width: 768px) {
    .top-controls {
        padding: 10px;
        gap: 12px;
    }
    
    .bottom-controls {
        padding: 10px 12px 12px 12px;
        gap: 12px;
    }
    
    .btn-stop {
        width: 56px;
        height: 56px;
    }
    
    .btn-start-next {
        width: 64px;
        height: 64px;
    }
    
    .action-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .btn-start-next svg {
        width: 26px;
        height: 26px;
    }
}
