/* lets_split.css — Böl Bakalım (Shape Division Game) Styles */

/* ===== Layout & Container ===== */
.bol-game-layout {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0.5rem 0.75rem 1rem;
    box-sizing: border-box;
    gap: 0.5rem;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
}

/* ===== Top Bar ===== */
.bol-top-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    width: 100%;
    flex-shrink: 0;
}

.bol-title {
    color: var(--accent-color, #00d2ff);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 0 12px rgba(0, 210, 255, 0.3);
}

.bol-round-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bol-round-label {
    color: var(--text-secondary, #8da4be);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.bol-round-val {
    color: var(--text-primary, #ffffff);
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--surface-color, #0a0e17);
    border: 1px solid var(--surface-border, #132238);
    border-radius: 8px;
    padding: 0.25rem 0.75rem;
}

/* ===== Mode & Difficulty Bars ===== */
.bol-mode-bar,
.bol-difficulty-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
    flex-shrink: 0;
}

.bol-mode-btn,
.bol-diff-btn {
    padding: 0.4rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--surface-border, #132238);
    background: var(--surface-color, #0a0e17);
    color: var(--text-secondary, #8da4be);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bol-mode-btn:hover,
.bol-diff-btn:hover {
    border-color: var(--accent-color, #00d2ff);
    color: var(--accent-color, #00d2ff);
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.15);
}

.bol-mode-btn.active,
.bol-diff-btn.active {
    background: rgba(0, 210, 255, 0.1);
    border-color: var(--accent-color, #00d2ff);
    color: var(--accent-color, #00d2ff);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

.bol-diff-label {
    color: var(--text-secondary, #8da4be);
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.25rem;
}

/* ===== Scoreboard ===== */
.bol-scoreboard {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 700px;
    justify-content: center;
    flex-shrink: 0;
}

.bol-player-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface-color, #0a0e17);
    border: 1px solid var(--surface-border, #132238);
    border-radius: 10px;
    padding: 0.4rem 0.9rem;
    min-width: 150px;
    transition: all 0.3s ease;
}

.bol-player-card.winner-highlight {
    border-color: var(--accent-color, #00d2ff);
}

.bol-player-avatar {
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 210, 255, 0.08);
    border-radius: 50%;
}

.bol-player-name {
    color: var(--text-primary, #ffffff);
    font-size: 0.875rem;
    font-weight: 600;
}

.bol-player-score {
    color: var(--accent-color, #00d2ff);
    font-size: 1.4rem;
    font-weight: 800;
    margin-left: auto;
    min-width: 28px;
    text-align: center;
}

.bol-score-divider {
    display: flex;
    align-items: center;
}

.bol-vs {
    color: var(--text-secondary, #8da4be);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* ===== Boards Container ===== */
.bol-boards-container {
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    width: 100%;
    justify-content: center;
    align-items: flex-start;
    flex: 1 1 auto;
    min-height: 0;
}

.bol-board-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    max-width: 520px;
    min-width: 200px;
    transition: box-shadow 0.5s ease;
}

.bol-board-wrapper.winner-glow {
    /* glow only on canvas, not the wrapper */
}

.bol-board-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.bol-board-whose {
    color: var(--text-primary, #ffffff);
    font-size: 0.9rem;
    font-weight: 700;
}

.bol-board-hint {
    color: var(--text-secondary, #8da4be);
    font-size: 0.7rem;
    font-weight: 400;
}

/* ===== Canvas Container ===== */
.bol-canvas-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: calc(100vh - 320px);
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid var(--surface-border, #132238);
    background: rgba(10, 14, 23, 0.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.bol-board-wrapper.winner-glow .bol-canvas-wrap {
    border-color: rgba(0, 210, 255, 0.7);
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.5), 0 4px 20px rgba(0, 0, 0, 0.4);
}

.bol-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    touch-action: none;
}

.bol-canvas.dragging {
    cursor: grabbing;
}

/* ===== Floating Next Round Button ===== */
.bol-next-round-btn {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    padding: 0.7rem 2rem;
    border-radius: 30px;
    border: 2px solid var(--accent-color, #00d2ff);
    background: rgba(0, 210, 255, 0.15);
    color: var(--accent-color, #00d2ff);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4), 0 0 40px rgba(0, 210, 255, 0.15);
    animation: btnPulse 1.5s ease-in-out infinite;
    transition: all 0.2s ease;
}

.bol-next-round-btn:hover {
    background: rgba(0, 210, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.6), 0 0 60px rgba(0, 210, 255, 0.25);
    transform: translateX(-50%) scale(1.05);
}

@keyframes btnPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 210, 255, 0.4), 0 0 40px rgba(0, 210, 255, 0.15);
    }

    50% {
        box-shadow: 0 0 30px rgba(0, 210, 255, 0.6), 0 0 55px rgba(0, 210, 255, 0.25);
    }
}

/* ===== Percentage Display (hidden during play, shown on canvas during round end) ===== */
.bol-board-pct {
    display: none;
}

/* ===== Buttons ===== */
.bol-action-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--surface-border, #132238);
    background: var(--surface-color, #0a0e17);
    color: var(--text-secondary, #8da4be);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bol-action-btn:hover:not(:disabled) {
    border-color: var(--accent-color, #00d2ff);
    color: var(--accent-color, #00d2ff);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

.bol-action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.bol-action-btn.primary {
    background: rgba(0, 210, 255, 0.1);
    border-color: var(--accent-color, #00d2ff);
    color: var(--accent-color, #00d2ff);
    font-size: 0.9rem;
    padding: 0.6rem 2rem;
}

.bol-action-btn.primary:hover {
    background: rgba(0, 210, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
}

/* ===== Round Result & Game Over ===== */
.bol-game-over {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    z-index: 200;
    backdrop-filter: blur(6px);
}

.bol-game-over-content {
    background: var(--surface-color, #0a0e17);
    border: 1px solid var(--accent-color, #00d2ff);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 210, 255, 0.2);
    max-width: 420px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.bol-game-over-content h2 {
    color: var(--accent-color, #00d2ff);
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}

.bol-game-over-content p {
    color: var(--text-secondary, #8da4be);
    font-size: 0.875rem;
    margin: 0 0 0.5rem;
}

/* ===== Utility Bar (centered below boards) ===== */
.bol-utility-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-shrink: 0;
    order: 10;
    margin-top: 1.25rem;
    padding-bottom: 0.75rem;
}

.bol-util-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--surface-border, #132238);
    background: var(--surface-color, #0a0e17);
    color: var(--text-secondary, #8da4be);
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.bol-util-btn:hover {
    border-color: var(--accent-color, #00d2ff);
    color: var(--accent-color, #00d2ff);
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.15);
}

/* ===== Responsive ===== */
/* Tablet */
@media (max-width: 1200px) {
    .bol-boards-container {
        gap: 2rem;
    }

    .bol-canvas-wrap {
        max-width: calc(100vh - 300px);
    }

    .bol-player-card {
        min-width: 130px;
    }
}

/* Mobil: Dikey (üst üste) */
@media (max-width: 768px) {
    .bol-game-layout {
        padding: 0.4rem 0.4rem 6rem;
        gap: 0.6rem;
    }

    .bol-title {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .bol-top-bar {
        gap: 0.75rem;
    }

    .bol-mode-btn,
    .bol-diff-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }

    .bol-scoreboard {
        margin-bottom: 0.5rem;
    }

    .bol-boards-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        flex: none;
    }

    .bol-board-wrapper {
        max-width: 400px;
        width: 100%;
        min-width: 0;
        padding-top: 0.75rem;
        gap: 0.5rem;
        flex: none;
    }

    .bol-board-header {
        padding-top: 0.25rem;
    }

    .bol-canvas-wrap {
        max-width: calc((100vh - 350px) / 2);
        min-height: 180px;
    }

    .bol-utility-bar {
        gap: 0.3rem;
    }

    .bol-player-card {
        min-width: 100px;
        padding: 0.3rem 0.5rem;
    }

    .bol-player-name {
        font-size: 0.7rem;
    }

    .bol-player-score {
        font-size: 1rem;
    }

    .bol-player-avatar {
        font-size: 1.2rem;
        width: 28px;
        height: 28px;
    }

    .bol-next-round-btn {
        bottom: 16px;
        padding: 0.55rem 1.5rem;
        font-size: 0.85rem;
    }

    .bol-game-over-content {
        padding: 1.5rem;
    }
}

/* Very small screens */
@media (max-width: 380px) {
    .bol-canvas-wrap {
        max-height: calc((100vh - 400px) / 2);
        min-height: 150px;
    }
}

/* Fullscreen mode adjustments */
.bol-game-layout:fullscreen, .bol-game-layout:-webkit-full-screen {
    max-width: 100vw !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 1.5rem !important;
    background: radial-gradient(circle at 50% 0%, #1a2a42, #0a0e17) !important;
    border-radius: 0 !important;
    overflow-y: auto;
}

/* ===== Test Modal ===== */
.bol-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    z-index: 200;
    backdrop-filter: blur(6px);
}

.bol-modal-content {
    background: var(--surface-color, #0a0e17);
    border: 1px solid var(--accent-color, #00d2ff);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 210, 255, 0.2);
    max-width: 650px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-sizing: border-box;
}

.bol-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border-bottom: 1px solid var(--surface-border, #132238);
    padding-bottom: 0.75rem;
}

.bol-modal-header h2 {
    color: var(--accent-color, #00d2ff);
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0;
}

.bol-modal-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary, #8da4be);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    padding: 0;
}

.bol-modal-close-btn:hover {
    color: #ff5e62;
}

.bol-shapes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.75rem;
    overflow-y: auto;
    padding-right: 0.5rem;
    max-height: 55vh;
}

.bol-shape-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--surface-border, #132238);
    border-radius: 8px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bol-shape-card:hover {
    border-color: var(--accent-color, #00d2ff);
    background: rgba(0, 210, 255, 0.04);
    transform: translateY(-2px);
}

.bol-shape-card canvas {
    background: #000;
    border-radius: 4px;
    display: block;
}

.bol-shape-card span {
    color: var(--text-secondary, #8da4be);
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.bol-modal-footer {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid var(--surface-border, #132238);
    padding-top: 0.75rem;
}