/* ========================================
   FREDELIN AI VÍDEO
   CRIAR-VÍDEO.CSS
======================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #111827;
}

/* ================================
   HEADER
================================ */

header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.navbar {
    max-width: 1180px;
    margin: 0 auto;
    min-height: 72px;
    padding: 0 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 22px;
    font-weight: 900;
    color: #111827;
}

.logo span {
    color: #6366f1;
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.navbar nav a {
    color: #4b5563;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.navbar nav a:hover {
    color: #6366f1;
}

/* ================================
   PÁGINA
================================ */

.create-page {
    min-height: calc(100vh - 145px);
    padding: 60px 20px 80px;
}

.create-container {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

/* ================================
   CABEÇALHO
================================ */

.create-header {
    text-align: center;
    margin-bottom: 35px;
}

.badge {
    display: inline-block;
    padding: 8px 15px;
    margin-bottom: 18px;

    border-radius: 999px;

    background: #eef2ff;
    color: #4f46e5;

    font-size: 14px;
    font-weight: 700;
}

.create-header h1 {
    margin: 0 0 14px;

    font-size: 44px;
    line-height: 1.1;
    font-weight: 900;
    color: #111827;
}

.create-header h1 span {
    color: #6366f1;
}

.create-header p {
    max-width: 650px;
    margin: 0 auto;

    color: #6b7280;
    font-size: 17px;
    line-height: 1.6;
}

/* ================================
   CARD
================================ */

.project-card {
    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 24px;

    padding: 36px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.07);
}

/* ================================
   ERRO
================================ */

.error-message {
    display: none;

    margin-bottom: 25px;
    padding: 14px 16px;

    border-radius: 12px;

    background: #fef2f2;
    border: 1px solid #fecaca;

    color: #b91c1c;

    font-size: 14px;
    line-height: 1.5;
}

/* ================================
   CAMPOS
================================ */

.field {
    margin-bottom: 28px;
}

.field-label {
    display: block;

    margin-bottom: 10px;

    color: #111827;

    font-size: 15px;
    font-weight: 800;
}

.field-label span {
    color: #6b7280;
    font-weight: 500;
}

/* ================================
   TEXTAREA
================================ */

.idea-input {
    width: 100%;
    min-height: 180px;

    padding: 17px;

    resize: vertical;

    border: 1px solid #d1d5db;
    border-radius: 14px;

    background: #ffffff;

    color: #111827;

    font-family: inherit;
    font-size: 16px;

    line-height: 1.6;

    outline: none;

    transition: 0.2s ease;
}

.idea-input::placeholder {
    color: #9ca3af;
}

.idea-input:hover {
    border-color: #9ca3af;
}

.idea-input:focus {
    border-color: #6366f1;

    box-shadow:
        0 0 0 4px rgba(99, 102, 241, 0.12);
}

/* ================================
   OPÇÕES DE FORMATO
================================ */

.options-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 15px;
}

.option {
    position: relative;
}

.option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option label {
    display: flex;
    flex-direction: column;

    min-height: 105px;

    padding: 18px;

    border: 1px solid #d1d5db;
    border-radius: 15px;

    background: #ffffff;

    cursor: pointer;

    transition: 0.2s ease;
}

.option label:hover {
    border-color: #818cf8;
    transform: translateY(-2px);
}

.option input:checked + label {
    border-color: #6366f1;

    background: #eef2ff;

    box-shadow:
        0 0 0 2px rgba(99, 102, 241, 0.12);
}

.option-title {
    margin-bottom: 8px;

    color: #111827;

    font-size: 15px;
    font-weight: 800;
}

.option-description {
    color: #6b7280;

    font-size: 13px;
    line-height: 1.4;
}

/* ================================
   SELECT
================================ */

.select-input {
    width: 100%;

    padding: 15px 16px;

    border: 1px solid #d1d5db;
    border-radius: 12px;

    background: #ffffff;

    color: #111827;

    font-family: inherit;
    font-size: 15px;

    cursor: pointer;

    outline: none;

    transition: 0.2s ease;
}

.select-input:hover {
    border-color: #9ca3af;
}

.select-input:focus {
    border-color: #6366f1;

    box-shadow:
        0 0 0 4px rgba(99, 102, 241, 0.12);
}

/* ================================
   RESUMO
================================ */

.summary {
    margin-top: 10px;
    margin-bottom: 30px;

    padding: 20px;

    border-radius: 16px;

    background: #f8fafc;

    border: 1px solid #e5e7eb;
}

.summary-title {
    margin-bottom: 16px;

    color: #111827;

    font-size: 16px;
    font-weight: 800;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 11px 0;

    border-bottom: 1px solid #e5e7eb;

    color: #6b7280;

    font-size: 14px;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item span:last-child {
    color: #111827;
    font-weight: 700;
}

/* ================================
   AÇÕES
================================ */

.create-actions {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;
}

.btn-back {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 52px;

    padding: 0 22px;

    border-radius: 12px;

    border: 1px solid #d1d5db;

    background: #ffffff;

    color: #374151;

    text-decoration: none;

    font-size: 15px;
    font-weight: 700;

    transition: 0.2s ease;
}

.btn-back:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* ================================
   BOTÃO GERAR
================================ */

.btn-generate {
    flex: 1;

    min-height: 52px;

    padding: 0 25px;

    border: none;
    border-radius: 12px;

    background: #6366f1;

    color: #ffffff;

    font-size: 16px;
    font-weight: 800;

    cursor: pointer;

    transition: 0.2s ease;
}

.btn-generate:hover {
    background: #4f46e5;

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(79, 70, 229, 0.25);
}

.btn-generate:active {
    transform: translateY(0);
}

.btn-generate:disabled {
    background: #9ca3af;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}

/* ================================
   LOADING
================================ */

.loading {
    display: none;

    align-items: center;
    justify-content: center;

    gap: 10px;
}

.btn-generate.loading-active #buttonText {
    display: none;
}

.btn-generate.loading-active #buttonLoading {
    display: flex;
}

.spinner {
    width: 18px;
    height: 18px;

    border: 3px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;

    border-radius: 50%;

    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ================================
   FOOTER
================================ */

footer {
    padding: 25px 20px;

    border-top: 1px solid #e5e7eb;

    background: #ffffff;

    text-align: center;

    color: #6b7280;

    font-size: 13px;
}

footer p {
    margin: 0;
}

/* ================================
   RESPONSIVO
================================ */

@media (max-width: 800px) {

    .navbar {
        padding: 0 18px;
    }

    .navbar nav {
        gap: 14px;
    }

    .navbar nav a {
        font-size: 13px;
    }

    .create-page {
        padding: 40px 15px 60px;
    }

    .create-header h1 {
        font-size: 36px;
    }

    .project-card {
        padding: 25px;
        border-radius: 18px;
    }

    .options-grid {
        grid-template-column: 1fr;
    }
}

@media (max-width: 600px) {

    .navbar {
        flex-direction: column;
        justify-content: center;

        gap: 12px;

        padding: 15px;
    }

    .create-header h1 {
        font-size: 31px;
    }

    .create-header p {
        font-size: 15px;
    }

    .project-card {
        padding: 20px;
    }

    .create-actions {
        flex-direction: column-reverse;
    }

    .btn-back,
    .btn-generate {
        width: 100%;
    }

    .summary-item {
        gap: 15px;
    }
}