/* ═══════════════════════════════════════════════════════════
   PICK YOUR CARD — Fight-week prediction widget
   Design: matches FF dark gradient + #e63333 accent system
   ═══════════════════════════════════════════════════════════ */

.pyc-wrap {
    max-width: 540px;
    margin: 0 auto;
    padding: 0 4px 80px;
}

/* ── Header ── */
.pyc-header {
    text-align: center;
    margin-bottom: 24px;
}

.pyc-eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #e63333;
    margin-bottom: 6px;
}

.pyc-title {
    font-size: 22px;
    font-weight: 900;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.pyc-sub {
    font-size: 13px;
    color: #888;
    font-weight: 500;
    line-height: 1.5;
}

.pyc-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    font-size: 12px;
    color: #aaa;
    font-weight: 600;
}

.pyc-meta-pill {
    background: rgba(230, 51, 51, 0.08);
    color: #e63333;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.pyc-meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ddd;
}

/* ── Progress bar ── */
.pyc-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 0 4px;
}

.pyc-progress-bar {
    flex: 1;
    height: 4px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.pyc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e63333, #ff5555);
    border-radius: 4px;
    transition: width 0.4s ease;
    width: 0%;
}

.pyc-progress-text {
    font-size: 12px;
    font-weight: 700;
    color: #999;
    white-space: nowrap;
}

/* ── Fight Card (each bout) ── */
.pyc-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    border-radius: 14px;
    padding: 0;
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pyc-card.picked {
    transform: scale(0.985);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

/* Card header — belt / weight class info */
.pyc-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px 0;
}

.pyc-card-belt {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.45);
}

.pyc-card-belt.main-event {
    color: #e63333;
    background: rgba(230, 51, 51, 0.12);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 9px;
    letter-spacing: 1.5px;
}

/* VS layout — two fighters side by side */
.pyc-vs {
    display: flex;
    align-items: stretch;
    padding: 12px 12px 14px;
    gap: 8px;
}

.pyc-fighter {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
    min-height: 100px;
    -webkit-tap-highlight-color: transparent;
}

.pyc-fighter:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.pyc-fighter:active {
    transform: scale(0.97);
}

.pyc-fighter.selected {
    background: rgba(230, 51, 51, 0.12);
    border-color: #e63333;
}

.pyc-fighter.selected .pyc-fighter-name {
    color: #fff;
}

/* Check indicator */
.pyc-fighter-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: transparent;
    transition: all 0.2s ease;
}

.pyc-fighter.selected .pyc-fighter-check {
    background: #e63333;
    border-color: #e63333;
    color: #fff;
}

.pyc-fighter-name {
    font-size: 15px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.25;
    margin-bottom: 4px;
}

.pyc-fighter-record {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 600;
}

.pyc-fighter-fpts {
    font-size: 10px;
    font-weight: 700;
    color: #e6a817;
    margin-top: 3px;
    letter-spacing: 0.3px;
}

.pyc-fighter-draft {
    font-size: 9.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 2px;
    letter-spacing: 0.2px;
}

.pyc-fighter-flag {
    font-size: 18px;
    margin-bottom: 6px;
}

/* VS divider */
.pyc-vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
}

.pyc-vs-text {
    font-size: 11px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── Community percentages (shown after picking) ── */
.pyc-community {
    display: none;
    padding: 0 16px 12px;
    animation: pycFadeIn 0.3s ease;
}

.pyc-card.picked .pyc-community {
    display: block;
}

@keyframes pycFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pyc-community-bar {
    display: flex;
    height: 6px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    margin-bottom: 6px;
}

.pyc-community-fill-a {
    background: #e63333;
    transition: width 0.5s ease;
    border-radius: 6px 0 0 6px;
}

.pyc-community-fill-b {
    background: rgba(255, 255, 255, 0.15);
    transition: width 0.5s ease;
    border-radius: 0 6px 6px 0;
}

.pyc-community-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
}

.pyc-community-labels .picked-label {
    color: #e63333;
}

/* ── Locked card (picks closed for this fight) ── */
.pyc-card.locked .pyc-fighter {
    cursor: default;
    opacity: 0.7;
}

.pyc-card.locked .pyc-fighter:hover {
    background: transparent;
    border-color: transparent;
}

/* ── Submit / CTA section ── */
.pyc-submit-area {
    text-align: center;
    margin-top: 24px;
    padding: 0 4px;
}

.pyc-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: #e63333;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(230, 51, 51, 0.3);
}

.pyc-submit-btn:hover {
    background: #cc2929;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(230, 51, 51, 0.4);
}

