/* Kalkulator walut — layout (no colors) */

.currency-wrap {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Form */
.currency-form {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: end;
}

.currency-field--amount {
    grid-column: 1 / -1;
}

.currency-field--swap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 0.2rem;
}

.currency-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.currency-input,
.currency-select {
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
    border: 1px solid;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
}

.currency-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid;
    border-radius: 6px;
}

.currency-code {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.03em;
}

.currency-name {
    font-size: 0.85rem;
    opacity: 0.7;
}

.currency-swap-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid;
    background: transparent;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

/* Result */
.currency-result {
    padding: 1.25rem;
    border-radius: 10px;
    border: 1px solid;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.currency-result-main {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.3rem;
    justify-content: center;
    text-align: center;
}

.currency-result-amount {
    font-size: 1.5rem;
    font-weight: 600;
}

.currency-result-eq {
    font-size: 1.5rem;
    opacity: 0.5;
    margin: 0 0.2rem;
}

.currency-result-value {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
}

.currency-result-code {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.7;
    text-transform: uppercase;
}

.currency-rate-info {
    text-align: center;
}

.currency-rate-row {
    font-size: 0.95rem;
    margin: 0.2rem 0;
}

.currency-rate-label {
    opacity: 0.6;
}

.currency-rate-date {
    font-size: 0.8rem;
    opacity: 0.5;
    margin: 0.5rem 0 0;
}

/* Error */
.currency-error {
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .currency-form {
        grid-template-columns: 1fr;
    }
    .currency-field--swap {
        justify-content: center;
    }
    .currency-swap-btn {
        transform: rotate(90deg);
    }
}
