@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600&display=swap');

/* ==========================================
   RESET
========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #faf8ff;
    color: #17131f;
    font-family: "DM Sans", sans-serif;
    overflow-x: hidden;
}

/* ==========================================
   VARIÁVEIS
========================================== */

:root {
    --purple: #7c3aed;
    --purple-dark: #5b21b6;
    --purple-light: #a78bfa;
    --purple-soft: #ede9fe;

    --background: #faf8ff;
    --surface: #ffffff;
    --surface-soft: #f5f1ff;

    --text: #17131f;
    --muted: #777080;

    --border: #e8e1f2;

    --shadow:
        0 20px 60px rgba(91, 33, 182, .08);

    --transition:
        all .35s cubic-bezier(.22, 1, .36, 1);
}

/* ==========================================
   CABEÇALHO
========================================== */

.header {
    height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 7%;

    background: rgba(250, 248, 255, .88);

    border-bottom: 1px solid rgba(124, 58, 237, .08);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    position: sticky;
    top: 0;

    z-index: 100;

    transition: var(--transition);
}

.header:hover {
    border-bottom-color: rgba(124, 58, 237, .16);
}

/* LOGO */

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: linear-gradient(
        135deg,
        #7c3aed,
        #a855f7
    );

    color: white;

    font-size: 21px;

    box-shadow:
        0 8px 25px rgba(124, 58, 237, .25);

    transition: var(--transition);
}

.logo:hover .logo-icon {
    transform: rotate(-5deg) scale(1.06);
}

.logo h1 {
    font-family: "Playfair Display", serif;

    font-size: 20px;

    font-weight: 500;
}

.logo p {
    font-size: 10px;

    letter-spacing: 2px;

    text-transform: uppercase;

    color: var(--muted);
}

/* NAV */

nav {
    display: flex;
    gap: 35px;
}

nav a {
    position: relative;

    color: #39313f;

    text-decoration: none;

    font-size: 14px;

    transition: var(--transition);
}

nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    border-radius: 10px;

    background: var(--purple);

    transition: var(--transition);
}

nav a:hover {
    color: var(--purple);
}

nav a:hover::after {
    width: 100%;
}

.menu-btn {
    display: none;

    background: white;

    border: 1px solid var(--border);

    width: 42px;
    height: 42px;

    border-radius: 12px;

    font-size: 21px;

    cursor: pointer;

    transition: var(--transition);
}

.menu-btn:hover {
    background: var(--purple-soft);
    color: var(--purple);
}

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

.hero {
    min-height: 650px;

    padding: 100px 7%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 85% 30%,
            rgba(124, 58, 237, .13),
            transparent 30%
        );
}

/* manchas decorativas */

.hero::before {
    content: "";

    position: absolute;

    width: 400px;
    height: 400px;

    background: #a855f7;

    opacity: .06;

    border-radius: 50%;

    filter: blur(80px);

    right: -150px;
    top: -100px;

    pointer-events: none;
}

.hero-content {
    max-width: 700px;

    animation: heroEnter .9s ease forwards;
}

@keyframes heroEnter {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tag,
.section-label {

    font-size: 11px;

    letter-spacing: 3px;

    font-weight: 700;

    color: var(--purple);
}

.hero h2 {

    font-family: "Playfair Display", serif;

    font-size: clamp(48px, 7vw, 90px);

    font-weight: 400;

    line-height: 1;

    margin: 25px 0;

    letter-spacing: -2px;
}

.hero h2 span {

    display: block;

    font-style: italic;

    color: var(--purple);
}

.hero p {

    max-width: 500px;

    line-height: 1.8;

    color: var(--muted);

    font-size: 16px;
}

/* BOTÃO */

.hero-btn {

    display: inline-flex;

    align-items: center;

    gap: 30px;

    margin-top: 35px;

    padding: 16px 24px;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #7c3aed,
            #9333ea
        );

    color: white;

    text-decoration: none;

    font-size: 13px;

    box-shadow:
        0 12px 30px rgba(124, 58, 237, .25);

    transition: var(--transition);
}

.hero-btn:hover {

    transform: translateY(-4px);

    box-shadow:
        0 18px 40px rgba(124, 58, 237, .35);
}

.hero-btn span {

    font-size: 18px;

    transition: var(--transition);
}

.hero-btn:hover span {

    transform: translateX(5px);
}

/* DECORAÇÃO */

.hero-decoration {

    width: 330px;

    height: 420px;

    position: relative;

    opacity: .75;

    animation: decorationEnter 1.2s ease forwards;
}

