/* Frontend styles — New Face Alunos */

/* ==============================
   HERO SECTION
   ============================== */

.nf-hero {
    background: linear-gradient(135deg, #54C5D0 0%, #3BA8B3 50%, #2E9AA5 100%);
    padding: 56px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative floating circles */
.nf-hero::before,
.nf-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.12;
    background: #fff;
}

.nf-hero::before {
    width: 300px;
    height: 300px;
    top: -80px;
    right: -60px;
    animation: nf-float 8s ease-in-out infinite;
}

.nf-hero::after {
    width: 200px;
    height: 200px;
    bottom: -60px;
    left: -40px;
    animation: nf-float 6s ease-in-out infinite reverse;
}

@keyframes nf-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-20px) scale(1.05); }
}

/* Entrance animations */
@keyframes nf-fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes nf-scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

.nf-hero__container {
    max-width: 560px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.nf-hero__title {
    color: #ffffff;
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0,0,0,0.1);
    animation: nf-fadeUp 0.6s ease both;
}

.nf-hero__subtitle {
    color: rgba(255,255,255,0.9);
    font-size: clamp(0.88rem, 1.8vw, 1rem);
    margin: 0 0 28px;
    line-height: 1.5;
    animation: nf-fadeUp 0.6s 0.1s ease both;
}

/* ── Form card ── */
.nf-hero__form {
    width: 100%;
    animation: nf-scaleIn 0.5s 0.2s ease both;
}

.nf-hero__form-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 28px 24px 24px;
    max-width: 480px;
    margin: 0 auto;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.12),
        0 2px 8px rgba(0,0,0,0.06);
}

.nf-hero__form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #3BA8B3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.nf-hero__input-wrap {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e0e8ec;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.nf-hero__input-wrap:focus-within {
    border-color: #54C5D0;
    box-shadow: 0 0 0 4px rgba(84,197,208,0.15);
}

.nf-hero__input {
    flex: 1;
    border: none;
    padding: 16px 18px;
    font-size: 16px;
    outline: none;
    background: transparent;
    color: #1a1a1a;
    min-width: 0;
    font-weight: 500;
}

.nf-hero__input::placeholder {
    color: #aab5bc;
    font-weight: 400;
}

.nf-hero__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: #54C5D0;
    color: #ffffff;
    padding: 16px 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s, transform 0.15s, box-shadow 0.25s;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.nf-hero__btn:hover {
    background: #3BA8B3;
    transform: translateX(-2px);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
}

.nf-hero__btn:active {
    transform: scale(0.97);
}

.nf-hero__btn:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

/* Pulse animation on the button */
.nf-hero__btn-pulse {
    position: relative;
}

.nf-hero__btn-pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    animation: nf-pulse 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes nf-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(84,197,208,0.4); }
    50%      { box-shadow: 0 0 0 8px rgba(84,197,208,0); }
}

.nf-hero__error {
    color: #d9534f;
    font-size: 13px;
    margin-top: 12px;
    text-align: center;
    font-weight: 500;
    animation: nf-fadeUp 0.3s ease;
}

/* ==============================
   MODAL
   ============================== */

.nf-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.nf-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.nf-modal__content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 400px;
    width: 100%;
    padding: 36px 28px 28px;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0,0,0,0.25);
    animation: nf-modal-in 0.35s ease;
}

