/* style.css */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 40px 20px;
    font-family: Inter, Arial, sans-serif;

    background:
        radial-gradient(circle at top left, #1e293b, #0f172a);

    color: white;
}

/* CARDS */

.card {
    max-width: 950px;
    margin: 25px auto;
    background: rgba(255,255,255,0.06);

    backdrop-filter: blur(12px);

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 20px;

    padding: 25px;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.25);
}

.map-card-header {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
    margin-bottom: 18px;
}

.map-card-header .home-button {
    flex: 0 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.logo {
    width: 150px;
    max-width: 28vw;
    height: auto;
    flex: 0 0 auto;
}

.subtitle {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    opacity: 0.92;
}

/* MAP */

.map-shell {
    position: relative;
}

#map {
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
}

.iss-status {
    position: absolute;
    z-index: 500;
    top: 12px;
    right: 12px;

    padding: 8px 12px;
    border-radius: 8px;

    background: rgba(15, 23, 42, 0.86);
    border: 1px solid rgba(255,255,255,0.18);
    color: #e2e8f0;

    font-size: 0.85rem;
    font-weight: 700;
    pointer-events: none;
}

/* INPUTS */

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;

    margin-top: 20px;
    margin-bottom: 20px;
}

label {
    display: flex;
    flex-direction: column;
    gap: 8px;

    color: #e2e8f0;
    font-weight: 600;
}

input {
    padding: 14px;
    border-radius: 12px;
    border: none;

    background: rgba(255,255,255,0.12);
    color: white;

    font-size: 1rem;
}

input:focus {
    outline: 2px solid #3b82f6;
}

/* BUTTONS */

.primary-button,
.home-button {
    border: none;
    cursor: pointer;

    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 14px 22px;

    border-radius: 999px;

    font-size: 1rem;
    font-weight: 700;

    transition: all 0.2s ease;
}

/* HOME */

.home-button {
    background: white;
    color: #0f172a;
}

.home-button:hover {
    transform: translateY(-2px);
    background: #e2e8f0;
}

.home-icon {
    width: 28px;
    height: 28px;

    border-radius: 50%;

    display: grid;
    place-items: center;

    background: #0f172a;
    color: white;

    font-size: 18px;
}

/* PRIMARY BUTTON */

.primary-button {
    background: linear-gradient(
        135deg,
        #2563eb,
        #3b82f6
    );

    color: white;
}

.primary-button:hover {
    transform: translateY(-2px) scale(1.02);

    box-shadow:
        0 10px 20px rgba(37,99,235,0.35);
}

/* RESULT */

#result {
    margin-top: 20px;

    font-size: 1.1rem;
    font-weight: 600;

    color: #facc15;
}

/* FOOTER */

footer {
    margin-top: 40px;
    text-align: center;

    color: #94a3b8;
}

/* MOBILE */

@media (max-width: 768px) {
    .map-card-header {
        gap: 14px;
    }

    .logo {
        width: 105px;
    }

    .subtitle {
        font-size: 0.92rem;
    }

    .input-grid {
        grid-template-columns: 1fr;
    }

    #map {
        height: 350px;
    }
}
