/* Basic Reset & Body Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a{
    color: #3498db;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, 
                #0f0f0f, /* Base black */
                #1a1a40 20%, /* Deep blue */
                #4a193b 50%, /* Dark pink */
                #523919 80% /* Dark gold */
                );
    background-attachment: fixed;
    background-size: cover;
    color: #f1f1f1;
    padding-bottom: 100px;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
}

.modal-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.modal-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #d1d1d6;
}

.modal-content input, .modal-content textarea, .modal-content button {
    width: 100%;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.modal-content input[type="email"], .modal-content input[type="text"] {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-content textarea {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    resize: none;
}

.modal-content button {
    background-color: #ffffff;
    color: #000000;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-content button:hover {
    background-color: #f7f7f7;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    display: none;
}

/* Header Styling */
header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

header .user-info {
    color: #d1d1d6;
    font-size: 1rem;
}

header .user-info a {
    color: #3498db;
    text-decoration: none;
}

header .user-info a:hover {
    text-decoration: underline;
}

/* Main Content Styling */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.placeholder-text {
    color: #a1a1a6;
    text-align: center;
    margin-top: 3rem;
    font-style: italic;
}

/* Results Area Styling */
#results-container {
    margin-top: 1rem;
}

.placeholder-text {
    color: #a1a1a6;
    text-align: center;
    margin-top: 3rem;
    font-style: italic;
}

.result-item {
    background: rgba(255, 255, 255, 0.06); /* Glassy background */
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.result-item:hover {
    transform: translateY(-3px); /* Slight lift on hover */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.result-item h3 {
    margin-bottom: 0.5rem;
    color: #ffffff; /* White for the title */
    font-size: 1.2rem;
    font-weight: 700;
}

.result-item p {
    margin-bottom: 0.5rem;
    color: #ffffff; /* Subtle gray for details */
    font-size: 0.95rem;
}

.result-item strong {
    color: #f1f1f1; /* Bold white for labels */
    font-weight: 600;
}

.result-item .meta-label {
    display: inline-block;
    color: #d1d1d6;
    min-width: 90px; /* Align labels */
}

.result-item .distance {
    font-size: 0.8rem;
    color: #a1a1a6;
    text-align: right;
    margin-top: 0.5rem;
}

.no-results {
    text-align: center;
    color: #a1a1a6;
    margin-top: 2rem;
    font-size: 1rem;
}

.loading-indicator {
    text-align: center;
    color: #d1d1d6;
    margin-top: 2rem;
    font-size: 1rem;
    font-style: italic;
}

button {
    background-color: #FFFFFF; /* White background */
    border: none; /* No border */
    color: #000000; /* Black text color */
    padding: 10px 20px; /* Padding for size */
    font-size: 16px; /* Font size */
    font-weight: bold; /* Bold font */
    border-radius: 10px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
}

button:hover{
    background-color: #F7F7F7; /* Light gray on hover */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Increased shadow on hover */
}

/* Search Bar Styling */
.search-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
}

#search-input {
    width: 80%;
    max-width: 600px;
    padding: 14px 20px;
    font-size: 1rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    outline: none;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}


/* Style for disabled submit buttons in modals */
.modal-content form button[type="submit"]:disabled {
    background-color: #bdc3c7; /* A muted grey color */
    cursor: not-allowed; /* Indicate non-interactive state */
    opacity: 0.7; /* Slightly faded */
}

/* Optional: Style for the "Checking..." button state */
#email-check-form button[type="submit"]:disabled {
     background-color: #a9CCE3; /* A light blue perhaps */
     cursor: wait; /* Indicate waiting */
     opacity: 0.8;
}

#search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#search-input:focus {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(52, 152, 219, 0.5);
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}
