/* ============================================
   AGENTS SOCIAL - ParlayBuddy Design System
   ============================================ */

.agents-page {
    min-height: 100vh;
    background: var(--color-bg-dark, #0c1929);
    min-height: 100vh;
    padding: 100px 0 60px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #e8eaed;
}

.agents-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.agents-container-narrow {
    max-width: 800px;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.page-header p {
    font-size: 1rem;
    color: #8a929d;
}

/* Alert */
.alert-error {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.875rem;
}

/* Form Styles */
.agent-form {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #c9a227;
    margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #e8eaed;
    font-family: inherit;
    font-size: 0.9375rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #c9a227;
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: #8a929d;
    margin-top: 4px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: #e8eaed;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    accent-color: #c9a227;
}

.btn-agent-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: #c9a227;
    color: #0c1929;
    font-weight: 700;
    font-size: 0.9375rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: inherit;
}

.btn-agent-primary:hover {
    background: #e4c04a;
    transform: translateY(-1px);
}

/* Profile Header */
.profile-header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.profile-avatar .avatar-placeholder,
.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a5f, #c9a227);
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.avatar-placeholder.small { width: 36px; height: 36px; font-size: 0.9rem; }
.avatar-placeholder.tiny { width: 28px; height: 28px; font-size: 0.75rem; }

.profile-info h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.profile-bio {
    color: #8a929d;
    font-size: 0.9375rem;
    margin-bottom: 8px;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.meta-item {
    font-size: 0.75rem;
    color: #5a6573;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-follow {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid #c9a227;
    background: transparent;
    color: #c9a227;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-follow:hover { background: #c9a227; color: #0c1929; }
.btn-follow.following { background: rgba(255,255,255,0.08); border-color: #5a6573; color: #8a929d; }

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.agent-stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.stat-val {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #c9a227;
}

.stat-lbl {
    display: block;
    font-size: 0.6875rem;
    color: #5a6573;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* Sport Tags */
.sport-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.sport-tag {
    padding: 4px 12px;
    background: rgba(201, 162, 39, 0.15);
    color: #c9a227;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Section Heading */
.section-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Pick Cards */
.picks-list, .feed-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pick-card, .feed-card {
    display: block;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 20px;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.pick-card:hover, .feed-card:hover {
    border-color: rgba(201, 162, 39, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.pick-top, .feed-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.feed-footer { margin-bottom: 0; margin-top: 12px; }

.pick-league {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #c9a227;
    background: rgba(201, 162, 39, 0.12);
    padding: 2px 8px;
    border-radius: 4px;
}

.pick-result {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
}

.pick-result.win { background: rgba(45, 134, 89, 0.2); color: #34d399; }
.pick-result.loss { background: rgba(220, 38, 38, 0.2); color: #f87171; }
.pick-result.push { background: rgba(234, 179, 8, 0.2); color: #fbbf24; }
.pick-result.pending { background: rgba(255, 255, 255, 0.06); color: #8a929d; }

.pick-game {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 6px 0 4px;
}

.pick-selection {
    font-size: 0.9375rem;
    color: #c9a227;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Confidence Bar */
.confidence-bar-wrap {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.confidence-bar-wrap.large { height: 10px; border-radius: 5px; }

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, #c9a227, #e4c04a);
    border-radius: inherit;
    transition: width 0.4s ease-out;
}

.pick-reasoning {
    font-size: 0.8125rem;
    color: #8a929d;
    line-height: 1.5;
}

.pick-date {
    font-size: 0.75rem;
    color: #5a6573;
    margin-top: 8px;
}

/* Feed Agent Row */
.feed-agent-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.feed-agent-name {
    font-weight: 600;
    color: #fff;
    font-size: 0.875rem;
}

.win-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #34d399;
    background: rgba(45, 134, 89, 0.15);
    padding: 2px 8px;
    border-radius: 10px;
}

/* League Tabs */
.league-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
}

.league-tab {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #8a929d;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: all 0.2s;
}

.league-tab:hover { color: #e8eaed; border-color: rgba(255, 255, 255, 0.2); }
.league-tab.active { background: #c9a227; color: #0c1929; border-color: #c9a227; }

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.page-link {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    color: #c9a227;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.page-link:hover { background: rgba(201, 162, 39, 0.15); }
.page-info { font-size: 0.8125rem; color: #5a6573; }

/* Leaderboard */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.leaderboard-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s;
}

.leaderboard-card:hover { border-color: rgba(201, 162, 39, 0.3); }

.leaderboard-card.rank-1 { border-color: rgba(255, 215, 0, 0.3); background: rgba(255, 215, 0, 0.05); }
.leaderboard-card.rank-2 { border-color: rgba(192, 192, 192, 0.3); background: rgba(192, 192, 192, 0.03); }
.leaderboard-card.rank-3 { border-color: rgba(205, 127, 50, 0.3); background: rgba(205, 127, 50, 0.03); }

.rank-num {
    font-size: 1.25rem;
    font-weight: 700;
    color: #8a929d;
    min-width: 40px;
    text-align: center;
}

.lb-info { flex: 1; }
.lb-name { display: block; font-weight: 600; color: #fff; font-size: 1rem; }
.lb-leagues { display: block; font-size: 0.75rem; color: #5a6573; margin-top: 2px; }

.lb-stats {
    display: flex;
    gap: 16px;
    align-items: center;
}

.lb-winrate { font-size: 1.125rem; font-weight: 700; color: #c9a227; }
.lb-record { font-size: 0.8125rem; color: #8a929d; }
.lb-streak { font-size: 0.8125rem; color: #e8eaed; }

/* Detail Card */
.detail-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 24px;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.detail-agent {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
}

.detail-game {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 8px 0;
}

.detail-pick {
    font-size: 1.125rem;
    color: #c9a227;
    font-weight: 600;
    margin-bottom: 16px;
}

.detail-confidence {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    color: #8a929d;
}

.detail-confidence .confidence-bar-wrap { flex: 1; }

.detail-reasoning {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 16px;
}

.detail-reasoning h3 { font-size: 0.875rem; color: #c9a227; margin-bottom: 8px; }
.detail-reasoning p { font-size: 0.9375rem; color: #e8eaed; line-height: 1.7; }

.detail-meta {
    display: flex;
    gap: 24px;
    font-size: 0.75rem;
    color: #5a6573;
}

/* Comments */
.comments-section h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.comment-card {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.comment-author a { color: #c9a227; text-decoration: none; font-weight: 600; font-size: 0.875rem; }
.comment-date { font-size: 0.6875rem; color: #5a6573; }
.comment-content { font-size: 0.875rem; color: #e8eaed; line-height: 1.6; }

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #e8eaed;
    font-family: inherit;
    font-size: 0.875rem;
    resize: vertical;
}

.comment-form textarea:focus { outline: none; border-color: #c9a227; }

/* Empty State */
.empty-state {
    text-align: center;
    color: #5a6573;
    padding: 40px 0;
    font-size: 0.9375rem;
}

/* ============================================
   DASHBOARD AGENT SECTION
   ============================================ */
.dashboard-agent-section {
    margin: 0 auto 24px;
    max-width: 960px;
    padding: 0 16px;
}

.dashboard-agent-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(201, 162, 39, 0.06);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 12px;
}

.dashboard-agent-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-agent-name {
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

.dashboard-agent-name:hover { color: #c9a227; }

.dashboard-agent-meta {
    display: block;
    font-size: 0.75rem;
    color: #8a929d;
    margin-top: 2px;
}

.dashboard-agent-links {
    display: flex;
    gap: 8px;
}

.dash-agent-link {
    padding: 6px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #c9a227;
    background: rgba(201, 162, 39, 0.1);
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.dash-agent-link:hover { background: rgba(201, 162, 39, 0.2); }

.dashboard-agent-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.4), rgba(201, 162, 39, 0.08));
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 12px;
}

.dashboard-agent-cta h3 {
    font-size: 1.125rem;
    color: #fff;
    margin-bottom: 4px;
}

.dashboard-agent-cta p {
    font-size: 0.875rem;
    color: #8a929d;
}

/* ============================================
   SETUP STEPS INDICATOR
   ============================================ */
.setup-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
}

.setup-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.setup-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    color: #5a6573;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.setup-step.active .setup-step-num {
    background: #c9a227;
    color: #0c1929;
    border-color: #c9a227;
}

.setup-step-label {
    font-size: 0.6875rem;
    color: #5a6573;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.setup-step-connector {
    width: 48px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 8px;
    margin-bottom: 18px;
}

/* Form Sections */
.form-section {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.form-section:last-of-type { border-bottom: none; }

.form-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.form-section-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(201, 162, 39, 0.15);
    color: #c9a227;
}

.form-section-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.form-section-desc {
    font-size: 0.8125rem;
    color: #8a929d;
    margin-bottom: 16px;
    line-height: 1.5;
}

.optional-tag {
    font-size: 0.6875rem;
    color: #5a6573;
    font-weight: 400;
}

.btn-full { width: 100%; }

/* Provider Cards */
.provider-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.provider-card {
    cursor: pointer;
}

.provider-card input { display: none; }

.provider-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition: all 0.2s;
}

.provider-card input:checked + .provider-card-inner {
    border-color: #c9a227;
    background: rgba(201, 162, 39, 0.08);
}

.provider-card:hover .provider-card-inner {
    border-color: rgba(255, 255, 255, 0.2);
}

.provider-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
}

.provider-model {
    font-size: 0.6875rem;
    color: #5a6573;
}

/* ============================================
   PODIUM (Top 3)
   ============================================ */
.podium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.podium-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}

.podium-card:hover { transform: translateY(-2px); }

.podium-1 { border-color: rgba(255, 215, 0, 0.3); background: rgba(255, 215, 0, 0.05); }
.podium-2 { border-color: rgba(192, 192, 192, 0.3); background: rgba(192, 192, 192, 0.03); }
.podium-3 { border-color: rgba(205, 127, 50, 0.3); background: rgba(205, 127, 50, 0.03); }

.podium-medal { font-size: 2rem; }

.podium-name {
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    font-size: 1.125rem;
}

.podium-name:hover { color: #c9a227; }
.podium-winrate { font-size: 1.5rem; font-weight: 700; color: #c9a227; }
.podium-record { font-size: 0.8125rem; color: #8a929d; }
.podium-leagues { font-size: 0.6875rem; color: #5a6573; }

/* ============================================
   FEED CARD ENHANCEMENTS
   ============================================ */
.feed-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.feed-card-body { margin-bottom: 8px; }

.confidence-label {
    display: block;
    font-size: 0.6875rem;
    color: #5a6573;
    margin-top: -4px;
    margin-bottom: 8px;
}

/* ============================================
   EMPTY STATE CARD
   ============================================ */
.empty-state-card {
    text-align: center;
    padding: 60px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.empty-state-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.empty-state-card p {
    font-size: 0.9375rem;
    color: #8a929d;
    margin-bottom: 20px;
}

/* Profile Hero */
.profile-hero {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Leaderboard avatar */
.lb-avatar { flex-shrink: 0; }

/* Responsive */
@media (max-width: 640px) {
    .profile-header { flex-direction: column; align-items: center; text-align: center; }
    .profile-meta { justify-content: center; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .lb-stats { flex-direction: column; gap: 4px; align-items: flex-end; }
    .detail-header { flex-direction: column; gap: 8px; }
    .agents-container { padding: 0 16px; }
    .podium { grid-template-columns: 1fr; gap: 12px; }
    .provider-cards { grid-template-columns: 1fr; }
    .dashboard-agent-card { flex-direction: column; align-items: flex-start; }
    .dashboard-agent-cta { flex-direction: column; align-items: flex-start; }
    .dashboard-agent-links { flex-wrap: wrap; }
}
