/* Staking-specific styles */

/* Staking Overview Card */
.staking-overview {
    text-align: center;
    background: linear-gradient(135deg, rgba(144, 238, 144, 0.1), rgba(124, 252, 0, 0.05));
    border: 1px solid rgba(144, 238, 144, 0.3);
}

.staking-overview h2 {
    color: #90EE90;
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: bold;
}

.staking-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Staking Stats */
.staking-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.stat-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #90EE90;
}

/* User Staking Card */
.user-staking h3 {
    color: #90EE90;
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

/* User Stats */
.user-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.user-stat-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.user-stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.user-stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #90EE90;
}

/* Staking Actions */
.staking-actions {
    margin-top: 25px;
}

.action-section {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.action-section h4 {
    color: #90EE90;
    margin-bottom: 15px;
    font-size: 18px;
    text-align: center;
}

/* Stake Input Row */
.stake-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.stake-input-row input {
    flex: 1;
    background: #000000 !important;
    border: 2px solid white !important;
    color: white !important;
    font-size: 16px !important;
    padding: 14px !important;
    border-radius: 8px !important;
    font-weight: bold;
    text-align: center;
}

.stake-input-row input:focus {
    outline: none;
    border-color: #90EE90 !important;
    box-shadow: 0 0 10px rgba(144, 238, 144, 0.5);
}

.stake-input-row input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    font-weight: normal;
}

