/**
 * Public-facing CSS for AI Match Predictor Plugin
 * This is the full and complete stylesheet for all features.
 */

/* --- Prediction Feed Grid & Card Styles --- */
.amp-prediction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.amp-prediction-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.amp-hot-banner {
    position: absolute;
    top: 10px;
    right: -30px;
    background-color: #dc3545;
    color: white;
    padding: 4px 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.amp-card-header { text-align: center; color: #555; font-size: 14px; }
.amp-card-league { display: block; }

.amp-card-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}
.amp-team { display: flex; align-items: center; gap: 10px; width: 45%; }
.amp-team-home { justify-content: flex-end; }
.amp-team-away { justify-content: flex-start; }
.amp-team-name { font-weight: 600; font-size: 16px; }
.amp-team-logo { height: 30px; width: 30px; object-fit: contain; }
.amp-team-separator { font-weight: 700; color: #777; }

.amp-card-prediction {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}
.amp-prediction-title { display: block; font-size: 13px; color: #777; }
.amp-prediction-text {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #1a0a3c;
    margin: 5px 0;
    text-transform: capitalize;
}
.amp-prediction-detail-link { font-size: 14px; text-decoration: none; color: #0d6efd; font-weight: 600; }
.amp-prediction-detail-link:hover { text-decoration: underline; }

.amp-card-cta-button {
    background-color: #ffc107;
    color: #1a0a3c;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px solid #ffac07;
    transition: all 0.2s ease-in-out;
}
.amp-card-cta-button:hover { transform: translateY(-2px); box-shadow: 0 8px 15px rgba(255, 193, 7, 0.3); }
.amp-card-cta-button .amp-cta-logo { height: 20px; }

.amp-card-offer { text-align: center; font-size: 13px; color: #555; }
.amp-offer-flag { margin-right: 5px; }


/* --- Odds Table Styles --- */
.amp-odds-table-container { margin: 40px 0; }
.amp-odds-table {
    width: 100%; border-collapse: collapse; text-align: center;
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.amp-odds-table th {
    background-color: #1a0a3c; color: #ffffff; padding: 18px 15px;
    font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
    white-space: nowrap;
}
.amp-odds-table td { padding: 15px; background-color: #ffffff; color: #333; font-weight: 500; }
.amp-odds-table tbody tr { border-bottom: 1px solid #e9ecef; }
.amp-odds-table tbody tr:last-child { border-bottom: none; }
.amp-odds-table .amp-bookmaker-cell { font-weight: 700; color: #1a0a3c; white-space: nowrap; }
.amp-odds-table .amp-odds-button {
    background-color: #ff00f7; color: #ffffff; padding: 10px 20px;
    border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 16px;
    display: inline-block; border: none;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.amp-odds-table .amp-odds-button:hover {
    transform: translateY(-2px); box-shadow: 0 8px 15px rgba(255, 0, 247, 0.3); color: #ffffff;
}


/* --- League Table Styles --- */
.amp-league-table-container { margin: 40px 0; }
.amp-league-table {
    width: 100%; border-collapse: collapse; text-align: center;
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
}
.amp-league-table th {
    background-color: #1a0a3c; color: #ffffff; padding: 15px 10px;
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    white-space: nowrap;
}
.amp-league-table td { padding: 12px 10px; background-color: #ffffff; }
.amp-league-table tbody tr { border-bottom: 1px solid #f1f1f1; }
.amp-league-table tbody tr:last-child { border-bottom: none; }
.amp-league-table .team-name { text-align: left; font-weight: 600; white-space: nowrap; }
.amp-league-table .points { font-weight: 700; }
.amp-league-table .amp-highlight-team td {
    background-color: #f0e6ff;
}


/* --- H2H Table Styles --- */
.amp-h2h-table-container { margin: 40px 0; }
.amp-table-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a0a3c;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f1f1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.amp-h2h-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.amp-h2h-table th {
    background-color: #f8f9fa;
    color: #555;
    padding: 12px 10px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 2px solid #e9ecef;
    white-space: nowrap;
}
.amp-h2h-table td { padding: 15px 10px; background-color: #ffffff; }
.amp-h2h-table tbody tr { border-bottom: 1px solid #f1f1f1; }
.amp-h2h-table tbody tr:last-child { border-bottom: none; }
.amp-h2h-table .score { font-weight: 700; color: #1a0a3c; }
.amp-h2h-table .winner { font-weight: 700; }


/* --- Final Prediction Highlight Box --- */
.amp-final-prediction {
    background-color: #1a0a3c;
    color: #ffffff;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    line-height: 1.6;
    box-shadow: 0 8px 20px rgba(26, 10, 60, 0.4);
}
.amp-final-prediction p {
    margin: 0;
    padding: 0;
}


/* --- No Odds Message --- */
.amp-no-odds-message {
    padding: 20px; background-color: #f1f1f1; border: 1px solid #dddddd;
    border-radius: 8px; text-align: center; color: #555; margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}


/* --- Responsive Fix for Mobile --- */
@media (max-width: 768px) {
    .amp-odds-table-container,
    .amp-league-table-container,
    .amp-h2h-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
    }

    .amp-odds-table,
    .amp-league-table,
    .amp-h2h-table {
        min-width: 550px;
    }
}