@keyframes decorationEnter {

    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: .75;
        transform: translateX(0);
    }
}

.circle {

    width: 280px;
    height: 280px;

    border: 1px solid rgba(124, 58, 237, .3);

    border-radius: 50%;

    position: absolute;

    top: 40px;

    right: 0;

    box-shadow:
        0 0 0 30px rgba(124, 58, 237, .025),
        0 0 0 60px rgba(124, 58, 237, .018);

    animation: floating 5s ease-in-out infinite;
}

@keyframes floating {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.line {

    width: 1px;

    height: 400px;

    background:
        linear-gradient(
            transparent,
            rgba(124, 58, 237, .5),
            transparent
        );

    position: absolute;

    right: 140px;
}

.hero-decoration span {

    position: absolute;

    bottom: 0;

    right: 0;

    font-size: 12px;

    color: var(--purple);
}

/* ==========================================
   ESTATÍSTICAS
========================================== */

.stats {

    margin: 0 7%;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    background: white;

    border: 1px solid var(--border);

    border-radius: 20px;

    box-shadow: var(--shadow);

    overflow: hidden;
}

.stat {

    padding: 35px;

    text-align: center;

    border-right: 1px solid var(--border);

    transition: var(--transition);
}

.stat:hover {

    background: var(--purple-soft);

    transform: translateY(-3px);
}

.stat:last-child {
    border: none;
}

.stat strong {

    display: block;

    font-family: "Playfair Display", serif;

    font-size: 38px;

    font-weight: 400;

    color: var(--purple);
}

.stat span {

    color: var(--muted);

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 2px;
}

/* ==========================================
   COLEÇÃO
========================================== */

main {

    padding: 120px 7%;
}

.collection-header {

    display: flex;

    justify-content: space-between;

    margin-bottom: 60px;
}

.collection-header h2 {

    font-family: "Playfair Display", serif;

    font-size: clamp(42px, 6vw, 70px);

    font-weight: 400;

    line-height: 1;

    margin-top: 20px;
}

.collection-description {

    max-width: 300px;

    padding-top: 40px;

    color: var(--muted);

    line-height: 1.7;
}

/* ==========================================
   FILTROS
========================================== */

.filters {

    display: flex;

    gap: 10px;

    margin-bottom: 35px;

    overflow-x: auto;

    padding-bottom: 5px;

    scrollbar-width: none;
}

.filters::-webkit-scrollbar {
    display: none;
}

.filter {

    border: 1px solid var(--border);

    background: white;

    color: #555;

    padding: 10px 18px;

    border-radius: 30px;

    cursor: pointer;

    white-space: nowrap;

    font-family: inherit;

    transition: var(--transition);
}

.filter:hover {

    border-color: var(--purple-light);

    color: var(--purple);

    transform: translateY(-2px);
}

.filter.active {

    background:
        linear-gradient(
            135deg,
            #7c3aed,
            #9333ea
        );

    color: white;

    border-color: transparent;

    box-shadow:
        0 8px 20px rgba(124, 58, 237, .2);
}

/* ==========================================
   GALERIA
========================================== */

.gallery {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 25px;

    width: 100%;
}

/* CARD */

.art-card {

    background: white;

    cursor: pointer;

    position: relative;

    overflow: hidden;

    min-width: 0;

    border: 1px solid var(--border);

    border-radius: 20px;

    box-shadow:
        0 8px 25px rgba(30, 20, 50, .04);

    transition:
        transform .45s cubic-bezier(.22, 1, .36, 1),
        box-shadow .45s ease,
        border-color .45s ease;

    animation: cardEnter .7s ease both;
}

@keyframes cardEnter {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.art-card:hover {

    transform: translateY(-8px);

    border-color:
        rgba(124, 58, 237, .18);

    box-shadow:
        0 25px 55px rgba(91, 33, 182, .13);
}

/* FOTO */

.art-image {

    width: 100%;

    height: 420px;

    overflow: hidden;

    background: var(--purple-soft);

    position: relative;
}

.art-image::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(45, 20, 70, .18),
            transparent 35%
        );

    opacity: 0;

    transition: var(--transition);
}

.art-card:hover .art-image::after {
    opacity: 1;
}

.art-image img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;

    transition:
        transform .7s cubic-bezier(.22, 1, .36, 1);
}

.art-card:hover .art-image img {

    transform:
        scale(1.07);
}

/* INFO */

.art-info {

    padding: 22px;
}

