/**
 * WooCommerce Kripto Para Ödeme Yöntemi - Frontend Stilleri
 * @package WooCommerce-Bank-Transfer
 * @version 1.0.0
 */

/* =======================
   Kripto Ödeme Talimatları
   ======================= */

/* CSS Reset ve Specificity Güçlendirme */
.woo-crypto-instructions,
.woo-crypto-instructions *,
.woo-crypto-instructions *::before,
.woo-crypto-instructions *::after {
    box-sizing: border-box !important;
}

.woo-crypto-instructions {
    max-width: 800px !important;
    margin: 30px auto !important;
    padding: 0 !important;
}

/* Header Bölümü */
.woo-crypto-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    padding: 30px !important;
    border-radius: 12px 12px 0 0 !important;
    text-align: center !important;
}

.woo-crypto-header h2 {
    margin: 0 0 10px 0 !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.3 !important;
}

.woo-crypto-header .woo-intro-text {
    margin: 0 !important;
    font-size: 15px !important;
    opacity: 0.95 !important;
    line-height: 1.6 !important;
    color: #ffffff !important;
}

/* Kripto Seçim Bölümü */
.woo-crypto-selector {
    background: #ffffff !important;
    padding: 30px !important;
    border: 1px solid #e0e0e0 !important;
    border-top: none !important;
}

.woo-crypto-selector h3 {
    margin: 0 0 20px 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #333 !important;
    line-height: 1.3 !important;
}

.crypto-options {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 20px !important;
}

/* Kripto Opsiyon Kartları */
.crypto-option {
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px !important;
    padding: 20px !important;
    background: #fafafa !important;
    transition: all 0.3s ease !important;
}

.crypto-option:hover {
    border-color: #667eea !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15) !important;
    transform: translateY(-2px) !important;
}

.crypto-option-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
    padding-bottom: 15px !important;
    border-bottom: 2px solid #e0e0e0 !important;
}

.crypto-icon {
    font-size: 32px !important;
    line-height: 1 !important;
    font-weight: bold !important;
    color: #667eea !important;
}

.crypto-name {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #333 !important;
}

/* Kripto Detayları */
.crypto-details {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}

/* Wallet Adresi Bölümü */
.wallet-section label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #666 !important;
    margin-bottom: 8px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.wallet-address-box {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: #ffffff !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    padding: 12px !important;
}

.wallet-address {
    flex: 1 !important;
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 13px !important;
    color: #333 !important;
    word-break: break-all !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
}

.copy-wallet-btn,
button.copy-wallet-btn,
.crypto-details .copy-wallet-btn,
body .copy-wallet-btn {
    background: #667eea !important;
    background-color: #667eea !important;
    color: #ffffff !important;
    border: none !important;
    border-width: 0 !important;
    padding: 10px 20px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    border-radius: 6px !important;
    -webkit-border-radius: 6px !important;
    -moz-border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    min-height: 40px !important;
    height: 40px !important;
    max-height: 40px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    text-align: center !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
    text-shadow: none !important;
    margin: 0 !important;
}

.copy-wallet-btn:hover,
.copy-wallet-btn:focus,
.copy-wallet-btn:active,
body .copy-wallet-btn:hover {
    background: #5568d3 !important;
    background-color: #5568d3 !important;
    transform: scale(1.05) !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    -webkit-border-radius: 6px !important;
    -moz-border-radius: 6px !important;
}

/* Ödeme Tutarı Bölümü */
.payment-amount-section {
    background: #f0f4ff !important;
    padding: 15px !important;
    border-radius: 8px !important;
    border-left: 4px solid #667eea !important;
}

.amount-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 8px !important;
}

.amount-label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #555 !important;
}

.amount-value {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #667eea !important;
}

/* Kripto Tutar Satırı */
.crypto-amount-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin: 12px 0 !important;
    padding: 12px !important;
    background: #ffffff !important;
    border: 2px dashed #667eea !important;
    border-radius: 8px !important;
}

.crypto-amount-label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #667eea !important;
}

.crypto-amount-value {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #667eea !important;
    font-family: 'Courier New', Courier, monospace !important;
}

/* Kur Bilgisi */
.exchange-rate-info {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 12px !important;
    background: #fff !important;
    border-radius: 6px !important;
    margin-top: 8px !important;
}