.pyc-submit-btn:active {
    transform: translateY(0);
}

.pyc-submit-btn:disabled {
    background: #555;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.pyc-tweet-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    background: #1a1a2e;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.pyc-tweet-btn:hover {
    background: #0f3460;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.pyc-submit-hint {
    font-size: 12px;
    color: #aaa;
    margin-top: 10px;
    font-weight: 500;
}

/* ── Results summary (after submission) ── */
.pyc-results-summary {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.pyc-results-title {
    font-size: 13px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.pyc-results-score {
    font-size: 40px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 4px;
}

.pyc-results-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

/* ── Empty state (no active fight week) ── */
.pyc-empty {
    text-align: center;
    padding: 60px 20px;
}

.pyc-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.pyc-empty-title {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.pyc-empty-sub {
    font-size: 13px;
    color: #999;
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
}

/* ── CTA for non-logged-in users ── */
.pyc-signup-nudge {
    background: linear-gradient(135deg, #111 0%, #1c1c1c 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.pyc-signup-nudge p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    font-weight: 500;
    line-height: 1.6;
}

.pyc-signup-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #e63333;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.pyc-signup-btn:hover {
    background: #cc2929;
}

/* ── Loading state ── */
.pyc-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 12px;
}

.pyc-loading-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #eee;
    border-top-color: #e63333;
    border-radius: 50%;
    animation: pycSpin 0.7s linear infinite;
}

@keyframes pycSpin {
    to { transform: rotate(360deg); }
}

.pyc-loading-text {
    font-size: 13px;
    color: #999;
    font-weight: 600;
}

/* ── Admin: Create Fight Card form ── */
.pyc-admin {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #f0f0f0;
}

.pyc-admin-title {
    font-size: 14px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pyc-admin-form {
    background: #fafafa;
    border-radius: 12px;
    padding: 20px;
    border: 1.5px solid #e5e7eb;
}

.pyc-admin-field {
    margin-bottom: 14px;
}

.pyc-admin-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pyc-admin-field input,
.pyc-admin-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    background: #fff;
}

.pyc-admin-field input:focus,
.pyc-admin-field select:focus {
    outline: none;
    border-color: #e63333;
}

/* Bout rows in admin */
.pyc-admin-bout {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
}

.pyc-admin-bout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.pyc-admin-bout-num {
    font-size: 11px;
    font-weight: 800;
    color: #e63333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pyc-admin-bout-remove {
    background: none;
    border: none;
    color: #ccc;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.15s;
}

.pyc-admin-bout-remove:hover {
    color: #e63333;
}

.pyc-admin-bout-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.pyc-admin-bout-row input {
    width: 100%;
    padding: 8px 10px;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    color: #333;
    background: #fff;
}

.pyc-admin-bout-row input:focus {
    outline: none;
    border-color: #e63333;
}

.pyc-admin-bout-row input::placeholder {
    color: #bbb;
}

.pyc-admin-add-bout {
    width: 100%;
    padding: 10px;
    background: none;
    border: 2px dashed #ddd;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #999;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
    margin-bottom: 16px;
}

.pyc-admin-add-bout:hover {
    border-color: #e63333;
    color: #e63333;
}

.pyc-admin-submit {
    width: 100%;
    padding: 12px;
    background: #e63333;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.pyc-admin-submit:hover {
    background: #cc2929;
}

.pyc-admin-msg {
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
    text-align: center;
}

.pyc-admin-msg.success { color: #22c55e; }
.pyc-admin-msg.error   { color: #e63333; }

/* ── Bout label (weight class) in admin ── */
.pyc-admin-bout-label {
    margin-bottom: 8px;
}

.pyc-admin-bout-label input {
    width: 100%;
    padding: 6px 10px;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    font-size: 11px;
    font-family: inherit;
    color: #666;
    background: #fafafa;
}

.pyc-admin-bout-label input:focus {
    outline: none;
    border-color: #e63333;
}

/* ── Existing cards list in admin ── */
.pyc-admin-existing {
    margin-top: 20px;
}

.pyc-admin-card-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 8px;
}

.pyc-admin-card-info {
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

.pyc-admin-card-info span {
    font-size: 11px;
    color: #999;
    font-weight: 500;
    margin-left: 8px;
}

.pyc-admin-card-actions {
    display: flex;
    gap: 8px;
}

.pyc-admin-card-actions button {
    background: none;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
    color: #666;
}

.pyc-admin-card-actions button:hover {
    border-color: #e63333;
    color: #e63333;
}

.pyc-admin-card-actions button.delete:hover {
    border-color: #e63333;
    background: #e63333;
    color: #fff;
}
