@charset "UTF-8";

/* =========================
RESET
========================= */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Komika Axis", sans-serif;
}
@font-face {
    font-family: "Komika Axis";
    src: url("../fonts/KOMIKAX_.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}
/* =========================
BODY / LAYOUT BASE
========================= */
body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease, color 0.3s ease;
}
/* =========================
THEMES
========================= */
body.dark {
    background-color: #000;
    background-image: radial-gradient(rgba(3, 102, 0, 0.548) 1px, transparent 1px);
    background-size: 40px 40px;
    color: #fff;
}
body.light {
    background-color: #eef2f7;
    background-image: radial-gradient(rgba(34, 197, 94, 0.616) 1px, transparent 1px);
    background-size: 40px 40px;
}
h1 {
    letter-spacing: 1px;
}
/* =========================
MAIN CONTAINER
========================= */
.container {
    position: relative;
    padding: 45px;
    max-width: 700px;
    text-align: center;
    background: transparent;
    backdrop-filter: blur(10px);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.568);
}
body.dark .container {
    border: 2px solid rgb(32, 114, 0);
}
body.light .container {
    border: 2px solid rgb(32, 114, 0);
}
/* APP AREA */
.app {
    width: 420px;
    max-width: 90vw;
}
/* =========================
HEADER / TOPBAR
========================= */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.topbar h1 {
    font-size: 32px;
    font-weight: 600;
}
body.dark .topbar h1 {
    color: rgb(30, 255, 0);
}
body.light .topbar h1 {
    color:#16a34a;
    text-shadow: 1px 1px 0px black;
}
/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
body.dark .logo-weather {
    color: rgb(30, 255, 0);
    text-shadow:
        0 0 40px rgba(30, 255, 0, 0.253),
        0 0 30px rgba(30, 255, 0, 0.13),
        0 4px 40px rgba(30, 255, 0, 0.411);
}
.logo-app {
    text-shadow:
        0 0 40px rgba(255, 255, 255, 0.199),
        0 0 30px rgba(255, 255, 255, 0.219),
        0 4px 40px rgba(30, 255, 0, 0.411);
}
body.dark .logo-app {
    color: #f3f4f6;
}
body.light .logo-weather {
    color:#16a34a;
    text-shadow: 1px 1px 0px black;
}
body.light .logo-app {
    color: #000000;
    text-shadow: 1px 1px 0px #16a34a;
}
.highlight {
    font-family: "Orbitron", sans-serif;
}
body.dark .highlight {
    color: #fff;
}
body.light .highlight {
    color: #111;
}
/* =========================
ACTION BUTTONS
========================= */
.actions {
    display: flex;
    gap: 5px;
}
/* BUTTON BASE */
.btn {
    padding: 0.4rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 800;
    transition: background .3s, transform .2s;
}
.btn:hover {
    transform: translateY(1px);
}
body.dark .btn {
    background: rgb(0, 255, 64);
    color: #000;
}
body.light .btn {
    background: linear-gradient(180deg, #178a41, #15572d);
    color:#0c2409;
    border: 1px solid #33ff0040;
}
/* SECONDARY BUTTON */
.secondary,
.theme-btn {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
body.dark .secondary,
body.dark .theme-btn {
    border: 1px solid #51f72840;
    background: linear-gradient(180deg, #0b300e, #0c2409);
    color: #1eff00;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 8px 20px rgba(0, 0, 0, 0.35);
}
body.light .secondary,
body.light .theme-btn {
    border: 1px solid #51f72840;
    background: linear-gradient(180deg, #178a41, #15572d);
    color:#0c2409;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 8px 20px rgba(0, 0, 0, 0.35);
}
.secondary:hover,
.theme-btn:hover {
    transform: translateY( -1px);
}
body.dark .secondary:hover,
body.dark .theme-btn:hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 10px 24px rgba(94, 255, 129, 0.226),
        0 0 14px rgba(7, 192, 69, 0.18);
}
body.light .secondary:hover,
body.light .theme-btn:hover {
    box-shadow:
        0 10px 24px rgba(34, 197, 94, 0.14),
        0 0 10px rgba(34, 197, 94, 0.10);
}
.secondary i,
.theme-btn i {
    font-size: 18px;
}
/* =========================
SEARCH
========================= */
.search {
    margin-bottom: 20px;
}
form {
    display: flex;
    gap: 10px;
}
input {
    flex: 1;
    padding: 15px;
    border-radius: 8px;
    outline: none;
    transition: .2s ease;
}
body.dark input {
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}
body.light input {
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.8);
    color: #111;
}
body.dark input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}
body.light input::placeholder {
    color: rgba(0, 0, 0, 0.45);
}
body.dark input:focus {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid #02ff24;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.226);
}
body.light input:focus {
    background: #fff;
    border: 1px solid #22c55e;
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.18);
}
body.dark input:focus::placeholder {
    color: rgba(255, 255, 255, 0.5);
}
body.light input:focus::placeholder {
    color: rgba(0, 0, 0, 0.35);
}
/* =========================
RECENT SEARCHES
========================= */
.recent {
    margin-top: 12px;
    font-size: 18px;
    color: rgb(30, 255, 0);
    text-shadow: 0 0 1px white;
}
body.light .recent span{
    color:#16a34a;
    font-weight:700;
    margin-top: 12px;
    font-size: 20px;
    text-shadow: 1px 1px 0px black;
}
.recent-list {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
/* =========================
WEATHER CARD
========================= */
.card {
    padding: 20px;
    border-radius: 14px;
    backdrop-filter: blur(10px);
}
body.dark .card {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 2px 2px 0px rgba(255, 255, 255, 0.24);
}
body.light .card {
    background: rgba(0, 0, 0, 0.116);
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.24);
}
/* =========================
WEATHER RESULT
========================= */
.result {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.hidden {
    display: none;
}
/* PLACE */
.place h2 {
    font-size: 28px;
    text-shadow: 1px 1px 0px #00ff37;
}
body.dark .place p {
    font-size: 18px;
    opacity: 0.8;
    color: #02ff24;
    text-shadow: 1px 1px 0px #ffffff;
}
body.light .place p {
    font-size: 18px;
    opacity: 0.8;
    color: #000000;
    text-shadow: 1px 1px 0px #02ff24;
}

/* WEATHER INFO */
.weather {
    display: flex;
    align-items: center;
    gap: 15px;
}
.weather img {
    width: 70px;
}
.temp {
    font-size: 32px;
    font-weight: bold;
}
.desc {
    text-transform: capitalize;
}
/* =========================
EXTRAS
========================= */
.extras {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}
.pill {
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 13px;
}
body.dark .pill {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 1px 1px 0px #00ff37;
}
body.light .pill {
    background: rgba(15, 15, 15, 0.171);
    box-shadow: 1px 1px 0px #00ff37;
}
.pill:hover{
    box-shadow: 1px 1px 0px #00ff37;
    transform: translateY(-2px);
}
/* =========================
STATUS
========================= */
.status {
    margin-bottom: 10px;
    font-size: 14px;
    opacity: .8;
}
/* =========================
RECENT
========================= */
.recent-list {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}
.recent-btn {
    border: none;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
    transition: 0.2s ease;
}
body.dark .recent-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid #1eff00;
    display: flex;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

body.light .recent-btn {
    background: rgba(0, 0, 0, 0.05);
    color: #111;
    border: 1px solid #16a34a;
}
.recent-btn:hover {
    transform: translateY(-1px);
}
/* =========================
RESPONSIVIDADE
========================= */
@media (max-width: 768px) {
    .container {
        width: 92%;
        padding: 28px 20px;
        border-radius: 18px;
    }

    .app {
        width: 100%;
        max-width: 100%;
    }
    .topbar {
        gap: 16px;
        align-items: flex-start;
    }

    .topbar h1 {
        font-size: 2rem;
        flex-wrap: wrap;
    }

    .logo {
        flex-wrap: wrap;
        gap: 8px;
    }
    .actions {
        flex-shrink: 0;
    }

    input {
        min-width: 0;
    }
    .extras {
        justify-content: center;
    }
}
@media (max-width: 380px) {
    .topbar h1 {
        font-size: 1.5rem;
    }
    input {
        padding: 13px;
        font-size: 0.95rem;
    }
    .btn {
        padding: 0.85rem 1rem;
    }
}
.watermark{
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-size: 0.7rem;
    opacity: 0.45;
    color: #fff;
    pointer-events: none;
    margin-bottom: -8px;
}
body.light .watermark{
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-size: 0.7rem;
    opacity: 0.45;
    color: #000000;
    pointer-events: none;
    margin-bottom: -8px;
}