/* Estilos personalizados para InfyReels - Design 2025 */

/* Importar fonte Poppins do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #F7F5FF;
    color: #2D3748;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Cabeçalho */
header {
    background: linear-gradient(90deg, #6B46C1, #F97316);
    color: white;
    padding: 1.5rem 0;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

header nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navegação */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-menu a:hover {
    color: #ED8936;
    transform: scale(1.05);
}

.logout-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.logout-btn:hover {
    color: #F56565;
    transform: scale(1.05);
}

/* Área do utilizador */
.user-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background-color: #F7F5FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: #6B46C1;
}

.user-name {
    font-size: 1rem;
    font-weight: 500;
}

/* Contêiner principal */
.container {
    max-width: 1200px;
    width: 90%;
    margin: 3rem auto;
    flex-grow: 1;
}

/* Seções de conteúdo */
section {
    padding: 2.5rem 1.5rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    overflow: hidden;
}

section h2 {
    font-size: 2rem;
    color: #6B46C1;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}


/* Pacotes */
.pacotes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.pacotes div {
    background: linear-gradient(135deg, #F7F5FF, #FFFFFF);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pacotes div:hover, .pacotes div.selected {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(107, 70, 193, 0.2);
}

.pacotes h3 {
    font-size: 1.5rem;
    color: #6B46C1;
    margin-bottom: 0.5rem;
}

.pacotes p {
    font-size: 0.95rem;
    color: #4A5568;
    margin-bottom: 1rem;
}

.pacotes button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(90deg, #6B46C1, #F97316);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.pacotes button:hover {
    background: linear-gradient(90deg, #553C9A, #DD6B20);
    transform: scale(1.05);
}

/* Formulário de pedido */
.formulario {
    padding: 2rem;
    background: linear-gradient(135deg, #F7F5FF, #FFFFFF);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.formulario h2 {
    font-size: 2rem;
    color: #6B46C1;
    margin-bottom: 1.5rem;
}

.formulario form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.formulario label {
    font-size: 1rem;
    font-weight: 500;
    color: #2D3748;
}

.formulario input,
.formulario select,
.formulario textarea {
    padding: 0.75rem;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #FFFFFF;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.formulario input:focus,
.formulario select:focus,
.formulario textarea:focus {
    outline: none;
    border-color: #6B46C1;
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.2);
}

.formulario textarea {
    resize: vertical;
    min-height: 120px;
}

.formulario button {
    padding: 0.75rem;
    background: linear-gradient(90deg, #6B46C1, #F97316);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.formulario button:hover {
    background: linear-gradient(90deg, #553C9A, #DD6B20);
    transform: scale(1.05);
}

/* Botão personalizado para upload de arquivo */
.file-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 1rem;
}

.file-input-wrapper input[type=file] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.file-choose-btn {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(90deg, #6B46C1, #F97316);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.file-choose-btn:hover {
    background: linear-gradient(90deg, #553C9A, #DD6B20);
    transform: scale(1.02);
}

.file-choose-btn::after {
    content: ' Nenhum arquivo selecionado';
    color: #A0AEC0;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.file-input-wrapper input[type=file]:valid + .file-choose-btn::after {
    content: attr(data-filename);
    color: #48BB78;
    font-weight: 500;
}

/* Seção de Fornecedores */
.fornecedores {
    padding: 2rem;
    background: linear-gradient(135deg, #F7F5FF, #FFFFFF);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    margin-bottom: 2rem;
}

.fornecedores h2 {
    font-size: 2rem;
    color: #6B46C1;
    margin-bottom: 1.5rem;
    text-align: center;
}

.fornecedores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.fornecedor-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fornecedor-card:hover, .fornecedor-card.selected {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(107, 70, 193, 0.2);
}

.fornecedor-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.fornecedor-card h3 {
    font-size: 1.5rem;
    color: #6B46C1;
    margin-bottom: 0.5rem;
}

.fornecedor-card p {
    font-size: 0.95rem;
    color: #4A5568;
    margin-bottom: 1rem;
}

.fornecedor-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 1rem;
}

.fornecedor-card li {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 0.25rem;
}

.fornecedor-card button {
    padding: 0.5rem 1rem;
    background: linear-gradient(90deg, #6B46C1, #F97316);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.fornecedor-card button:hover {
    background: linear-gradient(90deg, #553C9A, #DD6B20);
}

/* Seção de Editores */
.editores {
    padding: 2rem;
    background: linear-gradient(135deg, #F7F5FF, #FFFFFF);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    margin-bottom: 2rem;
}

.editores h2 {
    font-size: 2rem;
    color: #6B46C1;
    margin-bottom: 1.5rem;
}

.fotos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.fotos img {
    border-radius: 50%;
    width: 200px;
    height: 200px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.fotos img:hover {
    transform: scale(1.05);
}

/* Perfis de Editores */
.editor-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.editor-profile img {
    border-radius: 50%;
    width: 200px;
    height: 200px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.editor-profile h3 {
    font-size: 1.5rem;
    color: #6B46C1;
    margin-bottom: 0.5rem;
}

.editor-profile p {
    font-size: 0.95rem;
    color: #4A5568;
    max-width: 600px;
}

/* Botão genérico */
.btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(90deg, #6B46C1, #F97316);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background: linear-gradient(90deg, #553C9A, #DD6B20);
    transform: scale(1.05);
}

/* Portfólio */
.portfolio {
    padding: 2rem;
    background: linear-gradient(135deg, #F7F5FF, #FFFFFF);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.portfolio h2 {
    font-size: 2rem;
    color: #6B46C1;
    margin-bottom: 1.5rem;
}

.portfolio-videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.portfolio-videos div {
    text-align: center;
    background-color: white;
    padding: 1rem;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.portfolio-videos div:hover {
    transform: translateY(-5px);
}

.portfolio-videos h3 {
    font-size: 1.25rem;
    color: #6B46C1;
    margin-bottom: 0.5rem;
}

.portfolio-videos iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Modal */
#message-modal {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: white; padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 10001;
    max-width: 400px; width: 90%;
    text-align: center;
    display: none;
}
#message-modal h3 { margin: 0 0 1rem; font-size: 1.5rem; }
#message-modal p { margin: 0 0 1rem; font-size: 1rem; color: #4A5568; }
#message-modal.success h3 { color: #48BB78; }
#message-modal.error h3 { color: #F56565; }
#message-modal button {
    background: linear-gradient(90deg, #6B46C1, #F97316);
    color: white; border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px; cursor: pointer;
    font-weight: 500;
}
#message-modal button:hover {
    background: linear-gradient(90deg, #553C9A, #DD6B20);
}
#login-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: none;
    justify-content: center; align-items: center;
}
#login-modal {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 400px; width: 90%;
    position: relative; text-align: center;
}
.login-input {
    width: 100%; padding: 0.75rem;
    margin: 0.5rem 0;
    border: 2px solid #E2E8F0;
    border-radius: 8px; font-size: 1rem;
}
.login-btn {
    width: 100%; padding: 0.75rem;
    background: linear-gradient(90deg, #6B46C1, #F97316);
    color: white; border: none;
    border-radius: 8px; font-size: 1rem;
    cursor: pointer; margin-top: 0.5rem;
}
.login-btn:hover {
    background: linear-gradient(90deg, #553C9A, #DD6B20);
}
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    max-width: 400px;
    width: 90%;
    display: none;
}

.modal-content {
    text-align: center;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #718096;
    transition: color 0.3s ease;
}

.close:hover {
    color: #4A5568;
}

.modal h3 {
    font-size: 1.75rem;
    color: #6B46C1;
    margin-bottom: 1rem;
}

.modal form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal input,
.modal button {
    padding: 0.75rem;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.modal input:focus {
    outline: none;
    border-color: #6B46C1;
}

.modal button {
    background: linear-gradient(90deg, #6B46C1, #F97316);
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.modal button:hover {
    background: linear-gradient(90deg, #553C9A, #DD6B20);
    transform: scale(1.05);
}

.modal p a {
    color: #6B46C1;
    text-decoration: none;
    font-weight: 500;
}

.modal p a:hover {
    text-decoration: underline;
}

#login-overlay,
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
}

/* Mensagens de erro e sucesso */
.success-message {
    color: #48BB78;
    font-size: 0.9rem;
    padding: 0.75rem;
    background-color: #EDF7ED;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
}

.success-message::before {
    content: "Check ";
}

.error-message {
    color: #F56565;
    font-size: 0.9rem;
    padding: 0.75rem;
    background-color: #FEE2E2;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
}

.error-message::before {
    content: "Warning ";
}

/* PERFIL */

.profile-container {
    max-width: 600px;
    margin: 3rem auto;
    padding: 2rem;
    background: linear-gradient(135deg, #F7F5FF, #FFFFFF);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    text-align: center;
}

/* Forms */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.profile-form label {
    font-size: 1rem;
    font-weight: 500;
    color: #2D3748;
    text-align: left;
}

.profile-form input {
    padding: 0.75rem;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #FFFFFF;
}

.profile-form input:focus {
    outline: none;
    border-color: #6B46C1;
    box-shadow: 0 0 0 3px rgba(107,70,193,0.2);
}

/* Grupo de telefone */
.phone-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-group select {
    padding: 0.75rem;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    background-color: #FFFFFF;
    font-size: 1rem;
    flex: 0 0 auto;
    min-width: 120px;
}

.phone-group select:focus {
    outline: none;
    border-color: #6B46C1;
    box-shadow: 0 0 0 3px rgba(107,70,193,0.2);
}

.phone-group input {
    flex: 1;
}

/* Botões do Perfil */
.profile-form button {
    padding: 0.75rem;
    background: linear-gradient(90deg, #6B46C1, #F97316);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}

.profile-form button:hover {
    background: linear-gradient(90deg, #553C9A, #DD6B20);
    transform: scale(1.05);
}

h3 {
    margin-bottom: 1rem;
    margin-top: 2rem;
}

/* Rodapé */
footer {
    background: linear-gradient(90deg, #6B46C1, #F97316);
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
    width: 100%;
}

footer p {
    font-size: 1rem;
    font-weight: 400;
}

/* Responsividade */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem 0;
    }

    .pacotes {
        grid-template-columns: 1fr;
    }

    .portfolio-videos {
        grid-template-columns: 1fr;
    }

    .formulario h2,
    .portfolio h2,
    .fornecedores h2 {
        font-size: 1.75rem;
    }

    .user-area {
        flex-direction: column;
        align-items: flex-end;
        padding: 0.5rem;
    }

    .modal {
        max-width: 90%;
        padding: 1rem;
    }

    .modal h3 {
        font-size: 1.5rem;
    }

    .fornecedores-grid {
        grid-template-columns: 1fr;
    }

    .fotos {
        flex-direction: column;
        gap: 1rem;
    }

    .editor-profile img {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.75rem;
    }

    .container {
        margin: 2rem auto;
        padding: 1rem;
    }

    .pacotes div,
    .portfolio-videos div,
    .fornecedor-card {
        padding: 1rem;
    }

    .formulario button,
    .modal button,
    .fornecedor-card button {
        font-size: 0.95rem;
        padding: 0.5rem 1rem;
    }

    .fotos img {
        width: 150px;
        height: 150px;
    }
}