/* CryptoWall Public Styles */

.cryptowall-preview {
    position: relative;
    margin: 20px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2px;
}

.cryptowall-preview::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #667eea);
    border-radius: 18px;
    z-index: -1;
    animation: gradient-border 3s ease-in-out infinite;
}

@keyframes gradient-border {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.cryptowall-blurred-content {
    filter: blur(4px) brightness(0.7);
    pointer-events: none;
    position: relative;
    transition: all 0.3s ease;
    transform: scale(1.02);
    border-radius: 14px;
    background: white;
}

.cryptowall-preview:hover .cryptowall-blurred-content {
    filter: blur(2px) brightness(0.8);
    transform: scale(1.01);
}

.cryptowall-preview:hover .cryptowall-overlay {
    backdrop-filter: blur(8px) saturate(180%);
}

.cryptowall-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(240, 147, 251, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(118, 75, 162, 0.05) 0%, transparent 50%),
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.92) 0%,
            rgba(248, 250, 252, 0.95) 25%,
            rgba(241, 245, 249, 0.93) 50%,
            rgba(248, 250, 252, 0.95) 75%,
            rgba(255, 255, 255, 0.92) 100%
        );
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cryptowall-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.15) 1px, transparent 0);
    background-size: 20px 20px;
    opacity: 0.5;
    z-index: -1;
}

.cryptowall-paywall {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    padding: 32px;
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    text-align: center;
    max-width: 420px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.cryptowall-paywall::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        transparent 100%
    );
}

.cryptowall-paywall h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.cryptowall-paywall p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.cryptowall-payment-options {
    margin-bottom: 20px;
}

.cryptowall-btn {
    display: block;
    width: 100%;
    padding: 15px 20px;
    margin: 10px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.cryptowall-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.cryptowall-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

.cryptowall-btn.disabled,
.cryptowall-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.cryptowall-btn.disabled:hover,
.cryptowall-btn:disabled:hover {
    background: #6c757d;
    transform: none;
    box-shadow: none;
}

.cryptowall-global-access {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

.cryptowall-global-access:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.6);
}

/* Payment Modal */
.cryptowall-payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.cryptowall-modal-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.cryptowall-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cryptowall-close:hover {
    color: #333;
}

.cryptowall-payment-form h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 22px;
    text-align: center;
}

/* Crypto Options */
.cryptowall-crypto-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
}

.cryptowall-crypto-option {
    display: inline-flex;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    font-weight: 500;
    min-width: 140px;
    justify-content: flex-start;
    gap: 12px;
}

.crypto-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.crypto-icon-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.cryptowall-crypto-option:hover .crypto-icon-img {
    transform: scale(1.1);
}

.cryptowall-crypto-option.selected .crypto-icon-img {
    transform: scale(1.15);
    filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.4));
}

.crypto-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.crypto-symbol {
    font-weight: 700;
    font-size: 14px;
    color: #333;
}

.crypto-name {
    font-size: 11px;
    color: #666;
    font-weight: 400;
}

.cryptowall-crypto-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-1px);
}

.cryptowall-crypto-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.cryptowall-crypto-option.selected .crypto-symbol {
    color: #667eea;
    font-weight: 800;
}

.cryptowall-crypto-option.selected .crypto-name {
    color: #555;
}

.cryptowall-crypto-options.highlight {
    animation: pulse-highlight 1s ease-in-out 3;
}

@keyframes pulse-highlight {
    0% {
        background: transparent;
        box-shadow: none;
    }
    50% {
        background: rgba(255, 193, 7, 0.1);
        box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.3);
        border-radius: 8px;
    }
    100% {
        background: transparent;
        box-shadow: none;
    }
}

/* PIN Section */
.cryptowall-pin-section {
    margin: 25px 0;
    text-align: left;
}

