/* Football Player Manager - Frontend Styles */

/* Player Profile */
.fpm-player-profile {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
}

/* Hero Section */
.fpm-player-hero {
    position: relative;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 50%, #9b59b6 100%);
    color: white;
    padding: 60px 0;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.fpm-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.fpm-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.fpm-profile-image-container {
    flex-shrink: 0;
}

.fpm-profile-image {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.fpm-profile-image:hover {
    transform: scale(1.05);
}

.fpm-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fpm-jersey-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.fpm-hero-info {
    flex: 1;
}

.fpm-player-name {
    font-size: 3.5em;
    margin: 0 0 20px 0;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.fpm-position-container {
    margin-bottom: 20px;
}

.fpm-position-badge {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

/* Position Colors */
.fpm-position-gk { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.fpm-position-cb, .fpm-position-lb, .fpm-position-rb, .fpm-position-lwb, .fpm-position-rwb { 
    background: linear-gradient(135deg, #1abc9c, #16a085); 
}
.fpm-position-cdm, .fpm-position-cm, .fpm-position-cam, .fpm-position-lm, .fpm-position-rm { 
    background: linear-gradient(135deg, #3498db, #2980b9); 
}
.fpm-position-lw, .fpm-position-rw, .fpm-position-cf, .fpm-position-st { 
    background: linear-gradient(135deg, #f39c12, #e67e22); 
}

.fpm-team-info {
    margin-bottom: 30px;
}

.fpm-team-name {
    font-size: 1.8em;
    font-weight: 600;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.fpm-quick-stats-bar {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.fpm-quick-stat {
    text-align: center;
}

.fpm-quick-stat .fpm-stat-value {
    display: block;
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.fpm-quick-stat .fpm-stat-label {
    font-size: 0.9em;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Container */
.fpm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Bio Section */
.fpm-bio-section {
    background: white;
    padding: 60px 0;
    border-bottom: 1px solid #e8ecef;
}

.fpm-bio-content {
    font-size: 1.2em;
    line-height: 1.8;
    color: #2c3e50;
    max-width: 800px;
}

.fpm-bio-content p {
    margin-bottom: 20px;
}

/* Section Titles */
.fpm-section-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.fpm-title-icon {
    font-size: 0.8em;
    opacity: 0.8;
}

/* Stats Highlight */
.fpm-stats-highlight {
    padding: 80px 0;
    background: white;
}

.fpm-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.fpm-stat-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.fpm-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #9b59b6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.fpm-stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.fpm-stat-card:hover::before {
    transform: scaleX(1);
}

.fpm-stat-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.fpm-stat-secondary {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    color: white;
}

.fpm-stat-tertiary {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.fpm-stat-icon {
    font-size: 3em;
    margin-bottom: 20px;
    opacity: 0.9;
}

.fpm-stat-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fpm-stat-card .fpm-stat-number {
    font-size: 3.5em;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1;
}

.fpm-stat-card .fpm-stat-label {
    font-size: 1.1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Horizontal 3-Column Layout */
.fpm-three-column-horizontal {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.fpm-horizontal-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.fpm-left-column,
.fpm-center-column,
.fpm-right-column {
    height: 100%;
    min-height: 600px;
}

.fpm-info-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.fpm-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fpm-info-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.fpm-info-card {
    background: white;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.fpm-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fpm-info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.fpm-info-card:hover::before {
    opacity: 1;
}

.fpm-card-title {
    font-size: 1.4em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f3f4;
    position: relative;
}

.fpm-card-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 1px;
}

.fpm-title-icon {
    font-size: 1.2em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fpm-info-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.fpm-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f6f7;
    transition: all 0.2s ease;
}

.fpm-info-row:hover {
    background: rgba(102, 126, 234, 0.02);
    margin: 0 -15px;
    padding: 12px 15px;
    border-radius: 8px;
    border-bottom: 1px solid transparent;
}

.fpm-info-row:last-child {
    border-bottom: none;
}

.fpm-info-label {
    font-weight: 600;
    color: #6c757d;
    flex: 1;
    font-size: 0.95em;
}

.fpm-info-value {
    font-weight: 700;
    color: #2c3e50;
    text-align: right;
    font-size: 0.95em;
}

.fpm-value-highlight {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.fpm-yellow-card {
    color: #f1c40f;
    font-weight: 700;
}

.fpm-red-card {
    color: #e74c3c;
    font-weight: 700;
}

/* Career Timeline */
.fpm-career-timeline {
    padding: 80px 0;
    background: white;
    border-top: 1px solid #e8ecef;
}

.fpm-timeline-content {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    border-left: 5px solid #3498db;
    font-size: 1.1em;
    line-height: 1.8;
    color: #2c3e50;
    white-space: pre-line;
}

/* Player Cards Grid */
.fpm-players-grid {
    display: grid;
    gap: 25px;
    margin: 20px 0;
}

.fpm-col-1 { grid-template-columns: 1fr; }
.fpm-col-2 { grid-template-columns: repeat(2, 1fr); }
.fpm-col-3 { grid-template-columns: repeat(3, 1fr); }
.fpm-col-4 { grid-template-columns: repeat(4, 1fr); }
.fpm-col-5 { grid-template-columns: repeat(5, 1fr); }
.fpm-col-6 { grid-template-columns: repeat(6, 1fr); }

.fpm-player-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    position: relative;
}

.fpm-player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.fpm-card-header {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.fpm-card-image {
    position: relative;
    margin-bottom: 15px;
}

.fpm-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.fpm-jersey-number {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.fpm-card-name {
    margin: 0 0 10px 0;
    font-size: 1.3em;
    font-weight: 700;
}

.fpm-card-name a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.fpm-card-name a:hover {
    color: #3498db;
}

.fpm-card-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}

.fpm-team,
.fpm-nationality,
.fpm-age {
    font-size: 0.9em;
    color: #7f8c8d;
}

.fpm-card-stats {
    padding: 20px;
    border-top: 1px solid #e8e8e8;
}

.fpm-quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.fpm-quick-stat {
    text-align: center;
}

.fpm-quick-stat .fpm-stat-number {
    display: block;
    font-size: 1.5em;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 5px;
}

.fpm-quick-stat .fpm-stat-label {
    font-size: 0.8em;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Search Form */
.fpm-search-container {
    max-width: 800px;
    margin: 30px auto;
}

.fpm-search-form {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    margin-bottom: 30px;
}

.fpm-search-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.fpm-search-input-wrapper input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.fpm-search-input-wrapper input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.fpm-search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    background: #3498db;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.fmp-search-btn:hover {
    background: #2980b9;
}

.fpm-search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    align-items: end;
}

.fpm-search-filters select,
.fpm-search-filters input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    font-size: 14px;
}

.fpm-clear-filters {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.fpm-clear-filters:hover {
    background: #7f8c8d;
}

.fpm-search-results {
    min-height: 200px;
}

/* Statistics Widget */
.fpm-stats-widget {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.fpm-stats-horizontal {
    display: flex;
    gap: 20px;
    justify-content: space-around;
}

.fpm-stats-vertical .fpm-stat-item {
    margin-bottom: 15px;
}

.fpm-stats-vertical .fpm-stat-item:last-child {
    margin-bottom: 0;
}

.fpm-info-card:hover::before {
    opacity: 1;
}

.fpm-card-title {
    font-size: 1.5em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f3f4;
    position: relative;
}

.fpm-card-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 1px;
}

.fpm-title-icon {
    font-size: 1.3em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Statistics Cards */
.fpm-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.fpm-stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.fpm-stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.fpm-stat-card:hover::before {
    animation: shimmer 1.5s ease-in-out;
    opacity: 1;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.fpm-stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.4);
}

.fpm-stat-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    opacity: 0.9;
}

.fpm-stat-card .fpm-stat-number {
    font-size: 3em;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.fpm-stat-card .fpm-stat-label {
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Detailed Statistics */
.fpm-detailed-stats {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
}

.fpm-info-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fpm-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f6f7;
    transition: all 0.2s ease;
}

.fpm-info-row:hover {
    background: rgba(102, 126, 234, 0.02);
    margin: 0 -15px;
    padding: 12px 15px;
    border-radius: 8px;
    border-bottom: 1px solid transparent;
}

.fpm-info-row:last-child {
    border-bottom: none;
}

.fpm-info-label {
    font-weight: 600;
    color: #6c757d;
    flex: 1;
    font-size: 0.95em;
}

.fpm-info-value {
    font-weight: 700;
    color: #2c3e50;
    text-align: right;
    font-size: 0.95em;
}

.fpm-value-highlight {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fpm-player-profile {
        padding: 0;
    }
    
    .fpm-player-hero {
        padding: 40px 0;
        min-height: 400px;
    }
    
    .fpm-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 0 15px;
    }
    
    .fpm-profile-image {
        width: 200px;
        height: 200px;
    }
    
    .fpm-player-name {
        font-size: 2.5em;
    }
    
    .fpm-quick-stats-bar {
        justify-content: center;
        gap: 20px;
    }
    
    .fpm-container {
        padding: 0 15px;
    }
    
    .fpm-bio-section,
    .fpm-stats-highlight,
    .fpm-three-column-layout,
    .fpm-career-timeline {
        padding: 40px 0;
    }
    
    .fpm-section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    
    .fpm-stats-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .fpm-stat-card {
        padding: 30px 20px;
    }
    
    .fpm-stat-card .fpm-stat-number {
        font-size: 2.5em;
    }
    
    .fpm-three-column-horizontal {
        padding: 40px 0;
    }
    
    .fpm-horizontal-columns {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .fpm-left-column,
    .fpm-center-column,
    .fpm-right-column {
        min-height: auto;
    }
    
    .fpm-info-card {
        padding: 25px 20px;
    }
    
    .fpm-info-card {
        padding: 30px 20px;
    }
    
    .fpm-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .fpm-info-value {
        text-align: left;
    }
    
    .fpm-players-grid.fpm-col-2,
    .fpm-players-grid.fpm-col-3,
    .fpm-players-grid.fpm-col-4,
    .fpm-players-grid.fpm-col-5,
    .fpm-players-grid.fpm-col-6 {
        grid-template-columns: 1fr;
    }
    
    .fpm-search-filters {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .fpm-stats-horizontal {
        flex-direction: column;
        gap: 15px;
    }
    
    .fpm-season-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .fpm-performance-metrics {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .fpm-section {
        padding: 15px;
    }
    
    .fpm-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .fpm-quick-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .fpm-search-form {
        padding: 15px;
    }
}

/* Loading and Animation States */
.fpm-loading {
    opacity: 0.6;
    pointer-events: none;
}

.fpm-fade-in {
    animation: fpm-fadeIn 0.5s ease-in;
}

@keyframes fpm-fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Print Styles */
@media print {
    .fpm-player-profile {
        padding: 0;
        box-shadow: none;
    }
    
    .fmp-section {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
    
    .fpm-player-header {
        background: none !important;
        color: black !important;
        box-shadow: none;
    }
    
    .fpm-position-badge {
        background: none !important;
        color: black !important;
        border: 1px solid #ccc;
    }
}