@keyframes nf-modal-in {
    from { opacity: 0; transform: scale(0.88) translateY(24px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.nf-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.nf-modal__close:hover {
    color: #333;
}

.nf-modal__photo-wrap {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid #54C5D0;
    background: #f0f4f6;
    box-shadow: 0 4px 20px rgba(84,197,208,0.25);
}

.nf-modal__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nf-modal__name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2E9AA5;
    margin: 0 0 6px;
}

.nf-modal__msg {
    color: #666;
    font-size: 0.95rem;
    margin: 0 0 4px;
}

.nf-modal__code {
    color: #999;
    font-size: 0.85rem;
    margin: 0 0 24px;
}

.nf-modal__code code {
    background: #edf7f8;
    color: #2E9AA5;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.nf-modal__actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.nf-modal__btn {
    padding: 13px 28px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.nf-modal__btn--confirm {
    background: #54C5D0;
    color: #fff;
}

.nf-modal__btn--confirm:hover {
    background: #3BA8B3;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(84,197,208,0.35);
}

.nf-modal__btn--cancel {
    background: #f0f0f0;
    color: #666;
}

.nf-modal__btn--cancel:hover {
    background: #e0e0e0;
}

/* ==============================
   RESPONSIVE
   ============================== */

@media (max-width: 600px) {
    .nf-hero {
        padding: 40px 16px 44px;
    }

    .nf-hero__form-card {
        padding: 22px 18px 20px;
        border-radius: 14px;
    }

    .nf-hero__input-wrap {
        flex-direction: column;
        border-radius: 12px;
    }

    .nf-hero__input {
        text-align: center;
        padding: 16px 14px;
        font-size: 17px;
        border-bottom: 1px solid #e8eff2;
    }

    .nf-hero__btn {
        justify-content: center;
        padding: 15px 20px;
        font-size: 16px;
        border-radius: 0 0 10px 10px;
    }

    .nf-hero__btn svg {
        width: 18px;
        height: 18px;
    }

    .nf-modal__content {
        padding: 28px 20px 24px;
        border-radius: 14px;
    }

    .nf-modal__photo-wrap {
        width: 110px;
        height: 110px;
    }

    .nf-modal__actions {
        flex-direction: column;
    }

    .nf-modal__btn {
        width: 100%;
    }
}

@media (max-width: 360px) {
    .nf-hero {
        padding: 32px 12px 36px;
    }

    .nf-hero__title {
        font-size: 1.15rem;
    }

    .nf-hero__form-card {
        padding: 18px 14px 16px;
    }
}

/* ==============================
   MOCKUPS GALLERY (Product Page)
   ============================== */

.nf-mockups-gallery {
    margin: 24px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f0fafb 0%, #e8f6f8 100%);
    border: 1px solid #d0ecef;
    border-radius: 12px;
}

.nf-mockups-gallery__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2E9AA5;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d0ecef;
}

.nf-mockups-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.nf-mockups-gallery__item {
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    background: #fff;
    position: relative;
}

.nf-mockups-gallery__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46,154,165,0.2);
}

.nf-mockups-gallery__zoom-icon {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(46,154,165,0.85);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.nf-mockups-gallery__item:hover .nf-mockups-gallery__zoom-icon {
    opacity: 1;
}

.nf-mockups-gallery__img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==============================
   LIGHTBOX / MODAL GALERIA
   ============================== */

.nf-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.nf-lightbox--open {
    opacity: 1;
    visibility: visible;
}

.nf-lightbox__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.nf-lightbox__modal {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0,0,0,0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.nf-lightbox--open .nf-lightbox__modal {
    transform: scale(1) translateY(0);
}

.nf-lightbox__close {
    position: absolute;
    top: 8px;
    right: 12px;
    z-index: 10;
    background: none;
    border: none;
    color: #666;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    transition: color 0.2s;
}

.nf-lightbox__close:hover {
    color: #333;
}

.nf-lightbox__main {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 8px;
    flex: 1;
    min-height: 0;
}

.nf-lightbox__arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: none;
    background: #f0f4f6;
    color: #2E9AA5;
    font-size: 22px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.nf-lightbox__arrow:hover {
    background: #2E9AA5;
    color: #fff;
}

.nf-lightbox__stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
}

.nf-lightbox__img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 8px;
    user-select: none;
    transition: opacity 0.2s;
}

.nf-lightbox__footer {
    border-top: 1px solid #eee;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.nf-lightbox__counter {
    font-size: 13px;
    font-weight: 600;
    color: #2E9AA5;
    letter-spacing: 1px;
}

.nf-lightbox__thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    max-width: 100%;
    padding: 2px;
}

.nf-lightbox__thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: opacity 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.nf-lightbox__thumb:hover {
    opacity: 0.8;
}

.nf-lightbox__thumb--active {
    border-color: #2E9AA5;
    opacity: 1;
}

@media (max-width: 600px) {
    .nf-mockups-gallery {
        padding: 14px;
        margin: 16px 0;
    }

    .nf-mockups-gallery__grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 8px;
    }

    .nf-mockups-gallery__zoom-icon {
        opacity: 1;
    }

    .nf-lightbox {
        padding: 10px;
    }

    .nf-lightbox__modal {
        border-radius: 12px;
        max-height: 95vh;
    }

    .nf-lightbox__main {
        padding: 10px;
        gap: 4px;
    }

    .nf-lightbox__arrow {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .nf-lightbox__img {
        max-height: 55vh;
    }

    .nf-lightbox__thumb {
        width: 44px;
        height: 44px;
    }

    .nf-lightbox__footer {
        padding: 8px 12px;
    }
}
