/* --- Footer Buttons (Simulate & Set Home) --- */
/* --- Footer Container Layout (Centered) --- */
.footer-content {
    display: flex;
    flex-direction: column; /* Stack vertically */
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 3px;
    text-align: center;
}

.footer-text {
    font-size: 15px; /* Slightly larger text */
    line-height: 1.5;
    color: #e2e8f0;
}

.footer-actions {
    display: flex;
    justify-content: center; /* Center buttons horizontally */
    align-items: center;
    gap: 10px; /* More space between buttons */
    width: 100%;
}

/* --- Base Button Styles (Larger) --- */
.footer-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 44px; /* Taller (was 36px) */
    padding: 0 24px; /* Wider (was 16px) */
    border-radius: 22px;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 15px; /* Larger font (was 13px) */
    font-weight: 700; /* Bolder */
    color: white;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
/* Simulate Button (Cosmic Blue/Purple) */
.simulate-btn {
    background: linear-gradient(135deg, #a955f76e 0%, #6365f150 100%);
    /* box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); */
}

.simulate-btn:hover {
    transform: translateY(-2px);
    /* box-shadow: 0 6px 16px rgba(51, 52, 107, 0.738); */
}

/* Set Home Button (Emerald Green) */
.home-btn {
    background: linear-gradient(135deg, #10b98180 0%, #0596685a 100%);
    /* box-shadow: 0 4px 12px rgba(10, 93, 65, 0.3); */
}

.home-btn:hover {
    transform: translateY(-2px);
    /* box-shadow: 0 6px 16px rgba(14, 119, 84, 0.281); */
}

.home-btn:disabled {
    opacity: 0.7;
    cursor: default;
    transform: none;
    background: #008d60; /* Solid darker green when saved */
}

/* --- Custom Alert Popup (The Modal) --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

.popup-modal {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.popup-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.popup-title {
    color: white;
    font-size: 20px;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.popup-text {
    color: #94a3b8;
    margin-bottom: 24px;
    line-height: 1.5;
}

.popup-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popup-btn-primary {
    background: #3b82f6;
    color: white;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.popup-btn-primary:hover {
    background: #2563eb;
}

.popup-btn-secondary {
    background: transparent;
    color: #94a3b8;
    padding: 12px;
    border: 1px solid #334155;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.popup-btn-secondary:hover {
    background: #334155;
    color: white;
}

/* Animations */
@keyframes fadeIn { to { opacity: 1; } }
@keyframes popIn { to { transform: scale(1); } }


/* styles/components.css - Additions */

.main-stat {
    display: block;
    font-size: 15px;
    color: #38bdf8; /* Cyan highlight */
    font-weight: 500;
    margin-top: 2px;
}

.sub-stat {
    display: block;
    font-size: 13px;
    color: #94a3b8; /* Muted Slate */
    font-style: italic;
    margin-top: 4px;
}

/* Fix that White X button once and for all */
.footer-close {
    background: transparent !important;
    border: none !important;
    color: #64748b;
    font-size: 18px;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    width: 30px; 
    height: 30px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    border-radius: 50%;
}
.footer-close:hover {
    background: rgba(255,255,255,0.1) !important;
    color: white;
}

/* =========================================
   Community Sightings
   ========================================= */

/* Submit button fills card width (not in a .mob-actions flex row) */
#sighting-submit-btn {
    width: 100%;
    margin-top: 4px;
}

/* Subscribe CTA link styled like a button */
#sighting-subscribe a.mob-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 0;
}

/* --- Sighting report form --- */
.sighting-field-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.sighting-time-input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    padding: 7px 10px;
    margin-bottom: 8px;
    outline: none;
    transition: border-color 0.2s;
    color-scheme: dark;
}
.sighting-time-input:focus { border-color: rgba(96, 165, 250, 0.5); }

.sighting-textarea {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    padding: 8px 10px;
    resize: vertical;
    min-height: 60px;
    margin-bottom: 8px;
    outline: none;
    transition: border-color 0.2s;
}
.sighting-textarea:focus {
    border-color: rgba(96, 165, 250, 0.5);
}
.sighting-textarea::placeholder { color: #475569; }

.sighting-photo-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #94a3b8;
    cursor: pointer;
    margin-bottom: 10px;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px dashed rgba(255,255,255,0.15);
    transition: border-color 0.2s, background 0.2s;
    user-select: none;
}
.sighting-photo-label:hover {
    border-color: rgba(96, 165, 250, 0.4);
    background: rgba(96, 165, 250, 0.05);
    color: #bae6fd;
}
.sighting-photo-name {
    font-size: 11px;
    color: #60a5fa;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
}

.sighting-status {
    font-size: 12px;
    margin-top: 6px;
    min-height: 16px;
    text-align: center;
}
.sighting-status-info  { color: #94a3b8; }
.sighting-status-error { color: #f87171; }

.sighting-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    text-align: center;
}
.sighting-success-icon { font-size: 2rem; }
.sighting-success-text { font-size: 13px; color: #94a3b8; line-height: 1.4; }

/* Subscribe nudge */
.sighting-sub-text {
    font-size: 12px;
    color: #94a3b8;
    margin: 4px 0 10px;
    line-height: 1.4;
}

/* --- Community feed --- */
.sighting-feed {
    background: rgba(11, 26, 51, 0.6);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
    width: 90%;
    max-width: 600px;
    margin: 0 auto 8px;
}

.sighting-feed-header {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    padding: 8px 12px 6px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sighting-feed-empty {
    font-size: 12px;
    color: #475569;
    padding: 12px;
    text-align: center;
    font-style: italic;
}

.sighting-feed-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sighting-feed-item:last-child { border-bottom: none; }

.sighting-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.1);
}

.sighting-feed-body { flex: 1; min-width: 0; }

.sighting-feed-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 3px;
}
.sighting-feed-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
}
.sighting-feed-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.sighting-feed-loc { font-size: 13px; }
.sighting-feed-region {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.sighting-feed-time {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
}

.sighting-kp-badge {
    font-size: 10px;
    font-weight: 700;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    padding: 1px 5px;
    border-radius: 4px;
    letter-spacing: 0.04em;
}

/* Clickable feed items that fly the globe */
.sighting-flyable {
    cursor: pointer;
    position: relative;
    transition: background 0.15s;
}
.sighting-flyable:hover {
    background: rgba(96, 165, 250, 0.08);
}
.sighting-fly-hint {
    font-size: 16px;
    line-height: 1;
    color: #475569;
    transition: color 0.15s;
    pointer-events: none;
}
.sighting-flyable:hover .sighting-fly-hint { color: #38bdf8; }

.sighting-note {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}