/* ========================================
   BUTTONS
======================================== */
.btn {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ========================================
   BET CARDS
======================================== */
.bet-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    border: 1px solid rgba(168, 85, 247, 0.3);
    transition: var(--transition);
    cursor: pointer;
}

.bet-card:hover {
    border-color: rgba(168, 85, 247, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.3);
}

.bet-header {
    margin-bottom: 1.5rem;
}

.bet-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.bet-description {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.bet-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.bet-creator {
    color: #c084fc;
    font-weight: 600;
}

.bet-status {
    padding: 0.375rem 0.875rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bet-status.open {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

.bet-status.resolved {
    background: rgba(168, 85, 247, 0.2);
    color: var(--primary);
    border: 1px solid var(--primary);
}

/* Outcomes */
.outcomes {
    display: grid;
    gap: 1rem;
}

.outcome-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.25rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.outcome-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
}

.outcome-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.outcome-name {
    font-weight: 600;
    font-size: 1.125rem;
}

.outcome-odds {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--success);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.outcome-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.outcome-pot {
    font-weight: 600;
}

.user-wager {
    color: var(--primary);
    font-weight: 700;
}

.outcome-actions {
    display: flex;
    gap: 0.5rem;
}

/* Resolve Section */
.resolve-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.resolve-section h4 {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resolve-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ========================================
   LEADERBOARD
======================================== */
.leaderboard {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.leaderboard h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(to right, #c084fc, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
    border-color: rgba(168, 85, 247, 0.3);
}

.rank {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    min-width: 4rem;
    text-align: center;
}

.rank.first {
    color: #fbbf24;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

.rank.second {
    color: #d1d5db;
    text-shadow: 0 0 20px rgba(209, 213, 219, 0.5);
}

.rank.third {
    color: #f97316;
    text-shadow: 0 0 20px rgba(249, 115, 22, 0.5);
}

.leaderboard-avatar {
    font-size: 3.5rem;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.3));
}

.leaderboard-info {
    flex: 1;
}

.leaderboard-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.leaderboard-stats {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.leaderboard-balance {
    text-align: right;
}

.balance-label {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--success);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* ========================================
   FAB (Floating Action Button)
======================================== */
.fab {
    position: fixed;
    bottom: 4rem;
    right: 4rem;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success), #059669);
    border: none;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
}

.fab::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.3));
    opacity: 0;
    transition: all 0.3s ease;
    transform: scale(0.8);
}

.fab:hover::before {
    opacity: 1;
    transform: scale(1.4);
}

.fab:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.7);
}

.fab:active {
    transform: scale(0.95);
}