/* WCR Bingo Manager - Frontend Styles */

.wcrb-bingo-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wcrb-bingo-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
}

.wcrb-project-title {
    margin: 0 0 10px 0;
    font-size: 2.5em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.wcrb-project-description {
    margin: 0 0 20px 0;
    font-size: 1.1em;
    opacity: 0.9;
}

.wcrb-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.wcrb-color-picker {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wcrb-color-picker label {
    font-weight: 500;
}

.wcrb-x-color {
    width: 40px;
    height: 40px;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
}

.wcrb-reset-board {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.wcrb-reset-board:hover {
    background: white;
    color: #667eea;
}

.wcrb-bingo-board {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.wcrb-grid-header {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
    margin-bottom: 3px;
}

.wcrb-grid-letter {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    text-align: center;
    font-weight: bold;
    font-size: 2em;
    padding: 15px;
    border-radius: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.wcrb-grid-body {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
}

.wcrb-tile {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
    min-height: 120px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.wcrb-tile:hover {
    border-color: #007cba;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.wcrb-tile-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.wcrb-tile-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 2px solid #dee2e6;
}

.wcrb-tile-title {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.2;
    color: #333;
    font-weight: 600;
}

.wcrb-empty-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    height: 100%;
}

.wcrb-position-number {
    font-size: 2em;
    font-weight: bold;
    opacity: 0.5;
}

.wcrb-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin: 20px 0;
}

/* NEW: Details panel styles */
.wcrb-details-panel {
    margin: 28px auto 0 auto;
    max-width: 800px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.10);
    padding: 24px;
    min-height: 120px;
    transition: box-shadow 0.2s;
    border: 2px solid #e9ecef;
}

.wcrb-details-panel .wcrb-details-header {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 10px;
}

.wcrb-details-panel .wcrb-details-image {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #dee2e6;
    background: #fafbfc;
}

.wcrb-details-panel .wcrb-details-title {
    font-size: 1.6em;
    font-weight: bold;
    margin: 0;
    color: #3b3b3b;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.06);
}

.wcrb-details-panel .wcrb-details-desc {
    margin: 10px 0 18px 0;
    font-size: 1em;
    color: #666;
    line-height: 1.5;
}

.wcrb-details-panel .wcrb-details-progress {
    margin-top: 0;
}

.wcrb-details-panel .wcrb-progress-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.wcrb-details-panel .wcrb-progress-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1em;
}

.wcrb-details-panel .wcrb-progress-checkbox {
    margin: 0;
    cursor: pointer;
}

.wcrb-details-panel .wcrb-details-placeholder {
    color: #bbb;
    font-size: 1.1em;
    text-align: center;
    margin: 22px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wcrb-bingo-container {
        padding: 0 10px;
    }
    .wcrb-project-title {
        font-size: 2em;
    }
    .wcrb-controls {
        flex-direction: column;
        gap: 15px;
    }
    .wcrb-grid-body {
        grid-template-columns: repeat(3, 1fr);
        gap: 2px;
    }
    .wcrb-grid-header {
        grid-template-columns: repeat(3, 1fr);
        gap: 2px;
    }
    .wcrb-grid-letter {
        font-size: 1.5em;
        padding: 10px 5px;
    }
    .wcrb-tile {
        min-height: 100px;
        padding: 8px;
    }
    .wcrb-tile-image {
        width: 60px;
        height: 60px;
    }
    .wcrb-tile-title {
        font-size: 0.8em;
    }
    .wcrb-details-panel {
        padding: 14px;
    }
    .wcrb-details-panel .wcrb-details-header {
        flex-direction: column;
        gap: 8px;
    }
    .wcrb-details-panel .wcrb-details-image {
        width: 60px;
        height: 60px;
    }
    .wcrb-details-panel .wcrb-details-title {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .wcrb-grid-body,
    .wcrb-grid-header {
        grid-template-columns: repeat(2, 1fr);
    }
    .wcrb-tile {
        min-height: 80px;
        padding: 5px;
    }
    .wcrb-tile-image {
        width: 50px;
        height: 50px;
    }
    .wcrb-tile-title {
        font-size: 0.75em;
    }
    .wcrb-details-panel {
        padding: 8px;
    }
    .wcrb-details-panel .wcrb-details-image {
        width: 40px;
        height: 40px;
    }
    .wcrb-details-panel .wcrb-details-title {
        font-size: 0.95em;
    }
}

@media print {
    .wcrb-controls {
        display: none;
    }
    .wcrb-details-panel {
        display: none !important;
    }
    .wcrb-bingo-container {
        max-width: none;
    }
}