.art-category {

    display: block;

    font-size: 10px;

    letter-spacing: 2px;

    color: var(--purple);

    text-transform: uppercase;

    font-weight: 700;
}

.art-info h3 {

    font-family: "Playfair Display", serif;

    font-size: 25px;

    font-weight: 400;

    margin: 8px 0;
}

.art-info p {

    color: var(--muted);

    font-size: 13px;

    line-height: 1.6;

    margin-bottom: 12px;
}

.art-info small {

    font-size: 12px;

    color: #999;
}

/* ==========================================
   EMPTY
========================================== */

.empty {

    text-align: center;

    padding: 100px 20px;

    display: none;
}

.empty-icon {

    font-size: 40px;

    margin-bottom: 15px;
}

.empty h3 {

    font-family: "Playfair Display", serif;

    font-size: 30px;

    font-weight: 400;
}

.empty p {

    color: var(--muted);

    margin-top: 10px;
}

/* ==========================================
   SOBRE
========================================== */

.about {

    background:
        linear-gradient(
            135deg,
            #17101f,
            #241238
        );

    color: white;

    padding: 120px 7%;

    display: grid;

    grid-template-columns: 150px 1fr;

    gap: 50px;

    position: relative;

    overflow: hidden;
}

.about::before {

    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    border-radius: 50%;

    background: #7c3aed;

    opacity: .12;

    filter: blur(90px);

    right: -100px;

    bottom: -100px;
}

.about-number {

    font-family: "Playfair Display", serif;

    font-size: 18px;

    opacity: .5;
}

.about-content {

    max-width: 800px;

    position: relative;

    z-index: 2;
}

.about-content .section-label {

    color: #c4b5fd;

    opacity: .8;
}

.about h2 {

    font-family: "Playfair Display", serif;

    font-size: clamp(45px, 6vw, 75px);

    font-weight: 400;

    line-height: 1;

    margin: 25px 0 40px;
}

.about p {

    max-width: 650px;

    color: #c9c2d0;

    line-height: 1.8;

    margin-bottom: 20px;
}

/* ==========================================
   FOOTER
========================================== */

footer {

    background: #120c18;

    color: white;

    padding: 50px 7%;

    border-top: 1px solid rgba(255,255,255,.08);
}

.footer-logo {

    font-family: "Playfair Display", serif;

    font-size: 25px;
}

footer p {

    color: #999;

    margin: 15px 0 35px;
}

footer small {

    color: #666;
}

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

.modal {

    position: fixed;

    inset: 0;

    display: none;

    z-index: 1000;
}

.modal.show,
.modal.active {

    display: flex;

    align-items: center;

    justify-content: center;

    animation: modalFade .3s ease;
}

@keyframes modalFade {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-overlay {

    position: absolute;

    inset: 0;

    background: rgba(24, 10, 35, .72);

    backdrop-filter: blur(8px);
}

.modal-box {

    position: relative;

    width: min(900px, 92%);

    max-height: 90vh;

    overflow-y: auto;

    background: white;

    display: grid;

    grid-template-columns: 1fr 1fr;

    border-radius: 24px;

    overflow: hidden;

    z-index: 2;

    box-shadow:
        0 40px 100px rgba(0,0,0,.3);

    animation:
        modalEnter .45s cubic-bezier(.22, 1, .36, 1);
}

@keyframes modalEnter {

    from {
        opacity: 0;
        transform: scale(.94) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-box img {

    width: 100%;

    height: 550px;

    object-fit: cover;
}

.modal-info {

    padding: 50px;

    display: flex;

    flex-direction: column;

    justify-content: center;
}

.modal-info > span {

    font-size: 10px;

    letter-spacing: 3px;

    color: var(--purple);

    font-weight: 700;
}

.modal-info h2 {

    font-family: "Playfair Display", serif;

    font-size: 45px;

    font-weight: 400;

    margin: 20px 0;
}

.modal-info p {

    color: var(--muted);

    line-height: 1.8;
}

.modal-author {

    margin-top: 30px;

    border-top: 1px solid var(--border);

    padding-top: 20px;
}

.modal-author span {

    display: block;

    font-size: 11px;

    color: #888;
}

.modal-author strong {

    display: block;

    margin-top: 5px;

    font-family: "Playfair Display", serif;

    font-size: 20px;
}

.close-btn {

    position: absolute;

    right: 15px;
    top: 15px;

    width: 40px;
    height: 40px;

    border: none;

    border-radius: 50%;

    background: rgba(255,255,255,.9);

    color: #333;

    font-size: 25px;

    cursor: pointer;

    z-index: 5;

    transition: var(--transition);
}

.close-btn:hover {

    background: var(--purple);

    color: white;

    transform: rotate(90deg);
}

.favorite-modal {

    margin-top: 30px;

    padding: 13px;

    border: 1px solid var(--border);

    border-radius: 12px;

    background: transparent;

    color: var(--purple);

    cursor: pointer;

    transition: var(--transition);
}

.favorite-modal:hover {

    background: var(--purple);

    color: white;

    border-color: var(--purple);
}

/* ==========================================
   ADMINISTRAÇÃO
========================================== */

.admin-page {

    max-width: 850px;

    margin: auto;

    padding: 90px 7%;
}

.admin-page h2 {

    font-family: "Playfair Display", serif;

    font-size: clamp(45px, 8vw, 75px);

    font-weight: 400;

    line-height: 1;

    margin: 25px 0 60px;
}

.admin-page h2 em {

    font-style: italic;

    color: var(--purple);
}

.admin-back {

    color: var(--purple);

    text-decoration: none;

    font-size: 13px;
}

/* FORM */

#obraForm {

    display: flex;

    flex-direction: column;

    gap: 25px;
}

#obraForm label {

    display: flex;

    flex-direction: column;

    gap: 10px;

    font-size: 12px;

    font-weight: 600;

    letter-spacing: .5px;
}

/* INPUTS */

#obraForm input[type="text"],
#obraForm textarea,
#obraForm select {

    width: 100%;

    padding: 16px;

    background: white;

    border: 1px solid var(--border);

    border-radius: 12px;

    outline: none;

    font-family: inherit;

    font-size: 14px;

    transition: var(--transition);
}

