/* Review page styles - Dark Blue Theme */

body {
    font-family: 'Cinzel', serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-attachment: fixed;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.review-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Cinzel', serif;
    color: #e0e0e0;
}

/* Header Section */
.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    color: #f5f5f5;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(74, 144, 226, 0.3);
}

.match-info h1 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #4a90e2;
    font-family: 'Cinzel', serif;
}

.match-details {
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.match-details span {
    background: rgba(74, 144, 226, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    color: #f5f5f5;
    border: 1px solid rgba(74, 144, 226, 0.3);
}

.header-actions .btn-secondary {
    background: rgba(74, 144, 226, 0.2);
    border: 1px solid rgba(74, 144, 226, 0.5);
    color: #4a90e2;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
}

.header-actions .btn-secondary:hover {
    background: rgba(74, 144, 226, 0.3);
    color: #f5f5f5;
}

/* Main Content Layout - 2 Columns */
.main-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.left-column {
    flex: 1;
    min-width: 0; /* Prevent flex item from overflowing */
}

.right-column {
    flex: 0 0 400px; /* Fixed width for right column */
    min-width: 350px;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Control Panel */
.control-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(74, 144, 226, 0.2);
    flex-wrap: wrap;
    gap: 10px;
}

.playback-controls {
    display: flex;
    gap: 8px;
}

.playback-controls button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #4a90e2;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.playback-controls button:hover {
    background: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

.playback-controls button:disabled {
    background: #555;
    color: #888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.speed-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.speed-controls label {
    font-weight: bold;
    margin-right: 5px;
    color: #4a90e2;
    font-family: 'Cinzel', serif;
}

.speed-btn {
    padding: 6px 12px;
    border: 1px solid rgba(74, 144, 226, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-family: 'Cinzel', serif;
}

.speed-btn:hover {
    background: #4a4a4a;
    border-color: #4a90e2;
}

.speed-btn.active {
    background: #4a90e2;
    color: #ffffff;
    border-color: #4a90e2;
    font-weight: bold;
}

.action-info {
    display: flex;
    gap: 15px;
    font-size: 14px;
}

.action-info span {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(74, 144, 226, 0.3);
    font-weight: bold;
}

/* Game Board Container */
.game-board-container {
    display: flex;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(74, 144, 226, 0.2);
}

#game-board {
    border: 2px solid #4a90e2;
    border-radius: 8px;
}

/* Timeline */
.timeline-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(74, 144, 226, 0.2);
    height: fit-content;
}

.timeline-header {
    margin-bottom: 15px;
    font-weight: bold;
    color: #4a90e2;
    font-family: 'Cinzel', serif;
}

.timeline-scrubber {
    position: relative;
}

.timeline-track {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    margin-bottom: 15px;
    border: 1px solid #555;
}

.timeline-progress {
    height: 100%;
    background: #4a90e2;
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
}

.timeline-handle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #4a90e2;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-handle:hover {
    background: #357abd;
}

.timeline-handle:active {
    transform: translateY(-50%) scale(1.2);
}

.timeline-markers {
    margin-top: 10px;
}

.round-marker {
    position: absolute;
    top: 100%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    white-space: nowrap;
    border: 1px solid #555;
}

.round-marker::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
    background: #4a90e2;
}

/* Action Details Panel */
.action-details-panel {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    border: 1px solid #444;
    height: fit-content;
}

.action-details-panel h3 {
    margin: 0 0 15px 0;
    color: #4a90e2;
    font-family: 'Cinzel', serif;
}

#action-details {
    font-size: 14px;
    line-height: 1.6;
}

.action-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
    margin-right: 8px;
}

.action-type.move {
    background: #2e7d32;
    color: white;
}

.action-type.attack {
    background: #d32f2f;
    color: white;
}

.action-type.heal {
    background: #1976d2;
    color: white;
}

.action-type.sacrifice {
    background: #c832c8;
    color: white;
}

.action-type.skip, .action-type.afk {
    background: #616161;
    color: white;
}

/* Loading and Error States */
.loading-screen, .error-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-content, .error-content {
    text-align: center;
    color: #f5f5f5;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #3a3a3a;
    border-top: 4px solid #4a90e2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-primary {
    background: #4a90e2;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #357abd;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .review-container {
        padding: 10px;
    }
    
    .match-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .match-details {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-content {
        flex-direction: column;
    }
    
    .right-column {
        flex: none;
        max-width: none;
        min-width: 0;
    }
    
    .control-panel {
        flex-direction: column;
        gap: 15px;
    }
    
    .playback-controls {
        justify-content: center;
    }
    
    .speed-controls {
        justify-content: center;
    }
    
    .action-info {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .game-board-container {
        padding: 10px;
    }
    
    #game-board canvas {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .match-details {
        flex-direction: column;
        gap: 8px;
    }
    
    .playback-controls button {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .speed-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .action-info {
        flex-direction: column;
        gap: 8px;
    }
}

/* Matches List Styles */
.matches-list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Cinzel', serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
}

.matches-filters {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    border: 1px solid #444;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid #555;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    font-family: 'Cinzel', serif;
}

.search-input::placeholder {
    color: #888;
}

.filter-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #555;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    font-family: 'Cinzel', serif;
}

.matches-table {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #444;
    margin-bottom: 20px;
}

.matches-table th,
.matches-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #444;
}

.matches-table th {
    background: rgba(255, 255, 255, 0.1);
    font-weight: bold;
    color: #4a90e2;
    font-family: 'Cinzel', serif;
}

.matches-table tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

.match-row.selected {
    background: rgba(74, 144, 226, 0.2);
}

.no-matches,
.loading-matches {
    text-align: center;
    padding: 40px;
    color: #888;
    font-style: italic;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid #444;
}

.error-message {
    background: #d32f2f;
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid #444;
}

.pagination-info {
    color: #888;
    font-size: 14px;
}

.pagination-controls {
    display: flex;
    gap: 5px;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid #555;
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
}

.page-btn:hover:not(:disabled) {
    background: #4a90e2;
    border-color: #4a90e2;
}

.page-btn.active {
    background: #4a90e2;
    color: #ffffff;
    border-color: #4a90e2;
}

.page-btn:disabled {
    background: #555;
    color: #888;
    cursor: not-allowed;
    border-color: #666;
}

/* Mobile Responsive for Matches List */
@media (max-width: 768px) {
    .matches-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        min-width: 0;
    }
    
    .matches-table {
        font-size: 14px;
    }
    
    .matches-table th,
    .matches-table td {
        padding: 8px;
    }
    
    .pagination-container {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .matches-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .matches-table thead,
    .matches-table tbody,
    .matches-table th,
    .matches-table td,
    .matches-table tr {
        display: block;
    }
    
    .matches-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .matches-table tr {
        border: 1px solid #444;
        margin-bottom: 10px;
        padding: 10px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .matches-table td {
        border: none;
        position: relative;
        padding-left: 50%;
        padding-bottom: 8px;
        white-space: normal;
    }
    
    .matches-table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
        color: #4a90e2;
    }
} 
