/* ============================================================================
   credit-card-validator.css - Credit Card Validator + Credit Card Generator
   ============================================================================
   Loaded by:  validation-tools/credit-card-validator.php
               validation-tools/credit-card-generator.php
   Purpose:    Scoped styles for that tool (.ccv-*): the result card, batch
               table, test-card generator, the supported-networks table and
               the network logo images. The input placeholder styling
               (#ccInput::placeholder) also lives here.
               Also includes .ccg-* styles for the generator visual cards.
   Load order: AFTER tool-input.css. Scoped to .ccv-* so the styles never
               leak into other tool pages.
   ============================================================================ */

.ccv-output {
    height: 300px;
    margin: 10px 0;
    overflow: auto;
    font-size: 15px;
    line-height: 1.6;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 12px 14px;
}

/* Result card */
.ccv-result {
    border-radius: 8px;
    padding: 14px;
    border-left: 4px solid #adb5bd;
    background: #fff;
}

.ccv-result.ccv-valid {
    border-left-color: #198754;
    background: #f3faf6;
}

.ccv-result.ccv-invalid {
    border-left-color: #dc3545;
    background: #fdf3f4;
}

.ccv-result.ccv-unrecognized {
    border-left-color: #adb5bd;
    background: #f7f8fa;
}

.ccv-verdict {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 19px;
    font-weight: 700;
    color: #1f2d3d;
    margin-bottom: 4px;
}

.ccv-valid .ccv-verdict i { color: #198754; }
.ccv-invalid .ccv-verdict i { color: #dc3545; }
.ccv-unrecognized .ccv-verdict i { color: #6c757d; }

.ccv-reason {
    font-size: 14.5px;
    color: #495057;
    margin-bottom: 12px;
}

.ccv-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

.ccv-detail-cell {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e9ecf1;
    border-radius: 6px;
    padding: 8px 10px;
    min-width: 0;
}

.ccv-detail-label {
    font-size: 11px;
    color: #667085;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 3px;
}

.ccv-detail-value {
    font-size: 15px;
    color: #1f2d3d;
    font-weight: 600;
    word-break: break-word;
}

.ccv-pass {
    color: #198754;
}

.ccv-fail {
    color: #dc3545;
}

.ccv-others {
    margin-top: 10px;
    font-size: 13.5px;
    color: #667085;
    font-style: italic;
}

/* Batch table */
.ccv-table {
    margin: 0;
    font-size: 14px;
}

.ccv-table thead th {
    background: #eef2f7;
    color: #1f2d3d;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ccv-cell-num {
    white-space: nowrap;
    font-family: Consolas, Menlo, monospace;
    font-size: 13.5px;
}

/* Test card generator */
.ccv-gen-grid {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ccv-gen-card {
    flex: 1 1 30%;
    min-width: 250px;
}

.ccv-gen-grid .ccv-placeholder {
    pointer-events: none;
}

/* Input placeholder reuses the tool's hint typography */
#ccInput::placeholder {
    color: #999;
    font-style: normal;
    font-size: 15px;
    line-height: 1.6;
    opacity: 1;
}

/* Supported networks table (content section, modern style) */
.ccv-net-wrap {
    width: 96%;
    margin: 10px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(71, 85, 105, 0.12);
}

.ccv-networks-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin: 0;
    font-size: 15px;
}

.ccv-networks-table thead th {
    background: #475569;
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 13px 16px;
    border: none;
    border-bottom: 2px solid #334155;
    white-space: nowrap;
}

.ccv-networks-table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    background: #ffffff;
    border-top: 1px solid #eef0f4;
}

.ccv-networks-table tbody tr:nth-child(even) td {
    background: #f8fafc;
}

.ccv-networks-table tbody tr:hover td {
    background: #eef2f7;
}

.ccv-networks-table tbody td:first-child {
    font-weight: 700;
    color: #1f2d3d;
}

.ccv-networks-table tbody td code {
    font-size: 1.2rem;
}

.ccv-network-badge {
    display: inline-block;
    padding: 1px 10px;
    border-radius: 999px;
    background: rgba(71, 85, 105, 0.12);
    color: #475569;
    font-weight: 600;
    font-size: 13px;
}

/* Network logos */
.ccv-logo {
    width: 26px;
    height: auto;
    vertical-align: middle;
    margin-right: 6px;
}

.ccv-logo-sm {
    width: 20px;
    height: auto;
    vertical-align: middle;
    margin-right: 5px;
}

.ccv-gen-card h6 .ccv-logo-sm {
    width: 30px;
    height: auto;
    vertical-align: middle;
    margin-right: 6px;
}

.ccv-networks-table tbody td .ccv-network-logo {
    width: 26px;
    height: auto;
    vertical-align: middle;
    margin-right: 8px;
}

.ccv-verdict .ccv-logo {
    width: 34px;
    height: auto;
    margin-left: 8px;
    margin-right: 0;
}

/* Credit Card Generator visual cards */
.ccg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 20px 0;
}

.ccg-card {
    border-radius: 12px;
    padding: 20px;
    color: #fff;
    position: relative;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    transition: transform 0.15s ease;
}

.ccg-card:hover {
    transform: translateY(-3px);
}

.ccg-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ccg-card-name {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.95;
    text-align: center;
}

.ccg-chip {
    font-size: 28px;
    opacity: 0.9;
    background: rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 6px 8px;
    line-height: 1;
}

.ccg-card-logo {
    width: 50px;
    height: auto;
    opacity: 0.95;
}

.ccg-card-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.ccg-card-number {
    font-family: Consolas, Menlo, monospace;
    font-size: 1.25rem;
    letter-spacing: 0.06em;
    margin: 16px 0 10px;
    word-break: break-all;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.ccg-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.ccg-card-cvv {
    font-family: Consolas, Menlo, monospace;
    font-size: 0.85rem;
}

.ccg-card-expiry {
    text-align: right;
}

.ccg-expiry-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.8;
}

.ccg-expiry-data {
    font-size: 0.95rem;
    font-weight: 600;
    font-family: Consolas, Menlo, monospace;
}

.ccg-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.ccg-card-holder {
    font-size: 1.0rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
}

.ccg-copy-btn {
    font-size: 0.8rem;
    padding: 4px 10px;
}

.ccg-preset-btn {
    font-size: 0.85rem;
    padding: 4px 10px;
    margin-left: 5px;
}

@media (max-width: 992px) {
    .ccg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .ccg-grid {
        grid-template-columns: 1fr;
    }
}
