/* teams.css - Formula Eチーム一覧ページ用スタイル */

.fe-teams-container {
    max-width: 1500px;
    margin: 0 auto 5rem;
    padding: 0 2rem;
}

.fe-teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(650px, 1fr));
    gap: 2rem;
}

.fe-team-standing-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--fe-box-shadow);
    overflow: hidden;
    transition: var(--fe-transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fe-team-standing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 76, 144, 0.15);
}

/* チームの順位とポイント表示ヘッダー */
.fe-team-standing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--fe-dark-blue);
    color: white;
    padding: 1rem 1.5rem;
}

.fe-team-position {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
}

.fe-team-points {
    font-size: 2rem;
    font-weight: 800;
    text-align: right;
    position: relative;
    padding-right: 3rem; /* PTSのスペースを確保 */
}

.fe-team-points span {
    font-size: 0.8rem;
    font-weight: 600;
    position: absolute;
    bottom: 0.2rem;
    right: 0;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
}

/* チーム情報コンテナ */
.fe-team-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* チーム名 */
.fe-team-name-container {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 1.5rem;
    padding-left: 0.8rem;
}

.fe-team-color-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    border-radius: 3px;
}

.fe-team-name {
    flex-grow: 1;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: var(--fe-dark-blue);
}

/* ドライバー情報 */
.fe-team-drivers {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.fe-driver {
    display: flex;
    align-items: center;
    height: 40px;
}

.fe-driver:last-child {
    border-bottom: none;
}

.fe-driver-number {
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    background-color: var(--fe-primary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    margin-right: 1rem;
    align-self: center;
}

.fe-driver-name {
    flex-grow: 1;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--fe-dark-blue);
    margin: 0;
    line-height: 1.2;
    align-self: center;
}

.fe-firstname {
    font-weight: 400;
}

.fe-driver-lastname {
    font-weight: 800;
    text-transform: uppercase;
}
.fe-driver-points {
    align-self: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fe-dark-blue);
    height: 35px;
    display: block;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    padding-right: 2.5rem; /* PTSのスペースを確保 */
    position: relative;
}

.fe-driver-points span {
    font-size: 0.6rem;
    font-weight: 600;
    position: absolute;
    bottom: 2px;
    right: 2px;
    background-color: rgba(0, 76, 144, 0.1);
    padding: 0.1rem 0.2rem;
    border-radius: 2px;
}
/* マシン画像 */
.fe-team-car {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--fe-light-grey);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.fe-car-image {
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

/* チーム詳細リンク */
.fe-team-link {
    padding: 1rem;
    text-align: center;
    background-color: var(--fe-light-blue);
    color: var(--fe-primary);
    font-weight: 700;
    text-decoration: none;
    transition: var(--fe-transition);
    display: block;
}

.fe-team-link:hover {
    background-color: var(--fe-primary);
    color: white;
}

/* チームカラー */
.porsche-color { background-color: #16234C; }
.jaguar-color { background-color: #041E42; }
.envision-color { background-color: #009B3A; }
.nissan-color { background-color: #C60C30; }
.andretti-color { background-color: #B12021; }
.mclaren-color { background-color: #FF8700; }
.ds-color { background-color: #B08D57; }
.mahindra-color { background-color: #C00000; }
.maserati-color { background-color: #00008B; }
.lola-yamaha-color { background-color: #0000CC; }
.kiro-color { background-color: #81B700; }

/* 追加のレスポンシブスタイル */
@media (max-width: 1400px) {
    .fe-teams-grid {
        grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    }
}

@media (max-width: 992px) {
    .fe-teams-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .fe-team-standing-header {
        padding: 0.8rem 1rem;
    }

    .fe-team-position {
        font-size: 2rem;
    }

    .fe-team-points {
        font-size: 1.6rem;
    }

    .fe-team-name {
        font-size: 1.2rem;
    }

    .fe-team-car {
        height: 150px;
    }
    
    .fe-driver-name {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .fe-teams-container {
        padding: 0 1rem;
    }

    .fe-team-name {
        font-size: 1rem;
    }

    .fe-driver-number {
        font-size: 0.9rem;
        width: 25px;
        height: 25px;
    }
    
    .fe-driver-name {
        font-size: 0.85rem;
    }
    
    .fe-driver-points {
        font-size: 1rem;
        min-width: 30px;
        height: 30px;
    }
}