/* Sports Data Fetcher - Frontend Styles */

/* Grid Layout */
.sdf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

/* List Layout */
.sdf-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 0;
}

/* Team Cards */
.sdf-team-card {
    background: #fff;
    border: 3px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sdf-team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.sdf-team-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sdf-team-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sdf-team-info h3 {
    margin: 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.sdf-team-location {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.sdf-team-abbr {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    margin-top: 5px;
}

/* Player Cards */
.sdf-player-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.sdf-player-card h4 {
    margin: 0;
    font-size: 15px;
    color: #333;
}

.sdf-player-position {
    background: #007bff;
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.sdf-player-team {
    background: #28a745;
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Standings Table */
.sdf-standings {
    overflow-x: auto;
    margin: 20px 0;
}

.sdf-standings-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sdf-standings-table thead {
    background: #2c3e50;
    color: #fff;
}

.sdf-standings-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

.sdf-standings-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.sdf-standings-table tbody tr:hover {
    background: #f8f9fa;
}

/* Schedule Table */
.sdf-schedule {
    overflow-x: auto;
    margin: 20px 0;
}

.sdf-schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sdf-schedule-table thead {
    background: #34495e;
    color: #fff;
}

.sdf-schedule-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

.sdf-schedule-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.sdf-schedule-table tbody tr:hover {
    background: #f8f9fa;
}

/* Error Messages */
.sdf-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
    margin: 10px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .sdf-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .sdf-standings-table th,
    .sdf-standings-table td,
    .sdf-schedule-table th,
    .sdf-schedule-table td {
        padding: 8px 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .sdf-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
    }
    
    .sdf-team-card {
        padding: 10px;
    }
    
    .sdf-team-logo {
        width: 60px;
        height: 60px;
    }
    
    .sdf-team-info h3 {
        font-size: 14px;
    }
}

/* Admin Styles */
.sdf-admin-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sdf-admin-card h2 {
    margin-top: 0;
    color: #2c3e50;
}

.sdf-shortcode-example {
    background: #f5f5f5;
    border-left: 4px solid #0073aa;
    padding: 10px 15px;
    margin: 10px 0;
    font-family: monospace;
    font-size: 14px;
}