@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Inter:wght@400;700;900&display=swap');

/*===========================cores principais */
:root {
    --bg-color: #020617;
    --emerald-main: #10b981;
    --emerald-glow: rgba(16, 185, 129, 0.3);
    --zinc-dark: rgba(9, 9, 11, 0.4);
}

/*=============reset e configuracoes globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: #ecfdf5;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*====================== efeitos de fundo glow */
.glow-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.glow-1 {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: rgba(5, 150, 105, 0.1);
    filter: blur(120px);
    border-radius: 9999px;
}

.glow-2 {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: rgba(16, 185, 129, 0.1);
    filter: blur(120px);
    border-radius: 9999px;
}

/*======================== container principal */
.container {
    position: relative;
    width: 100%;
    max-width: 42rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
}

/*================== header*/
.brand-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.icon-box {
    padding: 0.625rem;
    background: var(--emerald-main);
    border-radius: 0.75rem;
    box-shadow: 0 0 20px var(--emerald-glow);
}

.brand-title {
    font-size: 1.875rem;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.brand-highlight {
    color: var(--emerald-main);
}

/*================== ===texto hero*/
.hero-text {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #a1a1aa;
}

.hero-subtitle {
    color: #52525b;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/*===================== Card principal */
.main-card {
    width: 100%;
    background: var(--zinc-dark);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(16, 185, 129, 0.1);
    padding: 0.25rem;
    border-radius: 2rem;
}

.card-inner {
    background: rgba(2, 6, 23, 0.95);
    padding: 1.5rem;
    border-radius: 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/*======================= grupo de input url longa */
.input-group {
    margin-bottom: 1.25rem;
}

.label {
    font-size: 9px;
    font-weight: 800;
    color: rgba(16, 185, 129, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-left: 0.25rem;
    margin-bottom: 0.5rem;
    display: block;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(16, 185, 129, 0.3);
}

/*====================== campo de input*/
.input-field {
    width: 100%;
    background: rgba(24, 24, 27, 0.5);
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: 0.75rem;
    padding: 1rem 4.5rem 1rem 3rem;
    color: #ecfdf5;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    transition: all 0.2s;
    text-overflow: ellipsis;
    line-height: 1.5;
}

/*=======================tira o autocomplete e autofocus dos inputs */
.input-field:-webkit-autofill,
.input-field:-webkit-autofill:hover,
.input-field:-webkit-autofill:focus,
.input-field:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(24, 24, 27, 0.9) inset !important;
    -webkit-text-fill-color: #ecfdf5 !important;
    transition: background-color 5000s ease-in-out 0s;
}

/*===========================remove o outline azul feio do focus */
.input-field:focus {
    outline: none;
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(24, 24, 27, 0.8);
}

/*=========================remove o autofill do navegador */
input:-webkit-autofill {
    transition: background-color 600000s 0s, color 600000s 0s;
}

/*============= botao de colar*/
.btn-paste {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.6rem;
    background: transparent !important;
    border: none;
    color: #52525b;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-paste:hover {
    color: var(--emerald-main);
    background: rgba(16, 185, 129, 0.05) !important;
    border-radius: 0.5rem;
}

/*========================= linha flexivel responsiva*/
.flex-row-group {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .flex-row-group {
        flex-direction: row;
        align-items: flex-end;
        gap: 1rem;
    }

    .alias-wrapper {
        flex: 2;
        min-width: 0;
    }

    .btn-shorten {
        flex: 1;
        width: auto;
        min-width: 120px;
        white-space: nowrap;
    }
}

.alias-input {
    padding-left: 4.5rem !important;
    width: 100%;
}

.alias-wrapper .input-field {
    font-size: 0.85rem;
    padding-right: 0.75rem;
}

.alias-input::placeholder {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    overflow: visible;
}

@media (min-width: 640px) {
    .alias-input::placeholder {
        font-size: 0.85rem;
    }
}

/*============================ botao encurtar*/
.btn-shorten {
    width: 100%;
    height: 3.375rem;
    background: var(--emerald-main);
    color: #020617;
    font-weight: 900;
    border-radius: 0.75rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-shorten:hover {
    background: #34d399;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.btn-shorten:active {
    transform: scale(0.97);
}

/*========================== mensagem de erro*/
.error-banner {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(239, 68, 68, 0.02));
    border-left: 4px solid #ef4444;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    color: #fca5a5;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-left-width: 4px;
    text-transform: uppercase;
}

.error-banner::before {
    font-size: 1rem;
    font-weight: 900;
    color: #ef4444;
}

/*================================area de resultado link gerado*/
.result-area {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/*============================ texto do link gerado*/
.result-url {
    font-family: 'JetBrains Mono', monospace;
    color: #6ee7b7;
    font-size: 0.95rem;
    word-break: break-all;
    flex: 1;
}

/*================================ botao de copy sem fundo*/
.btn-copy {
    padding: 0.4rem;
    background: transparent !important;
    color: var(--emerald-main);
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    width: auto;
    min-width: auto;
}

.btn-copy:hover {
    background: rgba(16, 185, 129, 0.1) !important;
    transform: scale(1.05);
}

.btn-copy:active {
    transform: scale(0.95);
}

/*================================tamanho dos icones do botao copy*/
.btn-copy svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

/*=========================== icone de check quando copiado*/
#checkIcon {
    color: var(--emerald-main);
}

/*=============================rodape*/
.footer {
    margin-top: 2.5rem;
    text-align: center;
    width: 100%;
}

.footer-copy {
    font-size: 8px;
    font-weight: 900;
    color: rgba(16, 185, 129, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.3em;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 1rem;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 10px;
    font-weight: 700;
    color: #52525b;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}

.footer-link:hover {
    color: var(--emerald-main);
    transform: translateY(-1px);
}

/*================== feedback para mobile toque*/
@media (max-width: 768px) {
    .footer-link {
        padding: 0.5rem;
        border-radius: 0.5rem;
        transition: all 0.1s ease;
    }

    .footer-link:active {
        transform: scale(1.1);
        color: var(--emerald-main);
    }

    .btn-shorten:active {
        transform: scale(0.97);
        background: #34d399;
    }

    .btn-copy:active {
        background: rgba(16, 185, 129, 0.2) !important;
        transform: scale(0.95);
    }

    .btn-paste:active {
        background: rgba(16, 185, 129, 0.2) !important;
        color: var(--emerald-main);
        transform: scale(0.95);
    }
}

/*================== feedback para mobile toque*/
@media (max-width: 768px) {
  .input-field,
  input[type="text"],
  input[type="url"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  input[type="search"],
  textarea,
  select,
  .alias-input {
    font-size: 16px !important; 
  }
  
 
  .input-field::placeholder,
  .alias-input::placeholder {
    font-size: 14px;
  }
}


@supports (-webkit-touch-callout: none) {
  .input-field,
  .alias-input,
  input[type="text"],
  input[type="url"] {
    font-size: 16px !important;
  }
}


.input-field:focus,
.alias-input:focus,
input:focus,
textarea:focus,
select:focus {
  transform: scale(1);
  transform-origin: 0 0;
  -webkit-text-size-adjust: 100%;
}


body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/*================== Zoom geral para Desktop */
@media (min-width: 1024px) {
    html {
        font-size: 120%; /* Ajuste a porcentagem para definir o nível do zoom (o padrão é 100%) */
    }
}