/* Matches Page Styles */

.matches-page {
    padding: 40px 0;
}

.date-section {
    margin-bottom: 50px;
}

.date-header {
    color: #2c5f2d;
    font-size: 1.8em;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 3px solid #2c5f2d;
    padding-left: 1rem;
}

/* Shared match history table styles */
.match-history-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-size: 1em;
}

.match-history-table th,
.match-history-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}

.match-history-table th {
    background: #f0f0f0;
    font-weight: 600;
    color: #2c5f2d;
    text-transform: uppercase;
    font-size: 0.95em;
}

.match-history-table tr:last-child td {
    border-bottom: none;
}

.match-history-table .positive { color: #2c5f2d; }
.match-history-table .negative { color: #d32f2f; }

.match-player-link {
    color: #2c5f2d;
    font-weight: 600;
    text-decoration: none;
}

.match-player-link:hover {
    text-decoration: underline;
}

.match-details-row td {
    background: #f9f9f9;
    padding: 24px;
}

.details-toggle-btn {
    background: #e8f5e9;
    color: #2c5f2d;
    border: none;
    border-radius: 4px;
    padding: 8px 18px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease;
}

.details-toggle-btn:hover {
    background: #c8e6c9;
}

.match-details-content {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.match-video {
    min-width: 260px;
}

.match-video blockquote {
    margin: 0 auto !important;
    max-width: 540px !important;
}

.match-video.no-video {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    border: 1px dashed #c5c5c5;
}

.match-video.no-video p {
    margin-bottom: 12px;
    color: #555;
}

.match-video .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 6px;
    border: none;
    background: #2c5f2d;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 12px;
}

.match-video form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.match-video form input[type="url"] {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.video-form-actions {
    display: flex;
    gap: 10px;
}

.video-form-actions .btn.submit {
    background: #2c5f2d;
}

.video-form-actions .btn.cancel {
    background: #6c757d;
}

.match-details-table-wrapper {
    flex: 2 1 400px;
    min-width: 320px;
}

.match-details-table {
    margin: 0;
    box-shadow: none;
    background: transparent;
}

.match-details-table th {
    background: transparent;
    color: #444;
}

.match-details-table tr:last-child td {
    border-bottom: none;
}

.match-details-table .rating-change {
    font-weight: 600;
}

.match-summary {
    margin-top: 12px;
    font-size: 0.95em;
    color: #555;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rating-change {
    font-weight: 600;
}

.rating-change.positive { color: #2c5f2d; }
.rating-change.negative { color: #d32f2f; }

.no-data {
    text-align: center;
    padding: 60px;
    background: #fff;
    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: 900px) {
    .match-details-content {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .match-history-table th,
    .match-history-table td {
        padding: 10px;
    }

    .details-toggle-btn {
        width: 100%;
    }
}
