/* ==============================================
   Rumors - Rumeurs de Transfert
   ============================================== */

/* Hero Section */
.rumors-hero {
    position: relative;
    padding: var(--spacing-2xl) var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 159, 10, 0.1) 0%, rgba(255, 69, 58, 0.1) 50%, rgba(175, 82, 222, 0.1) 100%);
    border: 1px solid var(--border);
}

.rumors-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.rumors-hero-particles {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 159, 10, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 69, 58, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(175, 82, 222, 0.2) 0%, transparent 50%);
    animation: heroParticles 10s ease-in-out infinite;
}

.rumors-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.rumors-hero-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    background: linear-gradient(135deg, var(--warning) 0%, var(--danger) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(255, 159, 10, 0.4);
    animation: iconFloat 3s ease-in-out infinite;
}

.rumors-hero-icon svg {
    width: 40px;
    height: 40px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

.rumors-hero-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-sm);
}

.rumors-hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.rumors-source-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.rumors-source-link:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    color: var(--accent);
}

.rumors-source-link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* Stats */
.rumors-stats {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    justify-content: center;
}

.rumor-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg) var(--spacing-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.rumor-stat-card .stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
}

.rumor-stat-card .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Rumors Container */
.rumors-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.rumors-table-wrapper {
    overflow-x: auto;
}

.rumors-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl);
    color: var(--text-secondary);
    gap: var(--spacing-lg);
}

/* Rumors Table */
.rumors-table {
    width: 100%;
    border-collapse: collapse;
}

.rumors-table thead {
    background: var(--bg-input);
    border-bottom: 1px solid var(--border);
}

.rumors-table th {
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.rumors-table td {
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.rumor-row {
    transition: background 0.2s ease;
}

.rumor-row:hover {
    background: var(--bg-card-hover);
}

/* Player Cell */
.player-cell .player-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.player-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 2px solid var(--border);
}

.player-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.player-name {
    font-weight: 600;
    color: var(--text-primary);
}

.player-tm-link {
    font-size: 11px;
    color: var(--accent);
    text-decoration: none;
}

.player-tm-link:hover {
    text-decoration: underline;
}

/* Position */
.position-badge {
    display: inline-block;
    padding: 4px 8px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-secondary);
}

/* Nationality */
.nationality-cell {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

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

/* Club */
.club-cell .club-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.club-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.club-cell.interested .club-info {
    color: var(--success);
}

/* Contract */
.contract-cell {
    white-space: nowrap;
}

.contract-date {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Value */
.market-value {
    font-weight: 600;
    color: var(--success);
}

/* Probability */
.probability-bar {
    position: relative;
    width: 80px;
    height: 24px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.probability-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--success) 0%, var(--accent) 100%);
    transition: width 0.3s ease;
}

.probability-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Actions */
.actions-cell {
    white-space: nowrap;
}

.btn-import svg {
    width: 16px;
    height: 16px;
}

.btn-success {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Empty State */
.rumors-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl);
    text-align: center;
}

.rumors-empty .empty-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.rumors-empty .empty-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--text-tertiary);
    fill: none;
    stroke-width: 1.5;
}

.rumors-empty .empty-icon.error svg {
    stroke: var(--danger);
}

.rumors-empty h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-sm);
}

.rumors-empty p {
    color: var(--text-secondary);
    margin: 0 0 var(--spacing-lg);
}

.rumors-empty .btn {
    margin-top: var(--spacing-md);
}

/* Manual Import Section */
.manual-import-section {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border);
    width: 100%;
    max-width: 500px;
}

.manual-import-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-sm);
}

.manual-import-section p {
    margin-bottom: var(--spacing-md);
}

.manual-search-form {
    display: flex;
    gap: var(--spacing-sm);
}

.manual-search-form .form-input {
    flex: 1;
}

#manual-search-results {
    margin-top: var(--spacing-lg);
    text-align: left;
}

.manual-search-results-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.manual-search-result-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-input);
    border-radius: var(--radius-md);
}

.manual-search-result-item img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.manual-search-result-item .result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.manual-search-result-item .result-name {
    font-weight: 600;
    color: var(--text-primary);
}

.manual-search-result-item .result-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Player Selection Modal */
.player-selection-modal {
    max-height: 60vh;
    overflow-y: auto;
}

.selection-intro {
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
}

.player-selection-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.player-selection-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-input);
    border-radius: var(--radius-md);
    transition: background 0.2s ease;
}

.player-selection-item:hover {
    background: var(--bg-card-hover);
}

.player-selection-item img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.player-selection-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.player-selection-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.player-selection-name {
    font-weight: 600;
    color: var(--text-primary);
}

.player-selection-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Match badges */
.match-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.match-excellent {
    background: rgba(48, 209, 88, 0.2);
    color: var(--success);
}

.match-good {
    background: rgba(0, 122, 255, 0.2);
    color: var(--accent);
}

.match-possible {
    background: rgba(255, 159, 10, 0.2);
    color: var(--warning);
}

.match-low {
    background: rgba(255, 69, 58, 0.2);
    color: var(--danger);
}

.player-selection-item.high-match {
    background: rgba(48, 209, 88, 0.1);
    border: 1px solid rgba(48, 209, 88, 0.3);
}

.no-good-match {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(255, 159, 10, 0.1);
    border-radius: var(--radius-md);
    text-align: center;
    color: var(--warning);
}

.no-good-match p {
    margin: 0 0 var(--spacing-xs);
}

.no-good-match small {
    color: var(--text-secondary);
}

.more-results {
    margin-top: var(--spacing-md);
    font-size: 12px;
    color: var(--text-tertiary);
    text-align: center;
}

/* Responsive */
@media (max-width: 1200px) {
    .rumors-table th:nth-child(8),
    .rumors-table td:nth-child(8),
    .rumors-table th:nth-child(9),
    .rumors-table td:nth-child(9) {
        display: none;
    }
}

@media (max-width: 900px) {
    .rumors-table th:nth-child(3),
    .rumors-table td:nth-child(3),
    .rumors-table th:nth-child(4),
    .rumors-table td:nth-child(4),
    .rumors-table th:nth-child(7),
    .rumors-table td:nth-child(7) {
        display: none;
    }
}

@media (max-width: 768px) {
    .rumors-hero {
        padding: var(--spacing-xl) var(--spacing-lg);
    }

    .rumors-hero-title {
        font-size: 24px;
    }

    .rumors-hero-icon {
        width: 64px;
        height: 64px;
    }

    .rumors-hero-icon svg {
        width: 32px;
        height: 32px;
    }

    .rumors-stats {
        flex-direction: row;
        justify-content: center;
    }

    .rumor-stat-card {
        padding: var(--spacing-md);
        min-width: 100px;
    }

    .rumor-stat-card .stat-value {
        font-size: 24px;
    }

    .rumors-table th:nth-child(5),
    .rumors-table td:nth-child(5),
    .rumors-table th:nth-child(6),
    .rumors-table td:nth-child(6) {
        display: none;
    }

    .player-avatar {
        width: 36px;
        height: 36px;
    }
}
