/* ==========================================================================
   Roblox Closest Region Finder - Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base Styles
   -------------------------------------------------------------------------- */
body {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #4a4a4a 0%, #2a2a2a 100%);
    background-attachment: fixed;
    position: relative;
    color: beige;
}

/* Background pattern overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: repeating-linear-gradient(45deg, #000 0, #000 5px, transparent 0, transparent 50%);
    background-size: 30px 30px;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Map Component
   -------------------------------------------------------------------------- */
#map {
    height: 550px;
    width: 100%;
    -webkit-text-stroke-width: 0px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    filter: brightness(0.8) saturate(1.2);
}

/* --------------------------------------------------------------------------
   Region List
   -------------------------------------------------------------------------- */
#region-list {
    max-height: 550px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #555 #333;
}

#region-list::-webkit-scrollbar {
    width: 8px;
}

#region-list::-webkit-scrollbar-track {
    background: #333;
    border-radius: 4px;
}

#region-list::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

#region-list::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.list-group-item {
    -webkit-text-stroke-width: 0px;
    transition: background-color 0.3s;
    background-color: #333;
    color: beige;
    border: 1px solid #444;
    padding: 12px 16px;
    font-size: 1.1rem;
}

.list-group-item:hover {
    background-color: #444;
    cursor: pointer;
    color: beige;
}

/* --------------------------------------------------------------------------
   Loading State
   -------------------------------------------------------------------------- */
#loading {
    text-align: center;
    padding: 20px;
    display: none;
}

/* --------------------------------------------------------------------------
   Error Messages
   -------------------------------------------------------------------------- */
.error-message {
    color: #dc3545;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    background-color: rgba(220, 53, 69, 0.1);
}

/* --------------------------------------------------------------------------
   Utility Overrides
   -------------------------------------------------------------------------- */
.text-light {
    color: beige !important;
}
