/* Claim Account Button Component
 * Reusable CSS for "Claim Your Account" buttons to encourage
 * guest users to upgrade to permanent accounts
 */

.btn-claim-account {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border: none;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 6px;
    padding: 8px 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-claim-account:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #e8851a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    color: white;
    text-decoration: none;
}

.btn-claim-account:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
}

.btn-claim-account::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: left 0.5s;
}

.btn-claim-account:hover::before {
    left: 100%;
}

/* Prominent variant for main areas */
.btn-claim-account.btn-prominent {
    font-size: 1rem;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(255, 107, 53, 0.4);
}

.btn-claim-account.btn-prominent:hover {
    box-shadow: 0 5px 16px rgba(255, 107, 53, 0.5);
    transform: translateY(-2px);
}

/* Small variant for compact spaces */
.btn-claim-account.btn-sm {
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 4px;
}

/* Sidebar variant - fits sidebar design */
.btn-claim-account.sidebar-variant {
    width: 100%;
    margin: 8px 0;
    border-radius: 8px;
    font-size: 0.85rem;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border: 2px solid rgba(255, 107, 53, 0.3);
}

.btn-claim-account.sidebar-variant:hover {
    border-color: rgba(255, 107, 53, 0.6);
}

/* Top bar variant - compact for header */
.btn-claim-account.topbar-variant {
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    vertical-align: middle;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 0;
}

/* Dropdown menu variant */
.btn-claim-account.dropdown-variant {
    width: 100%;
    text-align: left;
    border-radius: 4px;
    font-size: 0.9rem;
    padding: 8px 16px;
    margin: 4px 0;
}

/* Badge/indicator for urgency */
.claim-badge {
    background: #dc3545;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 6px;
    display: inline-block;
    animation: pulse-claim 2s infinite;
}

/* Animation for attention */
@keyframes pulse-claim {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.btn-claim-account.pulse {
    animation: pulse-claim-button 3s infinite;
}

@keyframes pulse-claim-button {
    0% { box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3); }
    50% { box-shadow: 0 4px 16px rgba(255, 107, 53, 0.6); }
    100% { box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3); }
}

/* Collapsed sidebar adjustments */
.sidebar-toggled .btn-claim-account.sidebar-variant {
    width: auto;
    margin: 4px 8px;
    padding: 8px;
    font-size: 0;
    text-align: center;
    border-radius: 50%;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggled .btn-claim-account.sidebar-variant .fas {
    margin: 0;
    font-size: 1rem;
}

.sidebar-toggled .btn-claim-account.sidebar-variant span {
    display: none;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .btn-claim-account.btn-prominent {
        font-size: 0.9rem;
        padding: 10px 16px;
    }
    
    .btn-claim-account {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .btn-claim-account.sidebar-variant {
        font-size: 0.8rem;
    }
    
    /* Mobile collapsed sidebar - hide the button entirely to save space */
    .sidebar-toggled .btn-claim-account.sidebar-variant {
        display: none;
    }
}

/* Dark theme support */
.btn-claim-account.dark-theme {
    background: linear-gradient(135deg, #e55a2b 0%, #d4761a 100%);
}

.btn-claim-account.dark-theme:hover {
    background: linear-gradient(135deg, #cc4f24 0%, #c26917 100%);
}

/* Alert variant for urgent claiming */
.btn-claim-account.urgent {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    animation: pulse-claim 2s infinite;
}

.btn-claim-account.urgent:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
}

/* Icon spacing */
.btn-claim-account .fas,
.btn-claim-account .fa {
    margin-right: 6px;
}

.btn-claim-account .fas.fa-arrow-right,
.btn-claim-account .fa.fa-arrow-right {
    margin-left: 6px;
    margin-right: 0;
}