/* CM Sporty Responsive Styles */

/* Team Match Display */
.cm-sporty-match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 15px 0;
    font-size: 1.2em;
    font-weight: bold;
}

.cm-sporty-team {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 120px;
}

.cm-sporty-team-home {
    justify-content: flex-start;
}

.cm-sporty-team-away {
    justify-content: flex-end;
}

.cm-sporty-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
    min-width: 40px;
    font-size: 0.9em;
}

.team-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
   
}

.team-name {
    font-weight: 600;
    color: #333;
}

/* Trader Grid Responsive */
.cm-sporty-trader-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.cm-sporty-trader-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cm-sporty-trader-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.cm-sporty-trader-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.cm-sporty-trader-header small {
    color: #666;
    font-size: 0.85em;
    line-height: 1.3;
}

.cm-sporty-trader-hot {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.cm-sporty-trader-body {
    margin: 15px 0;
}

.cm-sporty-trader-title {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.cm-sporty-trader-details {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.cm-sporty-trader-btn {
    display: inline-block;
    background: linear-gradient(45deg, #ff9d00, #ff9d00);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

.cm-sporty-trader-btn:hover {
    background: linear-gradient(45deg, #2980b9, #3498db);
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

.cm-sporty-trader-footer {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.cm-sporty-trader-bonus {
    background: #e8f5e8;
    color: #27ae60;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: bold;
}

.cm-sporty-trader-exclusive {
    color: #7f8c8d;
    font-size: 0.85em;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cm-sporty-trader-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cm-sporty-match-teams {
        flex-direction: row; /* Keep horizontal layout */
        text-align: center;
        gap: 5px;
       
        align-items: center;
        justify-content: space-between;
    }
    
    .cm-sporty-team {
        justify-content: center;
        min-width: auto;
        flex: 1;
        max-width: 40%; /* Limit width to prevent overflow */
    }
    
    .cm-sporty-team-home {
        justify-content: flex-start;
    }
    
    .cm-sporty-team-away {
        justify-content: flex-end;
    }
    
    .cm-sporty-vs {
        flex: 0 0 auto; /* Don't grow or shrink */
        margin: 0 5px;
        font-size: 0.8em;
    }
    
    .team-logo {
        width: 100px;
        height: 100px;
    }
    
    .team-name {
        font-size: 0.9em; /* Slightly smaller text on mobile */
        white-space: nowrap; /* Prevent text wrapping */
        overflow: hidden;
        text-overflow: ellipsis; /* Add ... if text is too long */
    }
    
    .cm-sporty-trader-card {
        padding: 15px;
    }
    
    .cm-sporty-trader-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .cm-sporty-trader-footer {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .cm-sporty-trader-btn {
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .cm-sporty-match-teams {
        font-size: 0.95em;
        gap: 3px; /* Reduce gap further on small screens */
    }
    
    .team-logo {
        width: 100px;
        height: 100px;
    }
    
    .team-name {
        font-size: 0.85em; /* Even smaller text on very small screens */
    }
    
    .cm-sporty-vs {
        font-size: 0.7em;
        margin: 0 3px;
    }
    
    .cm-sporty-trader-card {
        padding: 12px;
        margin: 10px 0;
    }
    
    .cm-sporty-trader-title {
        font-size: 1em;
    }
    
    .cm-sporty-trader-btn {
        padding: 12px 16px;
        font-size: 0.9em;
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .cm-sporty-trader-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cm-sporty-match-teams {
        font-size: 1.1em;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .cm-sporty-trader-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Print styles */
@media print {
    .cm-sporty-trader-btn {
        display: none;
    }
    
    .cm-sporty-trader-hot {
        background: #333 !important;
        color: white !important;
    }
    
    .cm-sporty-trader-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
