/* KnexPay Components - Blueprint Inspired */

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid;
    min-height: 48px;
}

.btn .icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.btn-primary {
    background: rgba(255, 140, 0, 0.1);
    color: var(--neon);
    border-color: var(--neon);
}

.btn-primary:hover {
    background: var(--neon);
    color: var(--bg);
    box-shadow: var(--glow-neon);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: rgba(255, 215, 0, 0.1);
    color: var(--cyan);
    border-color: rgba(255, 215, 0, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: var(--cyan);
    box-shadow: var(--glow-cyan);
}

.btn-accent {
    background: rgba(255, 51, 51, 0.1);
    color: var(--red);
    border-color: var(--red);
}

.btn-accent:hover {
    background: var(--red);
    color: white;
    box-shadow: var(--knex-glow);
}

.btn-danger {
    background: rgba(255, 51, 51, 0.1);
    color: var(--red);
    border-color: rgba(255, 51, 51, 0.3);
}

.btn-danger:hover {
    background: rgba(255, 51, 51, 0.2);
    border-color: var(--red);
    box-shadow: var(--glow-red);
}

.btn-full {
    width: 100%;
    margin-bottom: var(--spacing-md);
}

/* ========================================
   CARDS
   ======================================== */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.card h3 {
    color: var(--neon);
    font-size: 14px;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.card h3::before {
    content: '//';
    color: var(--magenta);
}

/* Balance Card */
.balance-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    position: relative;
    margin-bottom: var(--spacing-md);
}

.balance-logo {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--spacing-sm);
    filter: drop-shadow(0 0 10px rgba(255, 140, 0, 0.6));
}

.balance-logo svg {
    width: 100%;
    height: 100%;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neon);
    text-shadow: var(--glow-neon);
    margin-bottom: var(--spacing-xs);
    font-variant-numeric: tabular-nums;
}

.balance-label {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* About Card */
.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    text-align: center;
    margin-top: var(--spacing-lg);
}

.about-card h4 {
    color: var(--cyan);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.about-card p {
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.8;
}

.about-card strong {
    color: var(--neon);
}

/* ========================================
   FORMS
   ======================================== */

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    color: var(--cyan);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--neon);
    font-family: var(--font);
    font-size: 14px;
    transition: all var(--transition-fast);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    border-color: var(--neon);
    box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.1);
}

.input-with-action {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-action .form-input {
    padding-right: 50px;
}

.input-action-btn {
    position: absolute;
    right: 8px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--neon);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.input-action-btn:hover {
    background: rgba(255, 140, 0, 0.1);
    border-color: var(--neon);
}

.input-action-btn .icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ========================================
   ADDRESS DISPLAY
   ======================================== */

.address-display {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.address-text {
    flex: 1;
    font-size: 11px;
    color: var(--text-dim);
    word-break: break-all;
    line-height: 1.4;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 8px 12px;
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid var(--neon);
    border-radius: var(--radius-sm);
    color: var(--neon);
    font-family: var(--font);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.copy-btn:hover {
    background: var(--neon);
    color: var(--bg);
}

.copy-btn.copied {
    background: var(--neon);
    color: var(--bg);
}

.copy-btn .icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* ========================================
   ALERTS
   ======================================== */

.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: var(--spacing-md);
}

.alert strong {
    display: block;
    margin-bottom: var(--spacing-xs);
}

.alert-info {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1), rgba(255, 215, 0, 0.05));
    border-left: 3px solid var(--neon);
    color: var(--text-dim);
}

.alert-info strong {
    color: var(--neon);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 255, 0, 0.1), rgba(255, 136, 0, 0.05));
    border-left: 3px solid var(--yellow);
    color: var(--text-dim);
}

.alert-warning strong {
    color: var(--yellow);
}

.alert-error {
    background: linear-gradient(135deg, rgba(255, 51, 51, 0.1), rgba(255, 0, 170, 0.05));
    border-left: 3px solid var(--red);
    color: var(--text-dim);
}

.alert-error strong {
    color: var(--red);
}

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

.empty-state {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
}

.empty-state-icon {
    margin-bottom: var(--spacing-md);
}

.empty-state-icon .icon-large,
.icon-large {
    width: 48px;
    height: 48px;
    fill: var(--text-dim);
}

.empty-state-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.empty-state-subtext {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: var(--spacing-lg);
}

/* ========================================
   QR CODE
   ======================================== */

.qr-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.qr-code-box {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background: white;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
}

.qr-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-size: 12px;
}

/* ========================================
   TRANSACTION ITEMS
   ======================================== */

.tx-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tx-item:hover {
    border-color: var(--neon);
    box-shadow: 0 0 0 1px rgba(255, 140, 0, 0.1);
}

.tx-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.tx-type {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tx-type.sent { color: var(--red); }
.tx-type.received { color: var(--neon); }

.tx-type .icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.tx-amount {
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.tx-amount.sent { color: var(--red); }
.tx-amount.received { color: var(--neon); }

.tx-details {
    font-size: 11px;
    color: var(--text-dim);
}

.tx-details .address {
    color: var(--text-muted);
}

.tx-details .time {
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
}

/* ========================================
   ACTION BUTTONS ROW
   ======================================== */

.action-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.action-buttons .btn {
    flex: 1;
}

/* ========================================
   ICONS
   ======================================== */

.icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-lg {
    width: 24px;
    height: 24px;
}

/* ========================================
   PROMO CARD
   ======================================== */

.promo-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 0, 170, 0.05));
    border: 1px solid var(--cyan);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.promo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 215, 0, 0.1));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.promo-card:hover {
    border-color: var(--magenta);
    box-shadow: 0 0 20px rgba(255, 0, 170, 0.3), 0 0 40px rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

.promo-card:hover::before {
    opacity: 1;
}

.promo-card:active {
    transform: translateY(0);
}

.promo-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, var(--magenta), var(--cyan));
    color: var(--bg);
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.promo-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.promo-icon {
    width: 40px;
    height: 40px;
    color: var(--cyan);
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

.promo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.promo-text strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.promo-text span {
    color: var(--text-dim);
    font-size: 11px;
}

.promo-cta {
    color: var(--magenta) !important;
    font-weight: 600 !important;
    margin-top: 4px;
}
