@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

body {
    background: #1e1e1e;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    min-height: 100vh;
    margin: 0;
}

/* Splash Screen Styles */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

#splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.logo-container {
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeInLogo 0.8s ease-out forwards;
}

.golf-logo {
    width: 120px;
    height: 120px;
    border: 4px solid #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #28a745 50%, #20c997 100%);
    box-shadow: 0 0 40px rgba(40, 167, 69, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.golf-logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s ease-in-out infinite;
}

.golf-logo-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.golf-ball {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    margin-bottom: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3), inset -2px -2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.golf-ball::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: #ccc;
    border-radius: 50%;
    top: 4px;
    left: 6px;
    box-shadow: 4px 2px 0 #ccc, 2px 6px 0 #ccc, 8px 6px 0 #ccc, 6px 10px 0 #ccc;
}

.golf-club {
    width: 35px;
    height: 2px;
    background: linear-gradient(90deg, #8B4513 0%, #A0522D 50%, #CD853F 100%);
    border-radius: 1px;
    position: relative;
    transform: rotate(-25deg);
    margin-top: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.golf-club::before {
    content: '';
    position: absolute;
    left: -2px;
    top: -1px;
    width: 6px;
    height: 4px;
    background: linear-gradient(45deg, #654321, #8B4513);
    border-radius: 2px;
    box-shadow: inset 0 0 2px rgba(0,0,0,0.3);
}

.golf-club::after {
    content: '';
    position: absolute;
    right: -10px;
    top: -8px;
    width: 16px;
    height: 18px;
    background: linear-gradient(135deg, #E5E5E5 0%, #C0C0C0 30%, #A0A0A0 70%, #808080 100%);
    border-radius: 2px 2px 6px 6px;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.3),
        inset -2px -2px 4px rgba(0,0,0,0.1),
        inset 2px 2px 4px rgba(255,255,255,0.3);
}

.golf-club-face {
    position: absolute;
    right: -7px;
    top: -5px;
    width: 10px;
    height: 12px;
    pointer-events: none;
}

.golf-club-face::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 6px;
    height: 1px;
    background: rgba(0,0,0,0.2);
    box-shadow: 0 2px 0 rgba(0,0,0,0.2), 0 4px 0 rgba(0,0,0,0.2), 0 6px 0 rgba(0,0,0,0.2);
}

.title-container {
    margin-bottom: 80px;
}

.stroker-text {
    font-size: 4rem;
    font-weight: bold;
    color: #28a745;
    text-shadow: 0 0 20px rgba(40, 167, 69, 0.5);
    letter-spacing: 8px;
}

.stroker-char {
    display: inline-block;
    opacity: 0;
    animation: fadeInChar 0.5s ease-in-out forwards;
}

.play-button-container {
    position: absolute;
    bottom: 80px;
    opacity: 0;
    animation: fadeInButton 1s ease-in-out 1.5s forwards;
}

.play-golf-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 15px 40px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.play-golf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    background: linear-gradient(45deg, #20c997, #28a745);
}

.play-golf-btn:active {
    transform: translateY(0);
}

.main-content {
    opacity: 0;
    transition: opacity 1s ease-in;
}

.main-content.show {
    opacity: 1;
}

.navbar {
    background: #2d2d2d !important;
    backdrop-filter: none;
    border: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid #404040;
}

.navbar-brand {
    font-weight: 600 !important;
    font-size: 1.5rem !important;
    color: #ffffff !important;
    letter-spacing: 0px;
}

.navbar label {
    color: #ffffff !important;
}

.form-select {
    background: #3a3a3a;
    border: 1px solid #555555;
    border-radius: 2px;
    backdrop-filter: none;
    font-weight: 400;
    color: #ffffff;
    transition: border-color 0.2s ease;
}

.form-select:focus {
    border-color: #007acc;
    box-shadow: 0 0 0 1px #007acc;
    background: #3a3a3a;
    outline: none;
}

#mainCard {
    background: #2a2a2a;
    backdrop-filter: none;
    border: 1px solid #404040;
    border-radius: 2px;
    padding: 0.5rem !important;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: none;
    position: relative;
}

#mainCard:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.main-card-content {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    min-height: 200px;
}

.left-section {
    flex: 1;
    text-align: left;
    padding: 0.5rem;
    border-right: 2px solid #404040;
    display: flex;
    flex-direction: column;
}

.right-section {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.distance-display {
    font-size: 2.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: 0px;
    text-shadow: none;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

#distance-value {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

#distance-unit {
    font-size: 1.8rem;
    font-weight: 400;
    color: #ffffff;
}

.layup-display {
    font-size: 1.3rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.5rem;
    opacity: 0.8;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

#layup-label {
    font-size: inherit;
    font-weight: 400;
    color: inherit;
}

#layup-value {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

#layup-unit {
    font-size: 1rem;
    font-weight: 400;
    color: inherit;
}

#hole-title {
    font-size: 2.1rem;
    font-weight: 500;
    margin-bottom: -0.3rem;
    color: #ffffff;
    letter-spacing: 0px;
}

#hole-par {
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 0.2rem;
    color: #b0b0b0;
    letter-spacing: 0px;
}

