/* ==== CỜ VÂY (GO) CSS ==== */

/* Dropdown styling (Mirroring ganh-dropdown) */
.go-dropdown {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(30, 41, 59, 0.7);
    color: var(--text, #fff);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%2394a3b8" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: all 0.2s ease;
}

.go-dropdown:hover {
    border-color: rgba(99, 102, 241, 0.5);
    background-color: rgba(30, 41, 59, 0.85);
}

.go-dropdown:focus {
    outline: none;
    border-color: var(--accent, #6366f1);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.go-dropdown option { 
    background-color: #1e293b;
    color: #fff;
    padding: 10px;
}

/* Container & Header */
.go-container {
    max-width: 600px;
    margin: 20px auto 20px auto; /* Kéo lên bằng với nav-top-left */
    padding: 0 15px;
    position: relative;
    z-index: 10;
}

.go-header {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 15px; /* Thu nhỏ padding header */
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}

/* Player Info */
.player-info {
    display: flex;
    justify-content: center; /* Đưa ra giữa */
    gap: 15px;
    margin-bottom: 15px; /* Giảm margin */
    background: transparent; /* Bỏ background */
    padding: 8px; /* Giảm padding */
    border-radius: 12px;
}
.go-player-card {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #94a3b8;
    transition: all 0.3s ease;
    opacity: 0.5;
    background: transparent;
    border: none;
}
.go-player-card.active {
    opacity: 1;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.4);
    background: transparent;
    border: none;
    box-shadow: none;
}
.stone-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.stone-icon.black { background: #222; border: 1px solid #111; }
.stone-icon.white { background: #eee; border: 1px solid #ccc; }
.prisoners-count { font-size: 12px; font-weight: normal; color: #f87171; }

/* Board Wrapper */
.board-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px 0;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.5s ease;
}

/* Đảm bảo Canvas thu nhỏ trên màn hình bé */
#goCanvas {
    max-width: 100%;
    height: auto;
}

/* THEME SPECIFIC STYLES */
/* NEON THEME (Default) */
body.theme-neon .board-wrapper {
    background: #0f172a;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
    border: 2px solid rgba(56, 189, 248, 0.5);
}
/* FOLK THEME */
body.theme-folk .board-wrapper {
    background: #e3a869; /* Màu gỗ sáng cho bàn cờ */
    box-shadow: 5px 5px 15px rgba(0,0,0,0.5);
    border: 2px solid #8b5a2b;
}

/* Controls & Buttons */
.go-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.go-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    font-family: inherit;
}

.go-btn.secondary {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255,255,255,0.1);
}

.go-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.go-btn.primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.go-btn.primary:hover {
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
    transform: translateY(-2px);
}

/* Controls */
.go-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px; /* Giảm khoảng cách */
}

/* Status Text */
.go-status {
    text-align: center;
    font-size: 14px;
    color: #f1c40f;
    font-weight: 600;
    margin-bottom: 10px;
}