.cryptowall-pin-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.cryptowall-pin-section input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.cryptowall-pin-section input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.cryptowall-pin-section input.valid {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.cryptowall-pin-section input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.cryptowall-pin-message {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.cryptowall-pin-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cryptowall-pin-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.cryptowall-pin-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.cryptowall-pin-section small {
    display: block;
    margin-top: 8px;
    color: #666;
    font-size: 14px;
}

/* Payment Details */
.cryptowall-payment-details {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.cryptowall-wallet-info p {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
}

.cryptowall-wallet-address {
    word-break: break-all;
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    font-family: 'Courier New', Monaco, monospace;
    font-size: 14px;
    border: 1px solid #dee2e6;
    position: relative;
}

.cryptowall-wallet-address::after {
    content: 'Click to copy';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cryptowall-wallet-address:hover::after {
    opacity: 1;
}

.cryptowall-amount {
    background: #e8f4ff;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #0066cc;
    text-align: center;
}

.cryptowall-qr-code {
    text-align: center;
    margin: 20px 0;
}

.cryptowall-qr-code img {
    max-width: 200px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    padding: 10px;
}

/* Payment Status */
.cryptowall-payment-status {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 20px 0;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.cryptowall-status-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e9ecef;
    font-size: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.cryptowall-status-icon.waiting {
    background: #d1ecf1;
    color: #0c5460;
}

.cryptowall-status-icon.detected {
    background: #fff3cd;
    color: #856404;
}

.cryptowall-status-icon.confirmed {
    background: #d4edda;
    color: #155724;
}

.cryptowall-status-icon.timeout {
    background: #f8d7da;
    color: #721c24;
}

.cryptowall-status-text {
    flex: 1;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

.cryptowall-payment-status.detected {
    border-color: #ffc107;
    background: #fff3cd;
}

.cryptowall-payment-status.confirmed {
    border-color: #28a745;
    background: #d4edda;
}

.cryptowall-payment-status.timeout {
    border-color: #dc3545;
    background: #f8d7da;
}

.cryptowall-verify-payment {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    margin-top: 20px;
}

.cryptowall-verify-payment:hover {
    background: linear-gradient(135deg, #45a049 0%, #4CAF50 100%);
}

/* Status Messages */
.cryptowall-status-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.cryptowall-status-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cryptowall-status-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.cryptowall-status-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Loading Spinner */
.cryptowall-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

/* Shortcode Styles */
.cryptowall-shortcode-paywall {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cryptowall-shortcode-paywall h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.cryptowall-video-preview {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cryptowall-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cryptowall-play-overlay:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button {
    color: white;
    font-size: 28px;
    margin-left: 6px;
}

.cryptowall-gallery-paywall .gallery img {
    filter: blur(3px);
    opacity: 0.6;
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cryptowall-paywall {
        padding: 20px;
        max-width: 95%;
    }
    
    .cryptowall-modal-content {
        padding: 20px;
        margin: 10px;
    }
    
    .cryptowall-crypto-options {
        flex-direction: column;
        gap: 8px;
    }
    
    .cryptowall-crypto-option {
        min-width: auto;
        width: 100%;
        padding: 16px;
        gap: 16px;
    }
    
    .crypto-icon,
    .crypto-icon-img {
        width: 40px;
        height: 40px;
    }
    
    .crypto-symbol {
        font-size: 16px;
    }
    
    .crypto-name {
        font-size: 12px;
    }
    
    .cryptowall-btn {
        padding: 12px 16px;
        font-size: 15px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility */
.cryptowall-btn:focus,
.cryptowall-crypto-option:focus,
.cryptowall-pin-section input:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .cryptowall-paywall {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .cryptowall-paywall h3 {
        color: #e2e8f0;
    }
    
    .cryptowall-modal-content {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .cryptowall-wallet-address {
        background: #4a5568;
        color: #e2e8f0;
        border-color: #718096;
    }
    
    .cryptowall-payment-details {
        background: #4a5568;
        border-color: #718096;
    }
}