/* ===== Team Detail Page CSS ===== */

/* Hero Section */
.team-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    padding: 60px 0;
    color: #fff;
}

.team-hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.team-logo-hero {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    background: #fff;
    padding: 10px;
}

.team-name-hero {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.team-meta-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
}

.meta-badge i {
    color: #fbbf24;
}

.team-description-hero {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Content Cards */
.content-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    overflow: hidden;
}

.content-card-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #334155 100%);
    color: #fff;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-card-header i {
    color: #fbbf24;
}

.content-card-body {
    padding: 20px;
}

/* Player Grid Cards */
.player-grid-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    padding: 20px 15px;
    text-decoration: none;
    color: inherit;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.player-grid-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

/* Founder Card - Special Golden Style */
.player-founder-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%) !important;
    border: 2px solid #f59e0b !important;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3) !important;
    position: relative;
}

.player-founder-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.4) !important;
    border-color: #d97706 !important;
}

.player-founder-card .player-photo-wrapper {
    border-color: #f59e0b !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.player-founder-card .player-grid-info .position {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

/* Founder Badge */
.founder-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.5);
    z-index: 10;
    animation: founderPulse 2s ease-in-out infinite;
}

.founder-badge i {
    margin-right: 4px;
    color: #fff;
}

@keyframes founderPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.player-photo-wrapper {

    width: 120px;
    height: 160px;
    margin: 0 auto 15px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    position: relative;
}


.player-photo-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='1.5'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center center no-repeat;
    background-size: 50px;
    opacity: 0.5;
    z-index: 0;
}

.player-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    position: relative;
    z-index: 1;
}



.player-grid-info {
    padding-top: 5px;
}

.player-grid-info h6 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-grid-info .position {
    font-size: 0.8rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 8px;
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #1e3a5f);
    padding: 4px 12px;
    border-radius: 20px;
}

.player-grid-info .team-name {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-grid-info .team-name i {
    color: #3b82f6;
    margin-right: 4px;
}

.player-grid-info .stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 0.75rem;
    color: #64748b;
    background: #f8fafc;
    padding: 8px;
    border-radius: 8px;
    margin-top: 5px;
}

.player-grid-info .stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.player-grid-info .stats i {
    color: #f97316;
}

/* Stats Grid */


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

.stat-box {
    text-align: center;
    padding: 20px 15px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
}

.stat-box .number {
    font-size: 2rem;
    font-weight: 700;
    color: #1e3a5f;
}

.stat-box .label {
    font-size: 0.85rem;
    color: #64748b;
}

/* Position Bar */
.position-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.position-bar .name {
    width: 100px;
    font-size: 0.85rem;
    color: #475569;
    flex-shrink: 0;
}

.position-bar .bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.position-bar .bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #1e3a5f 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.position-bar .count {
    width: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e3a5f;
    text-align: right;
}

/* Match Mini Card */
.match-mini-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.match-mini-card:hover {
    background: #e2e8f0;
    transform: translateX(5px);
}

.match-mini-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.match-mini-team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
}

.match-mini-team img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    padding: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.match-mini-team span {
    font-size: 0.75rem;
    color: #1e293b;
    font-weight: 500;
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-mini-score {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e3a5f;
    padding: 5px 10px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
}

.match-mini-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.75rem;
    color: #64748b;
}

.match-mini-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .team-logo-hero {
        width: 90px;
        height: 90px;
    }

    .team-name-hero {
        font-size: 1.8rem;
    }

    .meta-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .player-photo-wrapper {
        width: 55px;
        height: 55px;
    }

    .player-grid-info h6 {
        font-size: 0.8rem;
    }

    .stat-box .number {
        font-size: 1.5rem;
    }

    .position-bar .name {
        width: 70px;
        font-size: 0.75rem;
    }

    .match-mini-team span {
        max-width: 60px;
    }
}