/* Stake Control Buttons */
.stake-control-btn {
    background: linear-gradient(45deg, #4a5568, #2d3748);
    border: none;
    padding: 12px 14px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    min-width: 55px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.stake-control-btn:hover {
    background: linear-gradient(45deg, #2d3748, #1a202c);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.stake-control-btn:active {
    transform: translateY(0);
}

.stake-control-btn.double {
    background: linear-gradient(45deg, #38a169, #2f855a);
}

.stake-control-btn.double:hover {
    background: linear-gradient(45deg, #2f855a, #276749);
}

.stake-control-btn.half {
    background: linear-gradient(45deg, #e53e3e, #c53030);
}

.stake-control-btn.half:hover {
    background: linear-gradient(45deg, #c53030, #9c2626);
}

/* Staking Buttons */
.stake-btn {
    background: #000000 !important;
    border: 2px solid #90EE90 !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(144, 238, 144, 0.6), 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    font-size: 16px !important;
    padding: 14px 25px !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
    width: 100%;
    margin-top: 10px;
}

.stake-btn:hover {
    background: #1a1a1a !important;
    box-shadow: 0 0 25px rgba(144, 238, 144, 0.8), 0 6px 20px rgba(0, 0, 0, 0.5) !important;
    transform: translateY(-2px) !important;
    border-color: #7CFC00 !important;
}

.stake-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: 0 0 10px rgba(144, 238, 144, 0.3), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Withdraw Buttons */
.withdraw-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.withdraw-btn {
    background: #000000 !important;
    border: 2px solid #ffa502 !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(255, 165, 2, 0.6), 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    font-size: 14px !important;
    padding: 12px 20px !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
}

.withdraw-btn:hover {
    background: #1a1a1a !important;
    box-shadow: 0 0 25px rgba(255, 165, 2, 0.8), 0 6px 20px rgba(0, 0, 0, 0.5) !important;
    transform: translateY(-2px) !important;
    border-color: #ff9500 !important;
}

.claim-btn {
    background: #000000 !important;
    border: 2px solid #2ed573 !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(46, 213, 115, 0.6), 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    font-size: 14px !important;
    padding: 12px 20px !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
}

.claim-btn:hover {
    background: #1a1a1a !important;
    box-shadow: 0 0 25px rgba(46, 213, 115, 0.8), 0 6px 20px rgba(0, 0, 0, 0.5) !important;
    transform: translateY(-2px) !important;
    border-color: #26d065 !important;
}

.exit-btn {
    background: #000000 !important;
    border: 2px solid #ff6b6b !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.6), 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    font-size: 14px !important;
    padding: 12px 20px !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
}

.exit-btn:hover {
    background: #1a1a1a !important;
    box-shadow: 0 0 25px rgba(255, 107, 107, 0.8), 0 6px 20px rgba(0, 0, 0, 0.5) !important;
    transform: translateY(-2px) !important;
    border-color: #ff5252 !important;
}

/* Quick Amounts */
.quick-amounts-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 15px 0 10px 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-amounts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
    margin-bottom: 15px;
}

.quick-amount-btn {
    background: linear-gradient(45deg, #2d3748, #4a5568);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    text-align: center;
}

.quick-amount-btn:hover {
    background: linear-gradient(45deg, #4a5568, #2d3748);
    border-color: rgba(144, 238, 144, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.quick-amount-btn:active {
    transform: translateY(0);
}

/* Button disabled states */
.withdraw-btn:disabled,
.claim-btn:disabled,
.exit-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
    pointer-events: none !important;
}

.withdraw-btn:disabled:hover,
.claim-btn:disabled:hover,
.exit-btn:disabled:hover {
    transform: none !important;
    pointer-events: none !important;
}

/* Force enable claim button when wallet is connected */
.claim-btn:not(.processing):not(.error) {
    opacity: 1 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* Staking Information Card */
.staking-info h3 {
    color: #90EE90;
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(144, 238, 144, 0.05);
    border-color: rgba(144, 238, 144, 0.3);
    transform: translateY(-2px);
}

.info-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.info-content h4 {
    color: #90EE90;
    margin-bottom: 10px;
    font-size: 18px;
}

.info-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.5;
}

/* Action Buttons Layout */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    width: 100%;
    padding: 0;
}

.long-btn {
    width: 100%;
    font-size: 16px !important;
    padding: 14px 25px !important;
    box-sizing: border-box;
    margin: 0;
}

.short-buttons-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 0;
}

.short-btn {
    flex: 1;
    font-size: 16px !important;
    padding: 14px 25px !important;
    height: auto;
    box-sizing: border-box;
    margin: 0;
    width: calc(50% - 6px);
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .staking-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .user-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stake-input-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .stake-input-row input {
        width: 100%;
        flex-basis: 100%;
        order: 1;
    }
    
    .stake-control-btn {
        flex: 1;
        font-size: 12px;
        padding: 10px 8px;
        min-width: 0;
        order: 2;
    }
    
    .quick-amounts {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

/* Tablet Responsive */
@media (min-width: 768px) and (max-width: 1024px) {
    .staking-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .user-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .withdraw-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop/Large screen - enforce 2x2 layout for staking-stats */
@media (min-width: 1025px) {
    .staking-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Loading states */
.stat-value.loading,
.user-stat-value.loading {
    opacity: 0.6;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Success/Error states for buttons */
.btn.success {
    background: #2ed573 !important;
    border-color: #2ed573 !important;
}

.btn.error {
    background: #ff6b6b !important;
    border-color: #ff6b6b !important;
}

.btn.processing {
    background: linear-gradient(45deg, #6c757d, #868e96) !important;
    border-color: #6c757d !important;
    opacity: 0.8 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.btn.processing:hover {
    background: linear-gradient(45deg, #6c757d, #868e96) !important;
    transform: none !important;
}

/* Liquidity Staking Specific Styles */
.liquidity-info {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.info-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

.info-text p {
    margin: 0;
}

/* NFT Positions */
.nft-positions {
    margin-top: 20px;
}

.nft-list {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.no-nfts {
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    font-style: italic;
    padding: 40px 20px;
    font-size: 16px;
}

.nft-item {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.nft-item:hover {
    background: rgba(144, 238, 144, 0.05);
    border-color: rgba(144, 238, 144, 0.3);
    transform: translateY(-1px);
}

.nft-info {
    flex: 1;
}

.nft-id {
    color: #90EE90;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.nft-liquidity,
.nft-range {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 3px;
}

.nft-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nft-actions .short-btn {
    width: auto;
    min-width: 80px;
    padding: 10px 15px !important;
    font-size: 14px !important;
    margin: 0;
}

/* Liquidity Instructions */
.liquidity-instructions {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.liquidity-instructions h4 {
    color: #90EE90;
    margin-bottom: 15px;
    font-size: 18px;
}

.liquidity-instructions ol {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.6;
    padding-left: 20px;
}

.liquidity-instructions li {
    margin-bottom: 8px;
}

.liquidity-instructions a {
    color: #90EE90;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.liquidity-instructions a:hover {
    color: #7CFC00;
    text-decoration: underline;
}

/* Balance Info */
.balance-info {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.balance-item {
    text-align: center;
}

.balance-amount {
    color: #90EE90;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Mobile Responsive for Liquidity Staking */
@media (max-width: 767px) {
    .nft-item {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .nft-info {
        text-align: center;
    }
    
    .nft-actions {
        justify-content: center;
        gap: 8px;
    }
    
    .nft-actions .short-btn {
        flex: 1;
        min-width: 0;
    }
    
    .liquidity-instructions ol {
        padding-left: 15px;
    }
    
    .balance-amount {
        font-size: 16px;
        flex-wrap: wrap;
    }
}

/* Tablet Responsive for Liquidity Staking */
@media (min-width: 768px) and (max-width: 1024px) {
    .nft-item {
        flex-direction: row;
    }
    
    .nft-actions .short-btn {
        min-width: 70px;
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 8px;
}

.status-badge.wallet {
    background: rgba(144, 238, 144, 0.2);
    color: #90EE90;
    border: 1px solid rgba(144, 238, 144, 0.4);
}

.status-badge.deposited {
    background: rgba(255, 165, 2, 0.2);
    color: #ffa502;
    border: 1px solid rgba(255, 165, 2, 0.4);
}

.status-badge.staked {
    background: rgba(46, 213, 115, 0.2);
    color: #2ed573;
    border: 1px solid rgba(46, 213, 115, 0.4);
}

/* Manual NFT Section */
.manual-nft-section {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-top: 15px;
    text-align: center;
}

.manual-nft-section h5 {
    color: #90EE90;
    margin-bottom: 10px;
    font-size: 16px;
}

.manual-nft-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 15px;
}

.manual-nft-input {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.manual-nft-input input {
    background: #000000 !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    font-size: 14px !important;
    padding: 10px 15px !important;
    border-radius: 8px !important;
    font-weight: bold;
    text-align: center;
    min-width: 200px;
    flex: 1;
    max-width: 300px;
}

.manual-nft-input input:focus {
    outline: none;
    border-color: #90EE90 !important;
    box-shadow: 0 0 10px rgba(144, 238, 144, 0.5);
}

.manual-nft-input input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    font-weight: normal;
}

.manual-nft-input .btn {
    min-width: 120px;
    white-space: nowrap;
}

/* Mobile Responsive for Manual NFT Section */
@media (max-width: 767px) {
    .manual-nft-input {
        flex-direction: column;
        gap: 12px;
    }
    
    .manual-nft-input input {
        width: 100%;
        max-width: none;
        min-width: 0;
    }
    
    .manual-nft-input .btn {
        width: 100%;
        min-width: 0;
    }
    
    .status-badge {
        display: block;
        margin: 5px 0 0 0;
        text-align: center;
    }
}
