/* Player Page Enhanced Sections Styles - Restructured */

/* Combined Header Section */
.player-header-enhanced {
    margin-bottom: 24px;
}

.player-title {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 12px 0;
    text-align: center;
}

.player-info-banner {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.player-info-banner strong {
    font-size: 16px;
}

.player-info-banner small {
    opacity: 0.9;
    font-size: 12px;
}

/* Collapsible Price Guide */
.price-guide-collapsible {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.price-guide-summary {
    padding: 16px 20px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #856404;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    user-select: none;
}

.price-guide-summary:hover {
    background: rgba(255, 234, 167, 0.3);
}

.toggle-hint {
    font-size: 12px;
    font-weight: normal;
    opacity: 0.8;
}

.price-guide-content {
    padding: 0 20px 20px 20px;
}

.grade-prices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.grade-item {
    background: white;
    padding: 12px 8px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #dee2e6;
    transition: all 0.2s;
}

.grade-popular {
    background: #e8f5e8;
    padding: 12px 8px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #28a745;
    transform: scale(1.02);
}

.grade-item.has-data {
    border-color: #007bff;
    background: #f8f9ff;
}

.grade-label {
    font-weight: 600;
    color: #495057;
    font-size: 12px;
    margin-bottom: 4px;
}

.grade-price {
    color: #28a745;
    font-weight: bold;
    font-size: 14px;
}

.market-data-indicator {
    font-size: 10px;
    color: #007bff;
    margin-top: 2px;
}

.price-guide-note {
    font-size: 12px;
    color: #856404;
    margin: 0;
    text-align: center;
}

/* Variations Section with PSA Links */
.variations-section {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.variations-header h3 {
    color: #495057;
    margin: 0;
    font-size: 18px;
}

.psa-pop-link {
    background: #e3f2fd;
    color: #1976d2;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.psa-pop-link:hover {
    background: #bbdefb;
    transform: translateY(-1px);
}

.variations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.variation-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.variation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.variation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.variation-header h4 {
    margin: 0;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
    flex: 1;
}

.psa-variation-link {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 6px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    margin-left: 8px;
    transition: all 0.2s;
}

.psa-variation-link:hover {
    background: #bbdefb;
    transform: scale(1.1);
}

.rarity-badge {
    background: #007bff;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.variation-description {
    color: #6c757d;
    font-size: 12px;
    margin-bottom: 6px;
    line-height: 1.3;
}

.premium-info {
    color: #28a745;
    font-size: 11px;
    font-weight: 600;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .player-title {
        font-size: 24px;
    }
    
    .variations-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .psa-pop-link {
        text-align: center;
    }
    
    .grade-prices {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .variations-grid {
        grid-template-columns: 1fr;
    }
    
    .player-info-banner {
        padding: 12px 16px;
    }
    
    .price-guide-content {
        padding: 0 16px 16px 16px;
    }
    
    .variations-section {
        padding: 16px;
    }
    
    .variation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .psa-variation-link {
        margin-left: 0;
        align-self: flex-end;
    }
}


/* Player-specific styles not in main CSS */
.header-card-image {
    width: 190px;
    height: 230px;
    flex-shrink: 0;
}

.player-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.t206-card-realistic {
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

.card-border {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #8b5a2b 0%, #d4ac6a 50%, #8b5a2b 100%);
    border: 3px solid #654321;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    padding: 8px;
    color: white;
    font-family: serif;
    position: relative;
}

.card-top {
    background: rgba(255,255,255,0.9);
    color: #8b5a2b;
    text-align: center;
    padding: 3px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 6px;
}

.card-portrait-area {
    flex: 1;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.player-initials {
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.card-name-strip {
    background: rgba(255,255,255,0.9);
    color: #8b5a2b;
    text-align: center;
    padding: 4px 2px;
    border-radius: 3px;
    font-size: 8px;
    font-weight: bold;
    margin-bottom: 6px;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 8px;
}

.tobacco-brand {
    background: rgba(255,255,255,0.9);
    color: #8b5a2b;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: bold;
}

.card-year {
    opacity: 0.9;
    background: rgba(0,0,0,0.3);
    padding: 2px 4px;
    border-radius: 2px;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.stat-item {
    background: white;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.filters-section {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-row {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
    min-width: 50px;
}

.filter-select {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #1e293b;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 140px;
}

.filter-select:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.filter-select:hover {
    border-color: #16a34a;
}

.clear-filters {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-filters:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.deals-count {
    color: #64748b;
    font-size: 14px;
}

.deal-card-improved.hidden {
    display: none !important;
}

/* Player page specific layout adjustments */
.page-header {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header-content {
    flex: 1;
}

/* Mobile adjustments for player page */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        text-align: center;
    }
    
    .header-card-image {
        order: -1;
        margin-bottom: 20px;
    }
    
    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-select {
        min-width: auto;
        width: 100%;
    }
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
  align-items: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-label {
  font-weight: bold;
}

.filter-pill {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #ccc;
  background: #f2f2f2;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  background: #e0e0e0;
}

.filter-pill.active {
  background: #007bff;
  color: white;
  border: 1px solid #007bff;
}

.filter-clear {
  margin-left: auto;
  background: #ff4d4d;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
}