.exchange-rate-info .dashicons {
    color: #10b981 !important;
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    animation: pulse 2s ease-in-out infinite !important;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.exchange-rate-info small {
    font-size: 12px !important;
    color: #10b981 !important;
    font-weight: 600 !important;
}

/* Kripto Tutar Kopyala Butonu */
.copy-amount-btn,
button.copy-amount-btn,
.crypto-amount-display .copy-amount-btn,
body .copy-amount-btn {
    background: #10b981 !important;
    background-color: #10b981 !important;
    color: #ffffff !important;
    border: none !important;
    border-width: 0 !important;
    padding: 12px 24px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    border-radius: 6px !important;
    -webkit-border-radius: 6px !important;
    -moz-border-radius: 6px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    width: 100% !important;
    margin-top: 10px !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    min-height: 44px !important;
    height: 44px !important;
    max-height: 44px !important;
    display: block !important;
    box-sizing: border-box !important;
    text-align: center !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    white-space: nowrap !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
    text-shadow: none !important;
    vertical-align: middle !important;
}

.copy-amount-btn:hover,
.copy-amount-btn:focus,
.copy-amount-btn:active,
body .copy-amount-btn:hover {
    background: #059669 !important;
    background-color: #059669 !important;
    transform: scale(1.02) !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    -webkit-border-radius: 6px !important;
    -moz-border-radius: 6px !important;
}

/* Kripto Dönüşüm Bildirimi */
.crypto-conversion-notice {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px !important;
    background: #fff3cd !important;
    border: 1px solid #ffc107 !important;
    border-radius: 6px !important;
    margin-top: 10px !important;
}

.crypto-conversion-notice .dashicons {
    color: #f59e0b !important;
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
}

.crypto-conversion-notice p {
    margin: 0 !important;
    font-size: 12px !important;
    color: #856404 !important;
    line-height: 1.4 !important;
}

.crypto-note {
    margin: 0 !important;
    font-size: 12px !important;
    color: #666 !important;
    font-style: italic !important;
}

/* Network Bilgisi */
.network-info {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px !important;
    background: #fff9e6 !important;
    border: 1px solid #ffe066 !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    color: #666 !important;
}

.network-info .dashicons {
    color: #f59e0b !important;
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
}

.network-info strong {
    color: #333 !important;
}

/* Önemli Uyarılar Bölümü */
.woo-crypto-important {
    background: #fff3cd !important;
    border: 2px solid #ffc107 !important;
    border-radius: 10px !important;
    padding: 20px !important;
    margin-top: 20px !important;
}

.important-header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 15px !important;
    font-size: 16px !important;
    color: #856404 !important;
}

.important-header .dashicons {
    color: #ffc107 !important;
    font-size: 24px !important;
    width: 24px !important;
    height: 24px !important;
}

.woo-crypto-important ul {
    margin: 0 !important;
    padding-left: 0 !important;
    list-style: none !important;
}

.woo-crypto-important li {
    margin-bottom: 10px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #856404 !important;
}

.woo-crypto-important li:last-child {
    margin-bottom: 0 !important;
}

/* Not Kutusu */
.woo-crypto-note-box {
    background: #e8f4fd !important;
    border: 1px solid #90caf9 !important;
    border-radius: 10px !important;
    padding: 20px !important;
    margin-top: 20px !important;
    display: flex !important;
    gap: 15px !important;
}

.woo-crypto-note-box .dashicons {
    color: #2196f3 !important;
    font-size: 24px !important;
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0 !important;
}

.note-content {
    flex: 1 !important;
}

.note-content p {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #1565c0 !important;
}

/* Rastgele Cüzdan Adresi Notu */
.random-wallet-notice {
    background: #e8f5e9 !important;
    border: 2px solid #66bb6a !important;
    border-radius: 10px !important;
    padding: 15px 20px !important;
    margin: 20px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.random-wallet-notice .dashicons {
    color: #2e7d32 !important;
    font-size: 24px !important;
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0 !important;
}

.random-wallet-notice p {
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #1b5e20 !important;
    line-height: 1.5 !important;
}

/* =======================
   Responsive Tasarım
   ======================= */

@media (max-width: 768px) {
    .woo-crypto-instructions {
        margin: 20px 10px !important;
    }

    .woo-crypto-header {
        padding: 20px !important;
    }

    .woo-crypto-header h2 {
        font-size: 22px !important;
    }

    .woo-crypto-selector {
        padding: 20px 15px !important;
    }

    .crypto-options {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .crypto-option {
        padding: 15px !important;
    }

    .wallet-address-box {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .copy-wallet-btn {
        width: 100% !important;
        min-height: 44px !important;
        height: 44px !important;
        max-height: 44px !important;
        padding: 12px 20px !important;
    }

    .amount-row,
    .crypto-amount-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    
    .crypto-amount-value {
        font-size: 18px !important;
    }
}

@media (max-width: 480px) {
    .woo-crypto-header h2 {
        font-size: 20px !important;
    }

    .crypto-icon {
        font-size: 28px !important;
    }

    .crypto-name {
        font-size: 16px !important;
    }

    .wallet-address {
        font-size: 11px !important;
    }

    .woo-crypto-important,
    .woo-crypto-note-box {
        padding: 15px !important;
    }
}

/* =======================
   Email Stilleri
   ======================= */

.woo-crypto-email-instructions {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    max-width: 600px !important;
    margin: 0 auto !important;
}

.woo-crypto-email-instructions h2 {
    color: #667eea !important;
    font-size: 24px !important;
    margin-bottom: 15px !important;
}

.woo-crypto-email-instructions .crypto-option {
    margin-bottom: 20px !important;
    border: 2px solid #e0e0e0 !important;
    padding: 15px !important;
    border-radius: 8px !important;
}

.woo-crypto-email-instructions .wallet-address {
    background: #f5f5f5 !important;
    padding: 10px !important;
    border-radius: 4px !important;
    font-family: 'Courier New', monospace !important;
    font-size: 12px !important;
    word-break: break-all !important;
}

/* =======================
   Print Stilleri
   ======================= */

@media print {
    .woo-crypto-instructions {
        max-width: 100% !important;
        margin: 0 !important;
    }

    .copy-wallet-btn {
        display: none !important;
    }

    .crypto-option {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    .woo-crypto-header {
        background: #667eea !important;
        color: #000000 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}
