/* Importando a fonte */


@font-face {
    font-family: 'Inconsolata';
    src: url('../assets/fonts/Inconsolata-VariableFont_wdth-wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    
}
/* Corpo principal da página */

body::before {

    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        url('../assets/images/pattern-lines.svg'),
        url('../assets/images/pattern-squiggly-line-bottom-desktop.svg');
    background-repeat: repeat, no-repeat;
    background-position: center center, 0% 100%;
    background-size: contain, auto;
    z-index: -10;
    pointer-events: none;
    opacity: 1.0; 

}

body {

    font-family: 'Inconsolata', monospace, Arial, sans-serif;
    color: #fff;
    background-image: url('../assets/images/background-desktop.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;   

}

/* Responsividade para mobile */
@media (max-width: 600px) {

    body::before {
        background-image: url('../assets/images/pattern-squiggly-line-bottom-mobile-tablet.svg');
        background-position: 0% 100%;
        background-repeat: no-repeat;
    }

    body {
        background-image: url('../assets/images/background-mobile.png');
        font-size: 15px;
        padding: 0;
    }
    #ticketForm, .avatar-upload-container {
        max-width: 98vw;
        width: 100%;
        padding-left: 3vw;
        padding-right: 3vw;
        box-sizing: border-box;
    }
    .mainLogo img {
        height: 28px;
    }
    #ticketForm label, .textTicket, #ticketForm input, #getTicket {
        max-width: 98vw;
        font-size: 15px;
    }
    .avatar-upload-box {
        min-height: 80px;
        padding: 10px 0 5px 0;
    }
    .avatar-preview {
        width: 48px;
        height: 48px;
    }
    #getTicket {
        padding: 12px 0;
        font-size: 16px;
    }
    /* --- Estilos da Página do Ticket (Mobile) --- */
    .ticket-container {
        margin: 2rem auto;
        width: 95%;
        padding: 0.35rem 0.8rem 0.8rem 0.8rem; /* ainda mais próximo do topo */
        gap: 0.4rem; /* elementos mais juntos */
    }

    /* header e topo mais compactos */
    .ticket-top { display: flex; flex-direction: column; gap: 0.2rem; }
    .ticket-header h3 { margin: 0; font-size: 1.2rem; }

    .ticket-header img {
        height: 22px; 
    }

    .ticket-details {
        font-size: 0.8rem; 
    }

    /* O .ticket-user volta a ser uma linha, mas com elementos menores */
    .ticket-user {
        display: flex;
        flex-direction: row; /* Garante que seja uma linha */
        align-items: center;
        gap: 0.5rem; /* mais junto ao texto */
        margin-top: 0.1rem;
    }

    #ticketAvatar {
        width: 50px; /* Avatar menor */
        height: 50px;
        border-radius: 10px; 
        background-color: #333; 
        border: 1px solid #555;
        object-fit: cover; /* Garante que a imagem preencha o espaço */
        flex-shrink: 0; /* Impede que o avatar seja esmagado */
    }

    .user-info h3 {
        font-size: 1.1rem; /* Nome do usuário menor */
        margin-bottom: 0.2rem; /* Pequeno espaço abaixo do nome */
    }

    .github-link a {
        font-size: 0.8rem; 
        display: flex;
        align-items: center;
        gap: 0.3rem;
        text-decoration: none;
        color: #ccc;
    }

    .github-link img {
        height: 14px; /* Ícone do github menor */
    }

    .ticket-number {
        display: none; 
    }
}

/* Logo */

.mainLogo {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    width: fit-content;
}

.mainLogo img {
    height: 20px;
    width: auto;
}

/* Avatar */

.upload-icon-container {
    display: flex;
    width: 100%;
    height: 50px;
    max-width: 50px;
    background: rgb(255, 255, 255, 0.2);
    border: 1px solid rgb(255, 255, 255, 0.4);
    border-radius: 10px;
    align-items: center;
    justify-content: center;
}
.upload-icon-preview {
    width: 100%;
    max-width: 30px;
    margin: 0 auto 0 auto;

}

.avatar-upload-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 2em auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.avatar-label {
    font-size: 1.2em;
    font-weight:lighter;
    margin-bottom: 8px;
    margin-left: 8px;
}

