/* ===== Teams List Modern Styles ===== */
.fdd-teams-list-modern {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    margin: 40px 0;
    isolation: isolate;
}

.fdd-teams-wrapper {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.fdd-teams-title {
    color: #1a365d;
    margin-bottom: 30px;
    font-size: 2.2rem;
    border-bottom: 4px solid #e31837;
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.fdd-teams-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #e31837, #ff6b6b);
    border-radius: 2px;
}

.fdd-teams-title i {
    color: #e31837;
    font-size: 1.8rem;
}

.fdd-teams-subtitle {
    color: #718096;
    font-size: 1.2rem;
    font-weight: normal;
    margin-left: auto;
    background: #f1f5f9;
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.fdd-teams-loading {
    text-align: center;
    padding: 40px;
    color: #4a5568;
}

.fdd-teams-loading i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #e31837;
}

/* Teams table */
.fdd-teams-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.fdd-teams-table-responsive {
    min-width: 300px;
}

.fdd-teams-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.fdd-teams-table thead {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    position: sticky;
    top: 0;
    z-index: 10;
}

.fdd-teams-table th {
    color: white;
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    border-bottom: 3px solid #e31837;
}

.fdd-teams-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.fdd-teams-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.fdd-teams-table tbody tr:hover {
    background-color: #f1f5f9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
    position: relative;
}

.fdd-teams-table td {
    padding: 16px 15px;
    text-align: left;
    vertical-align: middle;
    font-size: 0.95rem;
}

/* Team cell */
.fdd-teams-team-cell {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 250px;
}

.fdd-teams-team-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #2d3748;
    transition: all 0.3s ease;
    padding: 12px 0;
    width: 100%;
    cursor: pointer;
}

.fdd-teams-team-link:hover {
    color: #e31837;
}

.fdd-teams-team-crest {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    background: white;
    padding: 5px;
    border-radius: 8px;
}

.fdd-teams-team-crest-placeholder {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    color: #64748b;
}

.fdd-teams-team-link:hover .fdd-teams-team-crest {
    transform: scale(1.15) rotate(-5deg);
}

.fdd-teams-team-name {
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
}

.fdd-teams-team-stadium {
    font-size: 0.9rem;
    color: #718096;
    margin-top: 3px;
    display: block;
}

.fdd-teams-stadium-cell,
.fdd-teams-founded-cell {
    color: #4a5568;
    font-weight: 500;
}

/* Footer */
.fdd-teams-footer {
    text-align: center;
    margin-top: 40px;
    color: #a0aec0;
    font-size: 0.9rem;
    padding: 20px;
    border-top: 1px solid #e2e8f0;
}

/* Scrollbar improvements */
.fdd-teams-table-container::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.fdd-teams-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.fdd-teams-table-container::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #e31837, #ff6b6b);
    border-radius: 10px;
}

/* Responsive design for Teams List */
@media (max-width: 1024px) {
    .fdd-teams-wrapper {
        padding: 25px;
    }
    
    .fdd-teams-title {
        font-size: 1.8rem;
    }
    
    .fdd-teams-team-crest {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 768px) {
    .fdd-teams-wrapper {
        padding: 20px;
        border-radius: 16px;
    }
    
    .fdd-teams-title {
        font-size: 1.6rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .fdd-teams-subtitle {
        margin-left: 0;
        margin-top: 5px;
        font-size: 1rem;
    }
    
    .fdd-teams-team-crest {
        width: 40px;
        height: 40px;
    }
    
    .fdd-teams-team-name {
        font-size: 1rem;
    }
    
    .fdd-teams-mobile-hide {
        display: none;
    }
    
    .fdd-teams-table th,
    .fdd-teams-table td {
        padding: 14px 12px;
    }
}

@media (max-width: 576px) {
    .fdd-teams-wrapper {
        padding: 15px;
        margin: 20px auto;
    }
    
    .fdd-teams-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .fdd-teams-team-link {
        gap: 10px;
    }
    
    .fdd-teams-team-crest {
        width: 35px;
        height: 35px;
    }
    
    .fdd-teams-team-name {
        font-size: 0.95rem;
    }
    
    .fdd-teams-team-stadium {
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {
    .fdd-teams-team-crest {
        width: 30px;
        height: 30px;
    }
    
    .fdd-teams-team-name {
        font-size: 0.9rem;
    }
    
    .fdd-teams-team-stadium {
        font-size: 0.75rem;
    }
}