/* Pokémon Card Scanner — Stylesheet */

.pcs-scanner {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 680px;
    margin: 0 auto;
    padding: 1.5rem 0;
    color: #1a1a1a;
}

/* Upload zone */
.pcs-upload-zone {
    border: 2px dashed #c8c8c8;
    border-radius: 12px;
    padding: 3rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    background: #fafafa;
}
.pcs-upload-zone:hover,
.pcs-upload-zone.pcs-drag {
    border-color: #555;
    background: #fff;
}
.pcs-upload-icon {
    font-size: 36px;
    margin-bottom: 0.75rem;
}
.pcs-upload-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1a1a1a;
}
.pcs-upload-sub {
    font-size: 13px;
    color: #666;
}

/* Preview */
.pcs-preview {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-top: 1rem;
    flex-wrap: wrap;
}
.pcs-preview-img {
    width: 120px;
    height: 168px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: #f5f5f5;
    flex-shrink: 0;
}
.pcs-preview-info {
    flex: 1;
    min-width: 200px;
}
.pcs-preview-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1a1a1a;
}
.pcs-preview-sub {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

/* Buttons */
.pcs-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background 0.15s, transform 0.1s;
    text-decoration: none;
}
.pcs-btn:active { transform: scale(0.98); }
.pcs-btn-primary {
    background: #1a1a1a;
    color: #fff;
    width: 100%;
}
.pcs-btn-primary:hover { background: #333; }
.pcs-btn-secondary {
    background: transparent;
    color: #555;
    border: 1px solid #ddd;
    margin-top: 1rem;
}
.pcs-btn-secondary:hover { background: #f5f5f5; }

/* Steps */
.pcs-step {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
}
.pcs-step-label {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}
.pcs-step-body {
    font-size: 14px;
    color: #1a1a1a;
}

/* Loading */
.pcs-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}
.pcs-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0F6E56;
    animation: pcs-blink 1s infinite;
}
@keyframes pcs-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}

/* Card result */
.pcs-card-result {}
.pcs-card-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 3px;
    color: #1a1a1a;
}
.pcs-card-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}
.pcs-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}
.pcs-badge {
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 20px;
    font-weight: 500;
}
.pcs-badge-common    { background: #f0f0f0; color: #555; }
.pcs-badge-uncommon  { background: #dbeafe; color: #1e40af; }
.pcs-badge-rare      { background: #fef3c7; color: #92400e; }
.pcs-badge-holo      { background: #ede9fe; color: #5b21b6; }
.pcs-badge-secret    { background: #fee2e2; color: #991b1b; }
.pcs-badge-confidence { background: #dcfce7; color: #166534; }

/* Prices */
.pcs-prices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 12px;
}
.pcs-price-box {
    background: #f7f7f7;
    border-radius: 8px;
    padding: 10px 12px;
}
.pcs-price-label {
    font-size: 11px;
    color: #888;
    margin-bottom: 2px;
}
.pcs-price-value {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}
.pcs-price-value.pcs-main {
    font-size: 22px;
    color: #0F6E56;
}
.pcs-price-value.pcs-na {
    color: #aaa;
    font-weight: 400;
    font-size: 14px;
}
.pcs-price-wide {
    grid-column: 1 / -1;
}
.pcs-match-info {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
    line-height: 1.5;
}
.pcs-cm-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    color: #1e40af;
    text-decoration: none;
}
.pcs-cm-link:hover { text-decoration: underline; }

/* Error */
.pcs-error {
    color: #991b1b;
    font-size: 14px;
    padding: 8px 0;
}

/* Login prompt */
.pcs-login-required {
    background: #fff8e1;
    border: 1px solid #f0cc6a;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}
.pcs-login-required p {
    margin-bottom: 1rem;
    color: #555;
    font-size: 15px;
}
.pcs-login-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #1a1a1a;
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.pcs-login-btn:hover { background: #333; }

/* Notice */
.pcs-notice {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 480px) {
    .pcs-prices { grid-template-columns: 1fr; }
    .pcs-preview { flex-direction: column; }
    .pcs-preview-img { width: 100px; height: 140px; }
}
