/**
 * Solana NFT Purchase - Styles
 */

:root {
    --solana-purple: #9945FF;
    --solana-green: #14F195;
    --text-dark: #000000;
    --text-light: #ffffff;
    --border-radius: 12px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Purchase Container */
.solana-nft-purchase-container {
    max-width: 500px;
    margin: 30px auto;
    text-align: center;
}

/* Purchase Button */
.solana-nft-button {
    background: linear-gradient(135deg, var(--solana-purple) 0%, var(--solana-green) 100%);
    color: var(--text-light);
    border: none;
    border-radius: var(--border-radius);
    padding: 16px 32px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.solana-nft-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(153, 69, 255, 0.4);
}

.solana-nft-button:active {
    transform: translateY(0);
}

.solana-nft-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.solana-nft-button:hover::before {
    left: 100%;
}

.solana-nft-button .price-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 16px;
}

/* Wallet Connect Button */
.solana-wallet-connect-btn {
    background: #ffffff;
    color: var(--solana-purple);
    border: 2px solid var(--solana-purple);
    border-radius: var(--border-radius);
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.solana-wallet-connect-btn:hover {
    background: var(--solana-purple);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* Wallet Info */
.solana-wallet-info {
    margin-top: 16px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: var(--border-radius);
}

.wallet-connected {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #00c853;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00c853;
    animation: pulse 2s infinite;
}

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

/* Status Messages */
.solana-nft-status {
    margin-top: 20px;
}

.status-message {
    padding: 16px;
    border-radius: var(--border-radius);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-info {
    background: #e3f2fd;
    color: #1976d2;
    border-left: 4px solid #1976d2;
}

.status-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.status-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--solana-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* View NFT Button */
.view-nft-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 20px;
    background: var(--solana-purple);
    color: var(--text-light);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-nft-btn:hover {
    background: #7d3ad1;
    transform: translateY(-2px);
    color: var(--text-light);
}

/* NFT Gallery */
.solana-nft-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

.nft-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

.nft-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.nft-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--solana-purple) 0%, var(--solana-green) 100%);
    position: relative;
}

.nft-card h3 {
    padding: 16px;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.nft-card .nft-mint {
    padding: 0 16px;
    color: #666;
    font-family: monospace;
    font-size: 12px;
    margin: 0;
}

.nft-card .nft-price {
    padding: 0 16px 16px;
    font-size: 20px;
    font-weight: bold;
    color: var(--solana-purple);
    margin: 8px 0 0 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .solana-nft-button {
        width: 100%;
        font-size: 16px;
        padding: 14px 24px;
    }
    
    .solana-nft-gallery {
        grid-template-columns: 1fr;
    }
    
    .nft-card .nft-image {
        height: 200px;
    }
}

/* Loading State */
.solana-nft-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #666;
}

.solana-nft-loading::before {
    content: '';
    width: 24px;
    height: 24px;
    border: 3px solid rgba(153, 69, 255, 0.2);
    border-top: 3px solid var(--solana-purple);
    border-radius: 50%;
    margin-right: 12px;
    animation: spin 1s linear infinite;
}

/* Admin Styles */
.solana-stats-cards {
    margin: 20px 0;
}

.status-completed {
    background: #4caf50;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background: #ff9800;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-failed {
    background: #f44336;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