#obraForm input:focus,
#obraForm textarea:focus,
#obraForm select:focus {

    border-color: var(--purple);

    box-shadow:
        0 0 0 4px rgba(124,58,237,.08);
}

#obraForm textarea {

    min-height: 140px;

    resize: vertical;
}

/* ==========================================
   UPLOAD
========================================== */

.upload-area {

    width: 100%;
}

.upload-area label {

    display: block !important;

    border: 1.5px dashed #cfc4df;

    border-radius: 18px;

    min-height: 300px;

    cursor: pointer;

    position: relative;

    overflow: hidden;

    transition: var(--transition);
}

.upload-area label:hover {

    background: var(--purple-soft);

    border-color: var(--purple);
}

#foto {
    display: none;
}

#previewContainer {

    min-height: 300px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    padding: 30px;
}

.upload-icon {

    width: 65px;
    height: 65px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 20px;

    background: var(--purple-soft);

    color: var(--purple);

    font-size: 30px;

    margin-bottom: 15px;
}

#previewContainer strong {

    font-size: 16px;
}

#previewContainer span {

    color: var(--muted);

    font-size: 12px;

    margin-top: 8px;
}

/* PREVIEW */

.photo-preview {

    width: 100%;

    height: 420px;

    object-fit: cover;

    display: block;

    border-radius: 15px;
}

/* BOTÃO */

.save-btn {

    padding: 18px;

    border: none;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #7c3aed,
            #9333ea
        );

    color: white;

    cursor: pointer;

    font-family: inherit;

    font-size: 13px;

    letter-spacing: 1px;

    box-shadow:
        0 10px 25px rgba(124,58,237,.2);

    transition: var(--transition);
}

.save-btn:hover {

    transform: translateY(-3px);

    box-shadow:
        0 15px 35px rgba(124,58,237,.3);
}

/* MENSAGEM */

.admin-message {

    margin-top: 20px;

    font-size: 13px;

    text-align: center;

    min-height: 20px;
}

/* ==========================================
   LISTA ADMIN
========================================== */

.admin-list {

    margin-top: 100px;

    border-top: 1px solid var(--border);

    padding-top: 50px;
}

.admin-list h3 {

    font-family: "Playfair Display", serif;

    font-size: 38px;

    font-weight: 400;

    margin-top: 15px;
}

.admin-item {

    display: flex;

    align-items: center;

    gap: 20px;

    padding: 20px 0;

    border-bottom: 1px solid var(--border);
}

.admin-item img {

    width: 90px;

    height: 90px;

    object-fit: cover;

    border-radius: 12px;
}

.admin-item-info {

    flex: 1;
}

.admin-item-info strong {

    display: block;

    font-family: "Playfair Display", serif;

    font-size: 20px;
}

