/* Root Styles - Common elements across all games */

/* Base body styles - will be overridden by game-specific themes */
body {
    margin: 0;
    padding: 50px 30px 30px 30px;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* Debug Details Panel - Common structure */
.debug-details {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: transparent;
    min-width: 250px;
}

.debug-details[open] {
    opacity: 0.35;
    transition: opacity 0.3s ease;
}

.debug-details[open]:hover {
    opacity: 1.0;
}

/* Debug Summary - Common structure */
.debug-summary {
    background: transparent;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: bold;
    border: none;
    border-radius: 0;
    opacity: 1 !important;
    font-size: 1.6rem;
    list-style: none;
    text-align: right;
}

.debug-summary::-webkit-details-marker {
    display: none;
}

.debug-summary:hover {
    background: transparent;
}

/* Debug Table Container */
.debug-table-container {
    background: black;
    border-radius: 20px;
    padding: 20px;
    margin: 10px 0;
    max-height: 40vh;
    overflow-y: auto;
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

/* Debug Content */
.debug-content {
    padding: 12px;
    color: white;
    font-family: Arial, sans-serif;
}

/* Target Words Table - Common structure */
.target-words-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 12px;
    font-family: Arial, sans-serif;
}

.target-words-table th,
.target-words-table td {
    padding: 4px 8px;
    border: 1px solid;
    text-align: left;
    transition: all 0.3s ease;
}

.target-words-table th {
    font-weight: bold;
}

.target-words-table .matched {
    text-align: center;
    font-size: 16px;
}

.target-words-table .active-word {
    font-weight: bold;
    transform: scale(1.02);
}

/* Removed .match-found styling - no longer highlights matched rows in green */

/* Debug Controls */
.debug-controls {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    margin: 10px 0;
    flex-wrap: wrap;
}

/* Timestamp Display */
.timestamp-display {
    background: rgba(255, 255, 255, 0.9);
    color: black;
    font-size: 12pt;
    font-family: 'Courier New', monospace;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Debug Buttons */
.debug-button {
    background: rgba(37, 99, 235, 0.9);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    min-width: 40px;
}

.debug-button:hover {
    background: rgba(37, 99, 235, 1);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.debug-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Sentence Display - Common structure */
.sentence-display {
    line-height: 1.4;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
    word-wrap: break-word;
    word-break: normal;
    overflow-wrap: break-word;
    white-space: normal;
}

/* Lyrics Container - Common structure */
.lyrics-container {
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
    width: 80%;
}

/* Media Controls - Common structure */
.media-controls {
    background: transparent;
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

/* Control Buttons - Common structure */
.control-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.control-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.control-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Microphone Modal - Common structure */
.microphone-modal {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    z-index: 1001;
    min-width: 250px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.microphone-modal.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

.microphone-modal h3 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
}

.microphone-modal p {
    margin: 10px 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.modal-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    margin: 10px 5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.modal-button.deny {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .control-button {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }
    
    .sentence-display {
        font-size: 1.4rem;
    }
    
    .debug-details {
        min-width: 200px;
        right: 10px;
        top: 10px;
    }
}