/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    color: white;
}

/* ================= NAVBAR ================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: #111;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
}

.nav-left h2 {
    font-size: 20px;
}

.nav-right a {
    margin-left: 20px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav-right a:hover {
    color: yellow;
}

/* ================= HERO ================= */
.hero {
    height: 90vh;
    background: url("../assets/hero.jpg") center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay {
    background: rgba(0, 0, 0, 0.7);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 600px;
}

.overlay h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.overlay p {
    color: #ccc;
    margin-bottom: 20px;
}

/* ================= SEARCH ================= */
.search-box {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-box input {
    padding: 12px;
    width: 300px;
    border-radius: 6px;
    border: none;
    outline: none;
}

.search-box input:focus {
    border: 2px solid yellow;
}

.search-box button {
    padding: 12px 18px;
    background: yellow;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.search-box button:hover {
    background: #ffea00;
}

/* ================= RESULTS ================= */
.results-section {
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* ================= CARD ================= */
.card {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 20px;
    margin: 15px;
    width: 260px;
    text-align: center;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 255, 0, 0.2);
}

.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.card h3 {
    margin-bottom: 10px;
}

.card p {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 10px;
}

/* ================= BUTTONS ================= */
.card button {
    margin: 5px;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.card button:first-child {
    background: #00c853;
    color: white;
}

.card button:last-child {
    background: #ff5252;
    color: white;
}

/* ================= DETAILS PAGE ================= */
.details-container {
    padding: 40px;
    display: flex;
    justify-content: center;
}

.details-container .card {
    width: 400px;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

    .overlay {
        padding: 20px;
    }

    .overlay h1 {
        font-size: 24px;
    }

    .search-box input {
        width: 90%;
    }

    .search-box button {
        width: 90%;
    }

    .card {
        width: 90%;
    }

    .header {
        flex-direction: column;
        gap: 10px;
    }
}
.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #00c853;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    opacity: 0;
    transition: 0.3s;
}

.toast.show {
    opacity: 1;
}