:root {
    --red: #C1121F;
    --cream: #FDF0D5;
    --navy: #003049;
    --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background-color: var(--cream);
    color: var(--navy);
    line-height: 1.6;
}

/* Header & Nav */
header {
   background-color: var(--navy);
    padding: 0.8rem 5%; /* Slightly more breathing room */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid var(--red);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { color: var(--cream); font-size: 1.5rem; font-weight: bold; text-decoration: none; }

nav { display: flex; align-items: center; gap: 20px; }
.nav-links { display: flex; gap: 15px; }
nav a { color: var(--cream); text-decoration: none; font-weight: 600; }
nav a:hover { color: var(--red); }

/* Auth Status UI */
#auth-status { color: var(--cream); font-size: 0.85rem; }

/* Buttons */
.btn {
    background-color: var(--red);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

/* Common Layout */
section { padding: 60px 10%; }
.hero { background: var(--navy); color: white; text-align: center; padding: 100px 10%; }
article { background: var(--white); padding: 30px; border-radius: 8px; margin-bottom: 30px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }

/* Shelter Elements */
.status-badge { padding: 4px 8px; border-radius: 4px; color: white; font-size: 0.8rem; font-weight: bold; }
.open { background: #28a745; }
.limited { background: #ffc107; color: #000; }
.full { background: var(--red); }

/* Form Elements */
form input, form textarea { width: 100%; padding: 12px; margin: 10px 0; border: 1px solid #ccc; border-radius: 4px; }
#form-feedback { display: none; padding: 15px; margin-bottom: 15px; border-radius: 4px; font-weight: bold; }
.success { background: #d4edda; color: #155724; }
.error { background: #f8d7da; color: #721c24; }

/* Overlay Modal */
#login-overlay {
    display: none; position: fixed; top:0; left:0; width:100%; height:100%;
    background: rgba(0,48,73,0.95); z-index: 9999; justify-content: center; align-items: center;
}
.modal-content { background: white; padding: 40px; border-radius: 12px; text-align: center; max-width: 400px; width: 90%; }

footer { background: var(--navy); color: var(--cream); text-align: center; padding: 20px; border-top: 4px solid var(--red); }
.logo-link img:hover {
    transform: scale(1.02);
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
    width: 100%;
}

.pic-holder {
    /* Use a slightly larger size for a single featured image */
    width: 350px;           
    height: 400px;          
    border: 4px dashed #003049;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Adds depth */
}

.pic-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pic-label {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #003049; /* Solid navy for better legibility */
    color: #FDF0D5;
    text-align: center;
    padding: 20px 0;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 1px;
}
/* 1. The Header Container */
header {
    background-color: #003049; /* Navy */
    padding: 10px 5%;
    border-bottom: 4px solid #C1121F; /* Red border */
}

/* 2. The Navigation Bar */
header nav {
    display: flex !important;
    align-items: center !important;
    width: 100%;
}

/* 3. The Logo (Stays Left) */
.logo-link img {
    height: 90px !important;
    width: auto;
    display: block;
}

/* 4. The Right-Side Group (Sign In + Nav Links) */
/* This 'margin-left: auto' is the secret to pushing everything to the right */
.nav-right-group {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto !important; 
}

/* 5. The Links themselves */
.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #FDF0D5; /* Cream */
    text-decoration: none;
    font-weight: bold;
}
#login-view {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background-color: #FDF0D5; /* Cream */
    display: flex; justify-content: center; align-items: center;
    z-index: 10000;
}

.login-card {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    width: 350px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-top: 6px solid #C1121F; /* Red */
}

.input-group input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#email-login-btn {
    width: 100%;
    padding: 12px;
    background-color: #C1121F; /* Red */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

#google-login-btn {
    width: 100%;
    padding: 12px;
    background-color: #003049; /* Navy */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.divider { margin: 15px 0; color: #666; font-size: 0.9em; }
/* Add this to your existing login CSS */
.signup-text {
    margin-top: 15px;
    font-size: 0.9em;
    color: #003049; /* Navy */
}

#signup-link {
    color: #C1121F; /* Red */
    text-decoration: none;
    font-weight: bold;
}

#signup-link:hover {
    text-decoration: underline;
}

.divider {
    margin: 20px 0;
    position: relative;
    text-align: center;
    color: #666;
}

.divider::before, .divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background-color: #ddd;
}

.divider::before { left: 0; }
.divider::after { right: 0; }
#login-view {
    pointer-events: none; /* Make the background click-through */
}
.modal-content, .login-card, button, input {
    pointer-events: auto !important; /* Force the card and buttons to be clickable */
    position: relative;
    z-index: 10001 !important;
}

