/* Base Typography and Colors from product.css */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --bg-dark: #111827;
    --bg-darker: #0f172a;
    --text-light: #f3f4f6;
    --text-gray: #94a3b8;
    --border-color: #1f2937;
    --card-bg: #1e293b;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--bg-darker);
    color: var(--text-light);
}

/* Header Styles */
.main-nav {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 2.5rem;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.nav-links a:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.1);
}

.nav-links a.active {
    color: var(--text-light);
    background: rgba(59, 130, 246, 0.1);
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.talent-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.filters-section {
    width: 100%;
    padding: 20px;
}

.search-filters {
    display: flex;
    gap: 16px;
    width: 100%;
    max-width: 100%;
}

.search-filters input,
.search-filters select {
    padding: 0.75rem 1.5rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    min-width: 200px;
    color: var(--text-light);
}

.search-filters input::placeholder {
    color: var(--text-gray);
}

.search-filters select {
    cursor: pointer;
}

.search-filters input:focus,
.search-filters select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.leaderboard-section {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.leaderboard-section h2 {
    color: var(--text-light);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.leaderboard-grid {
    width: 100%;
    overflow-x: auto;
}

.grid-header {
    display: grid;
    grid-template-columns: 
        60px    /* # */
        200px   /* Player */
        100px   /* Position */
        60px    /* Age */
        60px    /* Tot */
        60px    /* Pac */
        60px    /* Sht */
        60px    /* Pas */
        60px    /* Dri */
        60px    /* Def */
        60px    /* Phy */
        120px   /* Agency */
        100px   /* Value */
        100px   /* Proj */
        160px;  /* Best Fit */
    gap: 12px;
    padding: 12px 20px;
    background: var(--header-bg, #1a2234);
    border-radius: 8px 8px 0 0;
    align-items: center;
}

.grid-header .col {
    color: var(--header-text, #ffffff);
    font-weight: 600;
    font-size: 14px;
}

#playersList {
    width: 100%;
}

#playersList > div {
    display: grid;
    grid-template-columns: 
        60px    /* # */
        200px   /* Player */
        100px   /* Position */
        60px    /* Age */
        60px    /* Tot */
        60px    /* Pac */
        60px    /* Sht */
        60px    /* Pas */
        60px    /* Dri */
        60px    /* Def */
        60px    /* Phy */
        120px   /* Agency */
        100px   /* Value */
        100px   /* Proj */
        160px;  /* Best Fit */
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color, #2a3447);
    align-items: center;
}

/* Make sure horizontal scroll works smoothly */
.leaderboard-section {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.player-row {
    display: grid;
    grid-template-columns: 
        40px
        minmax(180px, 2fr)
        120px
        40px
        repeat(7, 60px)
        140px
        120px
        120px
        160px;
    padding: 1rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    color: var(--text-gray);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.player-row:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--text-light);
}

.player-row::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.player-row:hover::after {
    transform: scaleX(1);
}

.player-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.flag-icon {
    width: 20px;
    height: 14px;
    border-radius: 2px;
}

.stat-value {
    height: 24px;
    font-size: 0.875rem;
    padding: 0 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-weight: 500;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60px; /* Match column width */
}

.premium-stats {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.premium-stats h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.stat-card {
    padding: 1.5rem;
    background: var(--bg-dark);
    border-radius: 8px;
    min-height: 250px;
    border: 1px solid var(--border-color);
}

.stat-card h4 {
    color: var(--text-light);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.hidden {
    display: none;
}

/* Button Styles from product.css */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .grid-header,
    .player-row {
        grid-template-columns: 
            40px
            minmax(180px, 2fr)
            120px
            40px
            repeat(4, 60px)
            140px
            120px
            120px;
    }
    
    .col:nth-child(n+9),
    .league-fit {
        display: none;
    }
}

@media (max-width: 1024px) {
    .grid-header,
    .player-row {
        grid-template-columns: 
            40px
            minmax(180px, 2fr)
            120px
            40px
            repeat(3, 60px)
            140px;
    }
    
    .projected-value,
    .transfer-value {
        display: none;
    }
}

@media (max-width: 768px) {
    .grid-header,
    .player-row {
        grid-template-columns: 
            40px
            minmax(150px, 2fr)
            100px
            40px
            60px;
    }
    
    .col:nth-child(n+6),
    .agency-col {
        display: none;
    }
}

/* Add responsive nav styles */
@media (max-width: 1024px) {
    .nav-wrapper {
        padding: 1rem;
    }
}

/* RWA Marketplace Styles */
.marketplace-section {
    background: var(--bg-darker);
    padding: 2rem 0;
    margin-top: 2rem;
}

.marketplace-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 2rem;
}

.marketplace-header h2 {
    color: var(--text-light);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.marketplace-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.marketplace-filters {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 0 2rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    color: var(--text-gray);
    font-size: 0.875rem;
    font-weight: 500;
}

.filter-group select {
    padding: 0.75rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
    min-width: 150px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.collection-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.collection-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.collection-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--card-bg) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.collection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.collection-card:hover .collection-image img {
    transform: scale(1.05);
}

.collection-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
}

.collection-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-nda {
    background: #f59e0b;
    color: #000;
}

.badge-live {
    background: #10b981;
    color: #fff;
}

.badge-coming-soon {
    background: #f59e0b;
    color: #000;
}

.badge-closed {
    background: #6b7280;
    color: #fff;
}

.badge-partner {
    background: #8b5cf6;
    color: #fff;
}

.collection-content {
    padding: 1.5rem;
}

.collection-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.collection-title {
    color: var(--text-light);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.collection-ticker {
    color: var(--text-gray);
    font-size: 0.875rem;
    margin: 0.25rem 0 0 0;
}

.collection-partner {
    color: #8b5cf6;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0.25rem 0 0 0;
    opacity: 0.9;
}

.collection-performance {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.performance-positive {
    color: #10b981;
}

.performance-negative {
    color: #ef4444;
}

.performance-neutral {
    color: var(--text-gray);
}

.collection-description {
    color: var(--text-gray);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.investment-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.investment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.investment-label {
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.investment-value {
    color: var(--text-light);
    font-weight: 500;
}

.investment-value.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.collection-status {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    width: fit-content;
}

.status-active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-coming-soon {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.status-closed {
    background: rgba(107, 114, 128, 0.2);
    color: #6b7280;
}

.collection-footer {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-color);
}

.collection-action {
    display: block;
    width: 100%;
    text-align: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.collection-action:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

/* Icon styles for the marketplace */
.marketplace-icon {
    width: 1rem;
    height: 1rem;
    opacity: 0.7;
}

/* Responsive design for marketplace */
@media (max-width: 768px) {
    .marketplace-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .collections-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .marketplace-header {
        padding: 0 1rem;
    }
    
    .marketplace-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .collection-content {
        padding: 1rem;
    }
    
    .collection-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .investment-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* Add these styles to your existing talent.css */

.privileged-data {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-size: 0.875rem;
}

.transfer-value,
.projected-value {
    text-align: right;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.transfer-value {
    color: var(--text-light);
    background: rgba(59, 130, 246, 0.1);
}

.projected-value {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.league-fit {
    color: var(--text-gray);
    font-size: 0.75rem;
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.player-premium-info {
    display: contents; /* This spreads the children across the grid cells */
}

/* Add sorting styles */
.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 1.5rem;
}

.sort-indicator {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0.6rem;
    height: 0.6rem;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.sortable:hover .sort-indicator {
    opacity: 1;
}

.sort-indicator::before,
.sort-indicator::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
}

.sort-indicator::before {
    top: -2px;
    border-bottom: 4px solid var(--text-gray);
}

.sort-indicator::after {
    bottom: -2px;
    border-top: 4px solid var(--text-gray);
}

.sort-indicator.asc::before {
    border-bottom-color: var(--primary-color);
}

.sort-indicator.desc::after {
    border-top-color: var(--primary-color);
}

/* Make the header text more visible on hover */
.sortable:hover {
    color: var(--primary-color);
}

/* Add styles for the new columns */
.position-col {
    color: var(--text-gray);
    font-size: 0.875rem;
}

.agency-col {
    color: var(--primary-color);
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Add styles for the external player links */
.player-link {
    color: var(--text-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s ease;
}

.player-link:hover {
    color: var(--primary-color);
}

.external-link-icon {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.player-link:hover .external-link-icon {
    opacity: 1;
}

.leaderboard-section.full-width {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    margin: 0;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-dark);
    border-radius: 12px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-header .flag-icon {
    width: 24px;
    height: 16px;
}

.player-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-light);
}

.player-position {
    color: var(--text-gray);
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: var(--text-light);
}

.modal-body {
    padding: 1.5rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.profile-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.profile-card h3 {
    margin: 0 0 1rem 0;
    color: var(--text-light);
    font-size: 1.25rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item label {
    color: var(--text-gray);
    font-size: 0.875rem;
}

.info-item span {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
}

.stats-overview {
    grid-column: 2;
    grid-row: 1 / 3;
}

.stats-radar {
    height: 400px;
    width: 100%;
    position: relative;
}

.trajectory-chart {
    height: 200px;
    width: 100%;
    position: relative;
}

.stats-radar canvas,
.trajectory-chart canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

.player-highlights {
    grid-column: 2;
    grid-row: 3;
}

.highlights-video {
    width: 100%;
    height: 200px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.highlights-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.compatibility-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.league-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.league-name {
    color: var(--text-gray);
    font-size: 0.875rem;
    min-width: 120px;
}

.bar-container {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.bar-value {
    color: var(--text-light);
    font-size: 0.875rem;
    min-width: 40px;
    text-align: right;
}

.scouting-report {
    grid-column: 1 / -1;
}

.report-content {
    color: var(--text-gray);
    line-height: 1.6;
}

.report-content p {
    margin: 0.5rem 0;
}

.report-content strong {
    color: var(--text-light);
}

@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .stats-overview {
        grid-column: 1;
        grid-row: auto;
    }

    .player-highlights {
        grid-column: 1;
        grid-row: auto;
    }

    .highlights-video {
        height: 250px;
    }
} 