﻿/*=========================================
    OVERLAY
==========================================*/

.publish-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s ease, visibility .45s ease;
    z-index: 999999;
    overflow: hidden;
}

    /* Activo */

    .publish-overlay.active {
        opacity: 1;
        visibility: visible;
    }

/*=========================================
    FONDO APPLE
==========================================*/

.publish-backdrop {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(22px);
    background: radial-gradient(circle at 20% 20%, rgba(37,99,235,.18), transparent 45%), radial-gradient(circle at 80% 80%, rgba(59,130,246,.12), transparent 40%), rgba(255,255,255,.72);
}

/*=========================================
    TARJETA
==========================================*/

.publish-card {
    position: relative;
    width: 430px;
    padding: 45px;
    border-radius: 34px;
    /*background: rgba(255,255,255,.30);*/
    background: rgba(20, 24, 31, 0.88);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(35px);
    box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 1px rgba(255,255,255,.04);

    /*border: 1px solid rgba(255,255,255,.55);*/
    /*backdrop-filter: blur(30px);*/
    /*box-shadow: 0 35px 80px rgba(15,23,42,.15), inset 0 1px 1px rgba(255,255,255,.9);*/
    overflow: hidden;
    transform: translateY(40px) scale(.94);
    opacity: 0;
}

/*=========================================
    TITULO
==========================================*/

.publish-title {
    margin-top: 28px;
    font-size: 28px;
    font-weight: 700;
    color: #F8FAFC;
}

.publish-subtitle {
    margin-top: 12px;
    color: #CBD5E1;
    font-size: 15px;
    line-height: 1.7;
}

/*=========================================
    ESCENA
==========================================*/

.scene {
    position: relative;
    width: 260px;
    height: 190px;
    margin: auto;
}

/*=========================================
    SUELO
==========================================*/

.ground {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient( ellipse at center, rgba(59,130,246,.20), transparent );
    filter: blur(6px);
}

/*=========================================
    NUBES
==========================================*/

.cloud {
    position: absolute;
    background: white;
    border-radius: 999px;
    opacity: .95;
    filter: blur(.2px);
    animation: cloudFloat 6s ease-in-out infinite;
}

    .cloud::before,
    .cloud::after {
        content: "";
        position: absolute;
        background: white;
        border-radius: 50%;
    }

.cloud1 {
    width: 54px;
    height: 18px;
    left: 20px;
    top: 25px;
}

    .cloud1::before {
        width: 22px;
        height: 22px;
        left: 8px;
        top: -8px;
    }

    .cloud1::after {
        width: 28px;
        height: 28px;
        right: 8px;
        top: -12px;
    }

.cloud2 {
    width: 42px;
    height: 16px;
    right: 28px;
    top: 55px;
    animation-delay: 1.4s;
}

.pin {
    position: absolute;
    width: 34px;
    height: 44px;
    left: 50%;
    top: 5px;
    transform: translateX(-50%);
    z-index: 30;
}

    .pin svg {
        width: 100%;
        height: 100%;
    }

.pin-shape {
    fill: #ff5a5f;
}

.pin-center {
    fill: white;
}
.house {
    position: absolute;
    width: 150px;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 20;
}

    .house svg {
        width: 100%;
        display: block;
    }

.roof {
    fill: #2563eb;
}

.wall {
    fill: #f8fafc;
    stroke: #dbe4ee;
    stroke-width: 2;
}

.door {
    fill: #b7791f;
}

.window {
    fill: #dbeafe;
}

.house-shadow {
    fill: rgba(0,0,0,.10);
}
/*=========================================
    BARRA
==========================================*/

.progress {
    width: 100%;
    height: 8px;
    margin-top: 34px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
}

    .progress::before {
        content: "";
        display: block;
        width: 38%;
        height: 100%;
        border-radius: 999px;
        background: linear-gradient( 90deg, #2563eb, #60a5fa );
        animation: progressLoop 1.6s linear infinite;
    }

/*=========================================
    BRILLO TARJETA
==========================================*/

.publish-card::after {
    content: "";
    position: absolute;
    inset: -150px;
    background: linear-gradient( 120deg, transparent, rgba(255,255,255,.35), transparent );
    transform: rotate(18deg) translateX(-120%);
}

/*=========================================
    KEYFRAMES
==========================================*/

@keyframes cloudFloat {

    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(8px);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes progressLoop {

    from {
        transform: translateX(-180%);
    }

    to {
        transform: translateX(380%);
    }
}
