/* Matches Page Styles */

.matches-page {
    padding: 40px 0;
}

.matches-page h1 {
    margin-bottom: 30px;
    color: #2c5f2d;
    font-size: 2.5em;
    /* ensure title isn't flush to the very edge in some layouts */
    padding-left: 1rem;
}

.date-section {
    margin-bottom: 50px;
}

.date-header {
    color: #2c5f2d;
    font-size: 1.8em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #2c5f2d;
    padding-left: 1rem;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 20px;
}

/* match-card visuals are now in css/result-cards.css */

/* Stripe positioning handled in css/result-cards.css */

/* Instagram placeholder */
.insta-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}
.insta-placeholder .load-insta {
    padding: 8px 14px;
    border-radius: 6px;
    border: none;
    background: #2c5f2d;
    color: white;
    cursor: pointer;
}

.match-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.match-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.match-id {
    color: #666;
    font-size: 0.9em;
    font-weight: 500;
}

.match-rounds {
    color: #666;
    font-size: 0.9em;
    background: #f5f5f5;
    padding: 5px 12px;
    border-radius: 5px;
}

.match-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 20px;
}

.player {
    flex: 1;
    text-align: center;
}

.player {
    font-weight: bold;
}

.result-icon {
    display: block;
    font-size: 2em;
    margin-bottom: 10px;
}

.player-name {
    display: block;
    font-size: 1.3em;
    color: #2c5f2d;
    text-decoration: none;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.player-name:hover {
    color: #4a8c4b;
    text-decoration: underline;
}

.result-label {
    display: block;
    font-size: 0.85em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vs-divider {
    font-weight: bold;
    font-size: 1.2em;
    color: #999;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.vs-divider .score {
    font-size: 2em;
    font-weight: bold;
    color: #2c5f2d;
    line-height: 1;
}

.vs-divider .vs-text {
    font-size: 0.9em;
    color: #999;
    letter-spacing: 2px;
}

.arm-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.85em;
    font-weight: bold;
}

.arm-badge.left {
    background: #336934;
    color: white;
}

.arm-badge.right {
    background: #161b64;
    color: white;
}

.match-video {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.match-video .instagram-media {
    margin: 0 auto !important;
    max-width: 540px !important;
}

.round-details {
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.round-details summary {
    cursor: pointer;
    color: #2c5f2d;
    font-weight: 500;
    padding: 5px 0;
    user-select: none;
}

.round-details summary:hover {
    color: #4a8c4b;
}

.rounds-list {
    margin-top: 15px;
}

.round-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 15px;
    align-items: center;
    padding: 10px 15px;
    background: #f9f9f9;
    border-radius: 5px;
    margin-bottom: 8px;
}

.round-label {
    font-weight: 500;
    color: #333;
    min-width: 80px;
}

.round-winner {
    color: #333;
    font-size: 0.95em;
}

.round-winner strong {
    color: #2c5f2d;
}

.round-ratings {
    color: #666;
    font-size: 0.9em;
    white-space: nowrap;
}

.rating-change {
    color: #2c5f2d;
    font-weight: bold;
    font-size: 0.9em;
    white-space: nowrap;
}

.no-data {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.no-data p {
    color: #666;
    font-size: 1.1em;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .matches-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {    
    .match-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .round-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .round-label {
        font-weight: bold;
    }
}