.avatar-upload-box {
    width: 100%;
    min-height: 80px;
    background: rgba(255,255,255,0.05);
    border: 1px dashed rgb(170, 170, 170, 0.8);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0 10px 0;
    margin-bottom: 8px;
    position: relative;
    cursor: pointer;

    transition: background-color 0.25s;
}

.avatar-upload-box:hover {
    background-color: rgba(255,255,255,0.1);
}

.avatar-upload-box span {
    color: #ccc;
    font-size: 0.8em;
    margin-top: 10px;
}

.avatar-preview {
    width: 64px;
    height: 64px;
    border-radius: 18%;
    object-fit: cover;
    margin-bottom: 12px;
    background: #222;
    border: 1px solid rgb(205, 203, 203, 0.7);
}

.avatar-btns {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.avatar-btn {
    background: rgb(69, 69, 69, 0.6);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 0.95em;
    cursor: pointer;
    transition: background 0.2s;
}
.avatar-btn:hover {
    background: rgb(246, 116, 100, 0.7);
    color: #280016;
}

.avatar-hint {
    color: #ccc;
    font-size: 0.95em;
    margin-left: 8px;
}

h1 {
    text-align: center;
}

.textP {
    margin-bottom: 2em;
    text-align: center;
}


/* Campos para preencher os dados */ 

#ticketForm {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}


#ticketForm label {
   
    text-align: left;
    width: 100%;
    max-width: 400px;
    font-weight: lighter;
    font-size: 0.8em;
    
}


#ticketForm input {

    width: 100%;
    max-width: 400px;
    padding: 15px;
    border-radius: 10px;
    background-color: rgba(255,255,255,0.1); 
    border: 1px solid rgba(204,204,204,0.8); 
    box-sizing: border-box;
    font-family: 'Inconsolata', monospace, Arial, Helvetica, sans-serif;
    color: #fff;
    font-size: 15px;
    margin-bottom: 15px;
    margin-top: 5px;

    transition: background-color 0.25s;

}

#ticketForm input:hover{
    background-color: rgba(255,255,255,0.15); 
    border-color: rgba(204,204,204,1); 
}


/* Botão */

#getTicket {
    width: 100%;
    max-width: 400px;
    background-color: #F67464;
    color: #280016;
    padding: 15px 0;
    text-align: center;
    text-decoration: none;
    display: block;
    font-size: 20px;
    margin: 20px auto 0 auto;
    cursor: pointer;
    border-radius: 15px;
    font-family: Inconsolata, monospace, Arial, Helvetica, sans-serif;
    font-weight: bold;
    margin-bottom: 100px;
    border-style: none;
}

#getTicket:hover {
    background-color: #FF8A8A;
}

span {
    font-size: 12px;
}

.email-container {
    color: rgb(197, 197, 197);
    text-align: center;
}

#emailName {
    color: #FF8A8A;
    font-size: 1em;
}

#ticketName {
    
    color: #F67464;
    background-image: linear-gradient(to right, #F67464, #FF8A8A);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1em; 
}


/* --- Estilos da Página do Ticket --- */

.ticket-container {
    /* Container com arte do ticket como background */
    max-width: 500px;
    width: 90%;
    margin: 5em auto;
    box-sizing: border-box;
    background-image: url('../assets/images/pattern-ticket.svg');
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center top;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.5rem 1rem 1rem 1rem; /* reduz topo para aproximar o conteúdo do bordo superior */
    aspect-ratio: 600 / 280; /* garante altura mínima para não cortar a base do ticket */
}

.ticket-header {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;

}

.ticket-header img {
    height: 20px;
    width: auto;
}

.ticket-user {
    display: flex;
    align-items: center;
    gap: 8px;
}


.github-link {
    display: flex;
    align-items: center;
}

/* Link do GitHub (desktop): evitar azul sublinhado padrão */
.github-link a {
    color: #ccc;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.github-link img { height: 16px; }

#ticketAvatar {
    width: 64px;
    height: 64px;
    border-radius: 10px;
}

/* Estilo da data: mais próxima do header e cinza no desktop */
.ticket-details {
    margin: 0.2rem 0 0 0; /* reduz espaço acima */
    color: #c9c9c9; /* cinza sutil no desktop */
}