/* public/css/payment-methods.css - Payment methods page styles */

/* Main Layout */
.payment-methods-main {
    padding-top: 100px;
}

/* Header Section */
.payment-header {
    padding: 60px 0;
    background: radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    background-color: var(--bg-primary);
    color: white;
    text-align: center;
}

.header-content {
    max-width: 600px;
    margin: 0 auto;
}

.page-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.page-title i {
    color: var(--primary-light);
}

.page-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Payment Grid Section */
.payment-grid-section {
    padding: 80px 0;
}

.payment-category {
    margin-bottom: 80px;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 40px;
    text-align: center;
    justify-content: center;
}

.category-title i {
    color: var(--primary-color);
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Payment Card */
.payment-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.payment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

/* Bank Header */
.bank-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-primary);
}

.bank-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.bank-logo.vcb {
    background: linear-gradient(135deg, #007c3f, #00a651);
}

.bank-logo.tcb {
    background: linear-gradient(135deg, #ff6b00, #ff8533);
}

.bank-logo.mb {
    background: linear-gradient(135deg, #1f4e79, #2e68a3);
}

.bank-logo.momo {
    background: linear-gradient(135deg, #e91d9b, #ff69b4);
}

.bank-logo.zalopay {
    background: linear-gradient(135deg, #0068ff, #3399ff);
}

.bank-logo.viettelpay {
    background: linear-gradient(135deg, #ff6300, #ff8533);
}

.bank-logo.usdt {
    background: linear-gradient(135deg, #26a69a, #4db6ac);
}

.bank-logo.btc {
    background: linear-gradient(135deg, #f79300, #ffab40);
}

.bank-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.bank-info p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

/* QR Container */
.qr-container {
    position: relative;
    background: #f8fafc;
    border: 2px dashed var(--border-primary);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.qr-container:hover {
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.05);
}

.qr-container img {
    width: 300px;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qr-overlay {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qr-container:hover .qr-overlay {
    opacity: 1;
}

/* Payment Details */
.payment-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: rgba(var(--primary-rgb), 0.1);
}

.detail-item.amount {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--primary-rgb), 0.05));
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.detail-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 14px;
}

.detail-value {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 14px;
}

.detail-item.amount .detail-value {
    color: var(--primary-color);
    font-size: 16px;
}

.crypto-address {
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px !important;
}

/* Payment Notes */
.payment-notes {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.notes-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.notes-content h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 40px;
}

.notes-content h3 i {
    color: #f59e0b;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.note-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-primary);
    text-align: left;
    transition: all 0.3s ease;
}

.note-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.note-item i {
    color: var(--primary-color);
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.note-item p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 14px;
}

.note-item strong {
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 8px;
    }

    .category-title {
        font-size: 1.75rem;
        flex-direction: column;
        gap: 8px;
    }

    .payment-grid {
        grid-template-columns: 1fr;
    }

    .bank-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .bank-logo {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .qr-container img {
        width: 150px;
        height: 150px;
    }

    .detail-item {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    .notes-grid {
        grid-template-columns: 1fr;
    }

    .note-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.75rem;
    }

    .category-title {
        font-size: 1.5rem;
    }

    .payment-card {
        padding: 20px;
    }

    .bank-header {
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .qr-container {
        padding: 16px;
    }

    .qr-container img {
        width: 120px;
        height: 120px;
    }

    .detail-item {
        padding: 10px 12px;
    }

    .detail-label,
    .detail-value {
        font-size: 13px;
    }

    .crypto-address {
        font-size: 11px !important;
    }
}

/* Print Styles */
@media print {
    .payment-methods-main {
        padding-top: 0;
    }

    .payment-header {
        background: none;
        color: #000;
        padding: 20px 0;
    }

    .payment-card {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none;
        border: 2px solid #000;
    }

    .qr-container {
        border: 2px solid #000;
        background: #fff;
    }

    .qr-overlay {
        display: none;
    }

    .payment-notes {
        background: none;
    }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .qr-container {
        background: rgba(255, 255, 255, 0.05);
    }

    .crypto-address {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Accessibility */
.payment-card:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.qr-container:focus-within {
    border-color: var(--primary-color);
}

/* Animation for cards */
@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payment-card {
    animation: cardSlideIn 0.6s ease-out;
}

.payment-card:nth-child(1) {
    animation-delay: 0.1s;
}

.payment-card:nth-child(2) {
    animation-delay: 0.2s;
}

.payment-card:nth-child(3) {
    animation-delay: 0.3s;
}

.payment-card:nth-child(4) {
    animation-delay: 0.4s;
}

.payment-card:nth-child(5) {
    animation-delay: 0.5s;
}

.payment-card:nth-child(6) {
    animation-delay: 0.6s;
}