
/* 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-tile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.wcrb-tile.marked .wcrb-tile-overlay {
    display: flex;
}

.wcrb-x-mark {
    font-size: 4em;
    font-weight: bold;
    color: #ff0000;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: markAppear 0.3s ease-out;
}

@keyframes markAppear {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

.wcrb-tile-hover-card {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 2px solid #007cba;
    border-radius: 8px;
    padding: 15px;
    min-width: 250px;
    max-width: 350px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.wcrb-hover-content h4 {
    margin: 0 0 10px 0;
    color: #007cba;
    font-size: 1.1em;
}

.wcrb-tile-description {
    margin: 0 0 15px 0;
    color: #555;
    line-height: 1.4;
    font-size: 0.9em;
}

.wcrb-progress-section h5 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 0.95em;
}

.wcrb-progress-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wcrb-progress-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85em;
}

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

.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;
}

/* 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-tile-hover-card {
        min-width: 200px;
        max-width: 280px;
        padding: 12px;
    }
    
    .wcrb-x-mark {
        font-size: 3em;
    }
}

@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-x-mark {
        font-size: 2.5em;
    }
}

/* Print styles */
@media print {
    .wcrb-controls {
        display: none;
    }
    
    .wcrb-tile-hover-card {
        display: none !important;
    }
    
    .wcrb-bingo-container {
        max-width: none;
    }
}
