/**
 * Modeo Account - Payment Methods
 * 
 * Credit card styled payment method cards
 */

/* ========================================
   PAYMENT METHODS CONTAINER
   ======================================== */

.modeo-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.modeo-payment-methods .section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.modeo-payment-methods .section-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modeo-payment-methods .section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modeo-payment-methods .section-heading .material-icons {
    color: #cc1616;
    font-size: 28px;
}

.modeo-payment-methods .section-description {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
}

/* ========================================
   ADD PAYMENT BUTTON
   ======================================== */

.add-payment-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #cc1616 0%, #b31313 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(204, 22, 22, 0.25);
}

.add-payment-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(204, 22, 22, 0.35);
    color: #ffffff;
}

.add-payment-button .material-icons {
    font-size: 20px;
}

/* ========================================
   PAYMENT METHODS GRID
   ======================================== */

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

@media (max-width: 767px) {
    .payment-methods-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   PAYMENT CARD - CREDIT CARD STYLE
   ======================================== */

/* Card Background - Unified Premium Style */
.payment-card {
    position: relative;
    aspect-ratio: 1.586 / 1;
    /* Standard credit card ratio */
    max-width: 380px;
    border-radius: 16px;
    overflow: hidden;
    /* Use a neutral dark premium background for all cards */
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.payment-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(204, 22, 22, 0.3);
}

/* Card Brand Variations - Removed specific colors to keep unified brand look */
/* Only keeping subtle differences or unified look as per user request */
.payment-card.brand-visa,
.payment-card.brand-mastercard,
.payment-card.brand-amex {
    /* Uniform background for all brands */
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}

/* Add a red accent line at the top for branding */
.payment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #cc1616;
    z-index: 2;
}

/* Default Card Highlight */
.payment-card.is-default {
    border: 3px solid #cc1616;
}

/* Pattern Overlay */
.payment-card-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

/* ========================================
   CARD CONTENT
   ======================================== */

.payment-card-content {
    position: relative;
    height: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1;
}

/* Header */
.payment-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.payment-card-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.payment-default-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.9);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
}

.payment-default-badge .material-icons {
    font-size: 14px;
}

/* Card Number */
.payment-card-number {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
}

.payment-card-number span {
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.15em;
    font-family: 'Courier New', monospace;
}

.payment-card-number .dots {
    opacity: 0.6;
}

.payment-card-number .last4 {
    font-weight: 700;
}

/* Footer */
.payment-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.payment-card-expiry {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.expiry-label {
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.expiry-date {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.1em;
}

/* Actions */
.payment-card-actions {
    display: flex;
    gap: 8px;
}

.payment-action-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
}

.payment-action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.payment-action-btn.delete:hover {
    background: rgba(220, 38, 38, 0.8);
}

.payment-action-btn .material-icons {
    font-size: 18px;
}

/* ========================================
   EMPTY STATE
   ======================================== */

.payment-methods-empty {
    text-align: center;
    padding: 60px 24px;
    background: linear-gradient(135deg, rgba(204, 22, 22, 0.03) 0%, rgba(248, 113, 113, 0.02) 100%);
    border-radius: 20px;
    border: 2px dashed rgba(204, 22, 22, 0.15);
}

.payment-methods-empty .empty-state-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(204, 22, 22, 0.1) 0%, rgba(248, 113, 113, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.payment-methods-empty .empty-state-icon .material-icons {
    font-size: 40px;
    color: #cc1616;
}

.payment-methods-empty h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px 0;
}

.payment-methods-empty p {
    font-size: 1rem;
    color: #6b7280;
    max-width: 400px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.payment-methods-empty .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 767px) {
    .payment-card {
        max-width: 100%;
    }

    .payment-card-content {
        padding: 20px;
    }

    .payment-card-number span {
        font-size: 1.25rem;
    }

    .payment-methods-empty {
        padding: 40px 20px;
    }

    .payment-methods-empty .empty-state-icon {
        width: 64px;
        height: 64px;
    }

    .payment-methods-empty .empty-state-icon .material-icons {
        font-size: 32px;
    }
}