/**
 * Golf Map Overlay Styles
 * CSS for golf course map overlay controls and UI elements
 */

/* === OVERLAY CONTROLS === */
.golf-overlay-controls {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.golf-circular-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
}

.golf-circular-button:hover {
    transform: scale(1.1);
}

.golf-circular-button.active {
    border: 3px solid #27ae60;
}

.golf-circular-button--settings {
    background: #2c3e50;
}

.golf-circular-button--scorecard {
    background: #34495e;
}

.golf-circular-button--gps {
    background: #34495e;
}

.golf-circular-button--notes {
    background: #9b59b6;
}

.golf-circular-button--aim {
    background: #27ae60;
}

.golf-button-icon {
    color: white;
    filter: opacity(0.7);
    transition: filter 0.3s ease;
}

.golf-button-icon.active {
    filter: none;
}

/* === 3D TOGGLE BUTTON === */
.golf-3d-toggle {
    position: absolute;
    left: 10px;
    bottom: 220px;
    width: 50px;
    height: 50px;
    background: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
}

.golf-3d-toggle.mode-3d {
    background: #27ae60;
    box-shadow: 0 2px 10px rgba(39, 174, 96, 0.3);
}

.golf-3d-toggle.mode-2d {
    background: #3498db;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.golf-3d-toggle.unavailable {
    background: #e74c3c;
}

/* === SCORE ENTRY CONTAINER === */
.golf-score-container {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 30px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 1001;
}

.golf-score-button {
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: bold;
    cursor: pointer;
}

.golf-add-player-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    flex-shrink: 0;
    flex-grow: 0;
}

/* === HOLE INFO === */
.golf-hole-info {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #27ae60;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
}

.golf-hole-nav-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.golf-hole-text {
    font-weight: bold;
    font-size: 18px;
}

.golf-hole-details {
    display: flex;
    gap: 15px;
    margin-left: 20px;
}

/* === DISTANCE DISPLAY === */
.golf-distance-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 24px;
    pointer-events: none;
    z-index: 999;
}

/* === INFO PANEL === */
.golf-info-panel {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    z-index: 1000;
}

.golf-view-score-btn {
    position: absolute;
    right: 10px;
    bottom: 220px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1000;
}

/* === GPS FEEDBACK === */
.golf-gps-feedback {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    z-index: 1001;
    transition: opacity 0.3s ease;
}

.golf-gps-feedback.success {
    background: #27ae60;
    color: white;
}

.golf-gps-feedback.error {
    background: #e74c3c;
    color: white;
}

/* === MODAL OVERLAYS === */
.golf-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.golf-modal {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.golf-modal--score-input {
    width: 300px;
    max-width: 90%;
}

.golf-modal--settings {
    width: 350px;
    max-width: 90%;
}

.golf-modal--scorecard {
    width: 400px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.golf-modal-title {
    margin: 0 0 20px 0;
    text-align: center;
    color: #333;
    font-size: 20px;
}

.golf-modal-title--settings {
    margin-bottom: 25px;
}

/* === FORM ELEMENTS === */
.golf-score-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 18px;
    text-align: center;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.golf-button-container {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.golf-modal-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.golf-modal-btn--cancel {
    background: #95a5a6;
    color: white;
}

.golf-modal-btn--save {
    background: #27ae60;
    color: white;
}

.golf-modal-btn--close {
    width: 100%;
    background: #3498db;
    color: white;
}

/* === SETTINGS === */
.golf-settings-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.golf-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.golf-setting-label {
    font-weight: 500;
    color: #333;
}

.golf-setting-toggle {
    transform: scale(1.2);
}

/* === SCORECARD TABLE === */
.golf-scorecard-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
}

.golf-scorecard-table th,
.golf-scorecard-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.golf-scorecard-table th {
    background: #f5f5f5;
}

/* === TOUCH EVENTS === */
.golf-touch-handler {
    /* Class for elements that need touch event handling */
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .golf-circular-button {
        width: 45px;
        height: 45px;
    }

    .golf-3d-toggle {
        width: 45px;
        height: 45px;
        font-size: 12px;
    }

    .golf-modal {
        padding: 20px;
        margin: 10px;
    }
}