/* ===== Family Game - Buttons ===== */

/* Exit buttons */
.fg-exit-btn,
.bowling-exit-btn,
.yut-exit-btn {
    padding: 8px 20px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.fg-exit-btn:hover,
.bowling-exit-btn:hover,
.yut-exit-btn:hover {
    background: linear-gradient(180deg, rgba(255, 107, 107, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%);
    border-color: #ff6b6b;
}

.fg-exit-btn:active,
.bowling-exit-btn:active,
.yut-exit-btn:active {
    transform: scale(0.95);
}

/* Sound toggle buttons */
.bowling-sound-btn,
.yut-sound-btn {
    padding: 8px 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
    min-width: 48px;
    transition: all 0.2s;
}

.bowling-sound-btn:hover,
.yut-sound-btn:hover {
    background: #45a049;
    transform: scale(1.05);
}

.bowling-sound-btn:active,
.yut-sound-btn:active {
    transform: scale(0.95);
}

/* Primary action buttons */
.fg-join-btn {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.fg-join-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.fg-join-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Secondary action buttons */
.fg-create-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    background: white;
    border: 2px solid #667eea;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.fg-create-btn:hover {
    background: #667eea;
    color: white;
}

/* PWA install button */
.fg-install-btn {
    display: none; /* 기본 숨김 */
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 12px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.fg-install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.fg-install-btn:active {
    transform: translateY(0);
}

.fg-install-btn.show {
    display: block;
}

/* Item button (bowling player) */
.item-button {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

.item-button:active {
    transform: scale(0.95);
}

.item-button:disabled {
    background: linear-gradient(135deg, #666 0%, #555 100%);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.7;
}

.item-button.active {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.4);
    animation: item-pulse 1s ease-in-out infinite;
}

/* Generic button gradient styles */
.btn-gradient-primary {
    background: linear-gradient(145deg, #667eea, #764ba2);
}

.btn-gradient-success {
    background: linear-gradient(145deg, #4CAF50, #2E7D32);
}

.btn-gradient-danger {
    background: linear-gradient(145deg, #e74c3c, #c0392b);
}

.btn-gradient-warning {
    background: linear-gradient(145deg, #ffd700, #ff9f00);
}