.admin-item-info span {

    font-size: 11px;

    color: var(--muted);
}

.delete-btn {

    border: 1px solid #ddd;

    background: white;

    color: #777;

    padding: 10px 14px;

    border-radius: 10px;

    cursor: pointer;

    font-size: 12px;

    transition: var(--transition);
}

.delete-btn:hover {

    background: #fff1f2;

    color: #e11d48;

    border-color: #fecdd3;
}

/* ==========================================
   DOWNLOADS
========================================== */

.resultado-publicacao {

    margin-top: 20px;

    padding: 20px;

    border-radius: 15px;

    background: var(--purple-soft);

    border: 1px solid var(--border);
}

.btn-download {

    display: block;

    margin: 12px 0;

    padding: 14px 18px;

    border-radius: 10px;

    background: var(--purple);

    color: white;

    text-decoration: none;

    font-weight: 600;

    text-align: center;

    transition: var(--transition);
}

.btn-download:hover {

    transform: translateY(-2px);

    background: var(--purple-dark);
}

.passos {

    margin-top: 20px;

    padding: 15px;

    border-radius: 10px;

    background: rgba(124,58,237,.05);

    line-height: 1.7;
}

/* ==========================================
   RESPONSIVO
========================================== */

@media (max-width: 800px) {

    .header {
        padding: 0 5%;
    }

    nav {

        display: none;

        position: absolute;

        top: 82px;

        left: 0;

        width: 100%;

        background: rgba(250,248,255,.96);

        backdrop-filter: blur(15px);

        flex-direction: column;

        padding: 25px 5%;

        border-bottom: 1px solid var(--border);

        gap: 22px;
    }

    nav.open {
        display: flex;

        animation:
            mobileMenu .3s ease;
    }

    @keyframes mobileMenu {

        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .menu-btn {
        display: flex;

        align-items: center;

        justify-content: center;
    }

    /* HERO */

    .hero {

        min-height: 600px;

        padding: 80px 5%;

        background:
            radial-gradient(
                circle at 80% 20%,
                rgba(124,58,237,.12),
                transparent 40%
            );
    }

    .hero-decoration {
        display: none;
    }

    /* STATS */

    .stats {

        margin: 0 5%;

        grid-template-columns:
            repeat(3, 1fr);

        border-radius: 16px;
    }

    .stat {

        padding: 25px 5px;
    }

    .stat strong {
        font-size: 28px;
    }

    .stat span {
        font-size: 8px;
        letter-spacing: 1px;
    }

    /* COLEÇÃO */

    main {
        padding: 80px 5%;
    }

    .collection-header {
        display: block;
    }

    .collection-description {
        padding-top: 25px;
    }

    /* GALERIA */

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

    .art-card {
        border-radius: 18px;
    }

    .art-image {
        height: 380px;
    }

    /* SOBRE */

    .about {

        grid-template-columns: 1fr;

        padding: 80px 5%;

        gap: 25px;
    }

    /* MODAL */

    .modal-box {

        grid-template-columns: 1fr;

        width: 94%;

        max-height: 92vh;

        border-radius: 18px;
    }

    .modal-box img {
        height: 350px;
    }

    .modal-info {
        padding: 30px;
    }

    /* ADMIN */

    .admin-page {
        padding: 70px 5%;
    }

    .admin-page h2 {
        margin-bottom: 40px;
    }

    .upload-area label,
    #previewContainer {
        min-height: 250px;
    }

    .photo-preview {
        height: 320px;
    }

    .admin-item img {

        width: 70px;

        height: 70px;
    }

    .admin-item {
        gap: 12px;
    }
}

/* ==========================================
   TELEMÓVEIS PEQUENOS
========================================== */

@media (max-width: 450px) {

    .hero h2 {
        font-size: 48px;
    }

    .hero p {
        font-size: 14px;
    }

    .art-image {
        height: 350px;
    }

    .art-info h3 {
        font-size: 23px;
    }

    .modal-box img {
        height: 300px;
    }

    .modal-info h2 {
        font-size: 35px;
    }

    .stats {
        border-radius: 12px;
    }

    .stat strong {
        font-size: 23px;
    }
}

/* ==========================================
   SELEÇÃO DE TEXTO
========================================== */

::selection {

    background: #c4b5fd;

    color: #2e1065;
}

/* ==========================================
   SCROLLBAR
========================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f1ff;
}

::-webkit-scrollbar-thumb {

    background:
        linear-gradient(
            #a78bfa,
            #7c3aed
        );

    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6d28d9;
}