/* ─────────────────────────────────────────────────────────────────────────────
   Poke Forecast — Collections frontend styles
   Brand tokens (navy #1c2340, gold #d4a820) match the carddb / accounts
   plugins so the collections UI feels native to the rest of the site.
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Card-page Add to Collection CTA ─────────────────────────────────────── */
.pfcol-card-cta {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.pfcol-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .55rem 1rem;
    font-family: 'Oswald', sans-serif;
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    border-radius: 4px;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform .1s, box-shadow .15s, background .15s, border-color .15s;
}
.pfcol-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 5px rgba(0,0,0,.08); }

.pfcol-btn-primary {
    background: #d4a820;
    border-color: #d4a820;
    color: #1c2340;
}
.pfcol-btn-primary:hover { background: #c39717; border-color: #c39717; }

.pfcol-btn-outline {
    background: transparent;
    border-color: #d4a820;
    color: #1c2340;
}
.pfcol-btn-outline:hover { background: #fff8e0; }

.pfcol-btn-upgrade {
    background: #1c2340;
    border-color: #1c2340;
    color: #fff;
}
.pfcol-btn-upgrade:hover { background: #2a3358; border-color: #2a3358; }

.pfcol-owned-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .75rem;
    background: #effaf3;
    border: 1px solid #c8e6c9;
    color: #1b5e20;
    border-radius: 12px;
    font-size: .8rem;
    font-weight: 600;
}

.pfcol-manage-link {
    font-size: .8rem;
    color: #1c2340;
    text-decoration: underline;
    text-decoration-color: #d4a820;
    text-underline-offset: 2px;
}
.pfcol-manage-link:hover { color: #d4a820; }

.pfcol-tier-meta {
    font-size: .75rem;
    color: #888;
    font-variant-numeric: tabular-nums;
}

.pfcol-add-form { margin: 0; display: inline-block; }

/* ── My Collection page ──────────────────────────────────────────────────── */
.pfcol-page { max-width: 1180px; margin: 0 auto; padding: 1rem 1.25rem 3rem; }

.pfcol-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #d4a820;
}

.pfcol-page-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    color: #1c2340;
    text-transform: uppercase;
    letter-spacing: -.3px;
    margin: 0;
}

.pfcol-page-meta {
    display: flex;
    gap: 1.5rem;
    align-items: baseline;
}

.pfcol-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .15rem;
}
.pfcol-stat-label {
    font-size: .7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.pfcol-stat-value {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1c2340;
    font-variant-numeric: tabular-nums;
}

/* Flash messages */
.pfcol-flash {
    padding: .75rem 1rem;
    border: 1px solid;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: .9rem;
}
.pfcol-flash-success { background: #effaf3; border-color: #c8e6c9; color: #1b5e20; }
.pfcol-flash-error   { background: #fdecea; border-color: #f5c2c7; color: #8a1c1c; }
.pfcol-flash-warning { background: #fff8e1; border-color: #ffd54f; color: #8a6500; }
.pfcol-flash a { color: inherit; text-decoration: underline; font-weight: 600; }

/* Card wrapper (used by the "please log in" state) */
.pfcol-card {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    padding: 1.5rem;
    max-width: 600px;
    margin: 2rem auto;
}
.pfcol-card a { color: #1c2340; text-decoration: underline; text-decoration-color: #d4a820; font-weight: 600; }

/* Empty state */
.pfcol-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #fafafa;
    border: 1px dashed #d4d4d4;
    border-radius: 8px;
}
.pfcol-empty h2 {
    font-family: 'Oswald', sans-serif;
    color: #1c2340;
    font-size: 1.2rem;
    margin: 0 0 .5rem;
}
.pfcol-empty p { color: #666; margin: 0; }
.pfcol-empty a { color: #1c2340; text-decoration: underline; text-decoration-color: #d4a820; }

/* Collection table */
.pfcol-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    overflow: hidden;
    font-size: .88rem;
}
.pfcol-table thead th {
    background: #fafafa;
    text-align: left;
    padding: .65rem .85rem;
    font-size: .72rem;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #555;
    border-bottom: 1px solid #e2e2e2;
}
.pfcol-table tbody td {
    padding: .65rem .85rem;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    vertical-align: middle;
}
.pfcol-table tbody tr:last-child td { border-bottom: none; }
.pfcol-table tbody tr:hover td { background: #fafbfd; }

.pfcol-table-thumb { width: 50px; padding: .35rem .5rem .35rem .85rem; }
.pfcol-table-thumb img { width: 40px; height: auto; border-radius: 3px; display: block; }

.pfcol-table-name a {
    color: #1c2340;
    font-weight: 600;
    text-decoration: none;
}
.pfcol-table-name a:hover { color: #d4a820; }
.pfcol-table-sub {
    font-size: .72rem;
    color: #888;
    margin-top: .1rem;
}

.pfcol-remove-link {
    display: inline-block;
    color: #999;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    padding: 0 .35rem;
    transition: color .15s;
}
.pfcol-remove-link:hover { color: #b03030; }

@media (max-width: 720px) {
    .pfcol-table thead { display: none; }
    .pfcol-table tbody tr {
        display: block;
        padding: .5rem;
        border-bottom: 1px solid #e2e2e2;
    }
    .pfcol-table tbody td {
        display: inline-block;
        padding: .25rem .5rem;
        border-bottom: none;
    }
    .pfcol-table-thumb { display: block; padding: .35rem; }
}
