/* ===========================
   GLOBAL STYLING
=========================== */
html, body {
    height: 100%; /* REQUIRED for sticky footer */
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;

    /* REQUIRED for sticky footer */
    display: flex;
    flex-direction: column;
}

/* ===========================
   WRAPPER (Sticky footer logic)
=========================== */
.wrapper {
    width: 62%;
    margin: 20px auto 0 auto; /* FIXED — removed bottom margin */
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ===========================
   HEADER
=========================== */
.header {
    width: 100%;
    background: green;
    color: white;

    /* ✅ ensure header is always above page content */
    position: relative;
    z-index: 1000;
}

.header-inner {
    width: 62%;
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: bold;
}

/* ===========================
   DESKTOP NAV
=========================== */
nav ul {
    list-style: none;
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
}

nav a:hover {
    text-decoration: underline;
}

/* ===========================
   MOBILE MENU + HAMBURGER
=========================== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background: white; /* FIXED */
}

/* Mobile menu container */
.mobile-menu {
    display: none;
    background: #0d5d0d;
    padding: 10px 0;

    /* ✅ make sure mobile menu sits on top of everything when open */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1001;
}

/* Mobile menu links */
.mobile-menu a {
    display: block;
    padding: 10px 20px;
    color: white;
    font-weight: bold;
    text-decoration: none;
}

/* Show mobile menu when JS toggles class */
.mobile-menu.show {
    display: block;
}


/* ===========================
   COLUMNS
=========================== */
.columns {
    display: flex;
    gap: 20px;
}

.col {
    background: #fff;
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.col-1, .col-2 {
    flex: 1;
}

.col-3 {
    flex: 2;
}

/* ===========================
   SINGLE COLUMN SECTION
=========================== */
.single-column {
    margin-top: 20px;
    background: #fff;
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* ===========================
   SUBSCRIPTION CARDS
=========================== */
.subCard:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: 0.25s;
}

/* ===========================
   FOOTER (Sticky footer)
=========================== */
.footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 20px 0;
}

.footer img {
    display: block;
    margin: 0 auto 8px auto; /* centers the logo */
    height: 45px;
    width: auto;
}

.footer-links a{
    color: #ffffff;
    text-decoration: none;
    margin: 0 4px;
    font-weight: 500;
}

.footer-links a:hover{
    text-decoration: underline;
    opacity: 0.9;
}

/* ===========================
   NOTICES
=========================== */
.success {
    color: green;
    font-weight: bold;
    margin-bottom: 15px;
}

.error {
    color: red;
    font-weight: bold;
    margin-bottom: 15px;
}

/* ===========================
   FORM STYLING
=========================== */
form label {
    font-weight: bold;
    margin-top: 10px;
    display: block;
}

form input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form button {
    margin-top: 15px;
    background: green;
    color: white;
    padding: 10px;
    width: 100%;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background: darkgreen;
}

/* ===========================
   LOST DRONES CARDS
=========================== */
.drone-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.drone-card {
    position: relative;
    flex: 1 1 250px;
    max-width: 350px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    background: #f9f9f9;
    text-align: center;
}

.drone-card.found {
    background: linear-gradient(to bottom, rgba(0,255,0,0.2), rgba(0,128,0,0.2));
}

.drone-card .found-overlay {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0,128,0,0.8);
    color: #fff;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    z-index: 10;
}

.drone-card img {
    max-width: 100%;
    border-radius: 5px;
    margin-bottom: 5px;
}

.drone-map {
    width: 100%;
    height: 250px;
    margin-top: 10px;
    border-radius: 5px;
}

/* ===========================
   FOUND BLOCK
=========================== */
.found-block {
    margin-bottom: 15px;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: #e6ffe6;
}

/* ===========================
   FLYER HEADER
=========================== */
.flyer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.flyer-header img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ccc;
}

.flyer-name {
    font-weight: bold;
}

/* ===========================
   EDIT LINK
=========================== */
.edit-link {
    float: right;
    font-size: 14px;
    font-weight: bold;
    color: green;
    text-decoration: none;
    margin-top: 4px;
}

.edit-link:hover {
    text-decoration: underline;
    color: darkgreen;
}

.video-block {
    margin-bottom: 10px !important;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
    .wrapper, .header-inner {
        width: 90%;
    }
    .columns {
        flex-direction: column;
    }
    .col-2 { order: 1; }
    .col-1 { order: 2; }
}

@media (max-width: 700px) {
    nav ul { display: none; }
    .hamburger { display: flex; }
}
.found-drone-row {
    width: 100%;
    margin-bottom: 25px;
}

#foundDroneContent {
    background: #fff8e1;
    border: 2px solid #ffca28;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
