/* RESET */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #000;  /* black background */
    color: #fff;       /* default text color white */
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    padding: 14px;
    width: 100%;
}

/* CARD */
.card {
    background: #1a1a1a;   /* dark gray card background */
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(255,255,255,.05); /* subtle light shadow */
    display: flex;
    flex-direction: column;
}

/* IMAGE */
.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    background: #333;   /* dark placeholder */
}

/* CONTENT */
.card .content {
    padding: 12px;
}

.card h1 {
    font-size: 17px;
    margin: 0 0 6px;
    color: #fff;
}

.card h2 {
    font-size: 14px;
    margin: 0 0 4px;
    color: #aaa;
}

.card h3 {
    font-size: 13px;
    margin: 0;
    color: #ccc;
}

.card p {
    font-size: 13px;
    margin: 0 0 4px;
    color: #ddd;
}

/* BUTTON */
.card a {
    margin-top: auto;
    text-align: center;
    padding: 12px;
    background: #0d6efd; /* blue button */
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
}

.card a:hover {
    background: #0b5ed7;
}

/* ---------- MOBILE ---------- */
@media (max-width: 480px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .card img {
        height: 160px;
    }

    .card h1 {
        font-size: 15px;
    }
}

/* ---------- TABLET ---------- */
@media (min-width: 481px) and (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .card img {
        height: 190px;
    }
}

/* ---------- DESKTOP ---------- */
@media (min-width: 901px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

/* ---------------- FORM ---------------- */
#searchForm {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    justify-content: center;
}

/* Form inputs */
#searchForm input[type="text"] {
    flex: 1 1 150px;
    padding: 10px 12px;
    border: 1px solid #555;   /* darker border */
    border-radius: 6px;
    font-size: 1rem;
    background: #222;         /* dark input background */
    color: #fff;              /* white text */
    transition: border-color 0.2s, background 0.2s;
}

/* Input focus */
#searchForm input[type="text"]:focus {
    border-color: #0d6efd;   /* blue highlight */
    outline: none;
    background: #333;         /* slightly lighter on focus */
}

/* Submit button */
#searchForm button[type="submit"] {
    padding: 10px 20px;
    border: none;
    background-color: #0d6efd;
    color: #fff;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

/* Hover effect for button */
#searchForm button[type="submit"]:hover {
    background-color: #0b5ed7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #searchForm {
        flex-direction: column;
        align-items: stretch;
    }

    #searchForm input[type="text"], 
    #searchForm button[type="submit"] {
        flex: 1 1 100%;
    }
}
/* Return button - wow style */
.return-button {
    display: inline-block;
    margin: 20px 0;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Hover effect */
.return-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

/* Glow animation effect */
.return-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255,255,255,0.1);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.return-button:hover::before {
    top: -20%;
    left: -20%;
    width: 240%;
    height: 240%;
}
/* Full-width image container */
.image-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    cursor: zoom-in; /* shows zoom cursor */
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    transition: transform 0.3s ease;
}


/* Fullscreen overlay for zoom */
.image-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: zoom-out;
}

.image-zoom-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}
/* MENU BUTTON – TOP RIGHT */
.menu-btn {
    position: fixed;
    top: 18px;
    right: 18px;
    font-size: 22px;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0,0,0,0.65);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.menu-btn:hover {
    background: rgba(0,0,0,0.85);
}

/* SIDE MENU – RIGHT ALIGNED, TOP-ALIGNED CONTENT */
.menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(12px);
    padding: 80px 24px 24px;
    display: flex;
    flex-direction: column;

    /* 🔑 FORCE TOP ALIGNMENT */
    justify-content: flex-start;
    align-items: flex-start;

    gap: 16px;
    transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
    z-index: 1000;
    border-left: 1px solid rgba(255,255,255,0.08);
    text-align: left;
}

/* OPEN STATE */
#menuToggle:checked ~ .menu {
    right: 0;
}

/* MENU TITLE */
.menu-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* LINKS */
.menu a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 4px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.menu a:hover {
    background: rgba(255,255,255,0.08);
}

/* OVERLAY */
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}

#menuToggle:checked ~ .menu-overlay {
    display: block;
}

/* CTA */
.menu a.cta {
    margin-top: 10px;
    padding: 10px 12px;
    background: #00e6bd;
    color: #000;
    font-weight: 600;
    border-radius: 8px;
    width: fit-content;
}

.menu a.cta:hover {
    background: #00d9a5;
}