#course-par-info {
    font-size: 0.75rem;
    font-weight: 400;
    color: #808080;
    letter-spacing: 0px;
    background: #333333;
    padding: 3px 8px;
    border-radius: 2px;
    border: 1px solid #404040;
    margin-bottom: 0.5rem;
    align-self: center;
}

#hole-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.2rem;
}

.swipe-hint {
    font-size: 0.75rem;
    color: #808080;
    margin-top: 0.5rem;
    font-weight: 400;
    letter-spacing: 0px;
}

#countdown-box {
    position: absolute;
    top: 15px;
    right: 25px;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    border-radius: 50%;
    padding: 0;
    z-index: 20;
    pointer-events: none;
    transform: translateY(-50%);
}

.countdown-circle {
    width: 24px;
    height: 24px;
    border: 2px solid #404040;
    border-top: 2px solid #007acc;
    border-radius: 50%;
    animation: spinPause 3s linear infinite;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    max-height: 100vh;
    overflow: hidden;
}

.container.text-center {
    position: relative;
    padding: 0 1rem;
}

.obstacle-info {
    position: relative;
    max-height: 120px;
}

.obstacle-scroll-container {
    max-height: 150px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.obstacle-scroll-container::-webkit-scrollbar {
    display: none;
}

.obstacle-scroll-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 14px;
    font-size: 0.6rem;
    color: #808080;
    background: #333333;
    backdrop-filter: none;
    border: 1px solid #404040;
    border-radius: 0px;
    margin-bottom: 2px;
    gap: 3px;
    opacity: 1;
    font-weight: 400;
}

.scroll-arrow {
    font-weight: normal;
    font-size: 0.6rem;
    animation: none;
    color: #808080;
}

.obstacle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.6rem;
    margin-bottom: 2px;
    font-size: 0.85rem;
    border-radius: 4px;
    background: #333333;
    backdrop-filter: none;
    border: 1px solid #404040;
    gap: 0.5rem;
    min-height: 44px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    position: relative;
    overflow: hidden;
}

.obstacle-item:hover {
    background: #4a4a4a;
    transform: scale(1.02);
    border-color: #007acc;
    box-shadow: 0 2px 8px rgba(0, 122, 204, 0.3);
}

.obstacle-name {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.obstacle-distances {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.obstacle-distance-front {
    font-weight: 600;
    color: #ffffff;
    background: #e74c3c;
    font-size: 0.75rem;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 4px;
    border: 2px solid #c0392b;
    min-width: 35px;
    max-width: 45px;
    text-align: center;
}

.obstacle-distance-back {
    font-weight: 600;
    color: #ffffff;
    background: #27ae60;
    font-size: 0.75rem;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 4px;
    border: 2px solid #1e8449;
    min-width: 35px;
    max-width: 45px;
    text-align: center;
}

.obstacle-type-icon {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.obstacle-type-water { background-color: #007bff; }
.obstacle-type-sand { background-color: #ffc107; }
.obstacle-type-trees { background-color: #28a745; }
.obstacle-type-other { background-color: #6c757d; }

#map {
    width: 100%;
    height: calc(100vh - 460px) !important;
    min-height: 120px !important;
    max-height: 600px !important;
    border: 1px solid #404040;
    border-radius: 0px;
    margin-top: 1rem;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

@keyframes shine {
    0% { transform: translateX(-200%) translateY(-200%) rotate(45deg); }
    50% { transform: translateX(200%) translateY(200%) rotate(45deg); }
    100% { transform: translateX(-200%) translateY(-200%) rotate(45deg); }
}

@keyframes fadeInLogo {
    0% { opacity: 0; transform: scale(0.3); }
    60% { opacity: 1; transform: scale(1.2); }
    80% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes fadeInChar {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInButton {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes spinPause {
    0% { transform: rotate(0deg); }
    33.33% { transform: rotate(360deg); }
    33.34% { transform: rotate(360deg); }
    100% { transform: rotate(360deg); }
}

/* Admin page overrides - light theme for admin interface */
.admin-page {
    background: #f8f9fa !important;
}

.admin-page .navbar {
    background: #ffffff !important;
    border-bottom: 1px solid #dee2e6 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.admin-page .navbar-brand {
    color: #212529 !important;
    font-weight: 600 !important;
    font-size: 1.5rem !important;
}

.admin-page .form-select,
.admin-page .form-control {
    background: #ffffff !important;
    border: 1px solid #ced4da !important;
    color: #212529 !important;
    border-radius: 4px !important;
}

.admin-page .form-select:focus,
.admin-page .form-control:focus {
    border-color: #80bdff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

.admin-page .card {
    background: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.admin-page .btn-primary {
    background: #007bff !important;
    border-color: #007bff !important;
}

.admin-page .btn-danger {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
}

.admin-page .btn-success {
    background: #28a745 !important;
    border-color: #28a745 !important;
}

.admin-page .list-group-item {
    background: #ffffff !important;
    border-color: #dee2e6 !important;
    color: #212529 !important;
}

.admin-page .list-group-item:hover {
    background: #f8f9fa !important;
}

.admin-page h1, .admin-page h2, .admin-page h3, .admin-page h4, .admin-page h5, .admin-page h6 {
    color: #212529 !important;
}

.admin-page .text-muted {
    color: #6c757d !important;
}