/* FSA Player Page Styles */

.fsa-player-page {
    max-width: none;
    margin: 0;
    padding: 0;
}

.fsa-player-header {
    margin-bottom: 40px;
}

.fsa-featured-cards {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    align-items: start;
}

.fsa-card-img {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fsa-card-large {
    width: 350px;
    height: 490px;
    background-size: 200% auto;
    background-position: left center;
    background-repeat: no-repeat;
}

.fsa-cards-secondary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fsa-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 675px; /* Constrains the entire row */
}

.fsa-card-small {
    width: 100%;
    aspect-ratio: 5/7;
    background-size: 200% auto;
    background-position: left center;
    background-repeat: no-repeat;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.fsa-player-info {
    padding: 0 0 20px 0;
}

.fsa-player-info h1 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.fsa-meta {
    display: flex;
    gap: 30px;
    font-size: 1.1rem;
    color: #666;
}

.fsa-meta strong {
    color: #333;
}

.fsa-dads-take {
    background: #f9f9f9;
    border-left: 4px solid #d63638;
    padding: 30px;
    margin-bottom: 40px;
    border-radius: 4px;
}

.fsa-dads-take h2 {
    margin-top: 0;
    font-size: 1.8rem;
    color: #d63638;
}

.fsa-dad-quote {
    font-size: 1.2rem;
    line-height: 1.6;
    font-style: italic;
}

.fsa-about {
    margin-bottom: 40px;
}

.fsa-about h2,
.fsa-stats h2,
.fsa-card-gallery h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 3px solid #2271b1;
    padding-bottom: 10px;
}

.fsa-about p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.fsa-stats {
    margin-bottom: 40px;
}

.fsa-stats-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fsa-stats-table thead {
    background: #2271b1;
    color: white;
}

.fsa-stats-table th,
.fsa-stats-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.fsa-stats-table tbody tr:hover {
    background: #f5f5f5;
}

.fsa-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

/* Container for card + price + button */
.fsa-card-container {
    display: flex;
    flex-direction: column;
}

.fsa-gallery-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
    cursor: pointer;
    position: relative;
}

.fsa-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.fsa-card-gallery .fsa-card-img {
    width: 100%;
    height: 280px;
    margin-bottom: 15px;
    background-size: 200% auto;
    background-position: left center;
    background-repeat: no-repeat;
}

.fsa-card-hover-overlay {
    position: absolute;
    top: 250px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 10;
}

.fsa-gallery-item:hover .fsa-card-hover-overlay {
    opacity: 1;
}

.fsa-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.fsa-lightbox.active {
    display: flex;
}

.fsa-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.fsa-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.fsa-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: #333;
    z-index: 10000;
}

.fsa-lightbox-close:hover {
    background: #f0f0f0;
}

/* Card Details Display - UPDATED FOR SMALLER TEXT */
.fsa-card-details {
    padding: 10px;
}

.fsa-card-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    color: #333;
}

.fsa-card-set {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
    margin-bottom: 4px;
}

.fsa-card-serial {
    font-weight: 600;
    color: #d63638;
    font-size: 12px;
    margin: 4px 0;
}

.fsa-card-meta {
    color: #2271b1;
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 10px;
}

.fsa-serial {
    display: inline-block;
    background: #ffeb3b;
    color: #333;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 5px;
}

/* Badge Styles */
.fsa-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 5px;
    margin-top: 5px;
}

.fsa-badge.fsa-rpa { 
    background: linear-gradient(135deg, #d63638 0%, #00a32a 100%); 
    color: white; 
}

.fsa-badge.fsa-auto-patch { 
    background: #9b51e0; 
    color: white; 
}

.fsa-badge.fsa-auto {
    background: #00a32a;
    color: white;
}

.fsa-badge.fsa-patch { 
    background: #f6851f; 
    color: white; 
}

.fsa-badge.fsa-rookie {
    background: #d63638;
    color: white;
}

.fsa-badge.fsa-mem {
    background: #2271b1;
    color: white;
}

/* Pricing and Cart - Hanging below card element */
.fsa-card-price {
    font-size: 20px;
    font-weight: 700;
    color: #00a32a;
    text-align: left;
    margin: 10px 0 8px 0;
}

.fsa-card-price.fsa-price-unavailable {
    color: #999;
    font-size: 14px;
    font-weight: 500;
}

.fsa-card-add-btn {
    width: 100%;
    background: #333;
    color: white;
    border: none;
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    cursor: not-allowed;
    opacity: 0.4;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fsa-card-add-btn:not(:disabled) {
    cursor: pointer;
    opacity: 1;
}

.fsa-card-add-btn:not(:disabled):hover {
    background: #000;
    transform: translateY(-1px);
}

/* SEO H1 - appears above everything */
.fsa-page-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 30px 0;
    text-align: left;
}

/* Visual player name H2 - where old H1 was */
.fsa-player-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 10px 0;
    font-weight: 700;
}

/* Bio Citation Styling */
.fsa-bio-citation {
    font-size: 0.9em;
    color: #666;
    margin-top: -0.5em;
    margin-bottom: 1.5em;
    font-style: italic;
}

.fsa-bio-citation em {
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .fsa-featured-cards {
        grid-template-columns: 300px 1fr;
        gap: 20px;
    }
    
    .fsa-card-large {
        width: 300px;
        height: 420px;
    }
}

@media (max-width: 768px) {
    .fsa-featured-cards {
        grid-template-columns: 1fr;
    }
    
    .fsa-card-featured {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .fsa-card-large {
        width: 100%;
        height: auto;
        aspect-ratio: 5/7;
    }
    
    .fsa-cards-row {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .fsa-card-small {
        aspect-ratio: 5/7;
    }
    
    .fsa-player-info h1 {
        font-size: 2rem;
    }
    
    .fsa-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .fsa-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .fsa-player-page {
        padding: 0;
    }
    
    .fsa-cards-row {
        grid-template-columns: 1fr;
    }
    
    .fsa-gallery-grid {
        grid-template-columns: 1fr;
    }
}