.tekntek-weather,
.tekntek-weather * {
    box-sizing: border-box;
}

.tekntek-weather {
    --tw-orange: #e05c28;
    --tw-ink: #111827;
    --tw-muted: #6b7280;
    --tw-line: #e5e7eb;
    --tw-soft: #f8fafc;
    --tw-blue: #2563eb;
    width: 100%;
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--tw-ink);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
    font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

.tekntek-weather--home {
    position: absolute;
    right: 18px;
    bottom: 16px;
    z-index: 3;
    width: auto;
    min-width: 156px;
    min-height: 74px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border-radius: 16px;
    color: var(--tw-ink);
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.tekntek-weather--home:hover {
    color: var(--tw-ink);
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.22);
    transform: translateY(-2px);
    text-decoration: none;
}

.tekntek-weather-home__temp {
    color: var(--tw-ink);
    font-size: 34px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: 0;
}

.tekntek-weather-home__meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tekntek-weather-home__meta strong,
.tekntek-weather-home__meta small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tekntek-weather-home__meta strong {
    color: #1f2937;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
}

.tekntek-weather-home__meta small {
    color: var(--tw-muted);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: capitalize;
}

.tekntek-weather-home__icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
    margin: -5px -5px -5px 0;
}

.tekntek-weather--page {
    max-width: 760px;
    margin: 28px 0;
}

.tekntek-weather__main {
    padding: 16px;
}

.tekntek-weather__topline {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--tw-orange);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.tekntek-weather__topline img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    margin: -8px -4px -6px 0;
}

.tekntek-weather__reading {
    margin-top: 2px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.tekntek-weather__reading strong {
    color: var(--tw-ink);
    font-size: 46px;
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: 0;
}

.tekntek-weather__reading span {
    padding-bottom: 4px;
    color: #374151;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.25;
    text-align: right;
}

.tekntek-weather__desc {
    margin: 10px 0 0;
    color: var(--tw-muted);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.4;
    text-transform: capitalize;
}

.tekntek-weather__stats {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.tekntek-weather__stats span {
    min-width: 0;
    padding: 9px 8px;
    border: 1px solid var(--tw-line);
    border-radius: 8px;
    background: var(--tw-soft);
    color: var(--tw-ink);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}

.tekntek-weather__stats small {
    display: block;
    margin-bottom: 3px;
    color: var(--tw-muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.tekntek-weather__error {
    margin: 10px 0 0;
    padding: 10px 12px;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.tekntek-weather__search {
    padding: 12px 16px 16px;
    border-top: 1px solid var(--tw-line);
    background: rgba(248, 250, 252, 0.8);
}

.tekntek-weather__search label {
    display: block;
    margin-bottom: 7px;
    color: var(--tw-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.tekntek-weather__field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.tekntek-weather__field input {
    width: 100%;
    height: 38px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: var(--tw-ink);
    font-size: 13px;
    line-height: 1;
    padding: 0 11px;
}

.tekntek-weather__field button,
.tekntek-weather__popular button {
    border: 0;
    border-radius: 8px;
    background: var(--tw-orange);
    color: #ffffff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    transition: background-color 160ms ease, transform 160ms ease;
}

.tekntek-weather__field button {
    min-width: 74px;
    height: 38px;
    padding: 0 12px;
}

.tekntek-weather__field button:hover,
.tekntek-weather__popular button:hover {
    background: #c44d1e;
    transform: translateY(-1px);
}

.tekntek-weather__popular {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tekntek-weather__popular button {
    min-height: 28px;
    padding: 0 9px;
    background: #e8edf6;
    color: #1f2937;
}

.tekntek-weather__popular button:hover {
    background: #dbeafe;
    color: var(--tw-blue);
}

.tekntek-weather--page .tekntek-weather__reading {
    justify-content: flex-start;
}

.tekntek-weather--page .tekntek-weather__reading span {
    text-align: left;
}

@media (max-width: 840px) {
    .tekntek-weather--home {
        position: relative;
        right: auto;
        bottom: auto;
        width: fit-content;
        max-width: 100%;
        margin: 16px 0 0 auto;
    }
}

@media (max-width: 520px) {
    .tekntek-weather__reading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .tekntek-weather__reading span {
        text-align: left;
    }

    .tekntek-weather__stats {
        grid-template-columns: 1fr;
    }

    .tekntek-weather__field {
        grid-template-columns: 1fr;
    }
}
