:root{
    --ocohost-primary:#ff3d00;
    --ocohost-dark:#111827;
    --ocohost-text:#374151;
    --ocohost-radius:22px;
    --ocohost-shadow:0 10px 35px rgba(0,0,0,.08);
    --ocohost-transition:.35s ease;
}

/* =========================
   BASE
========================= */

.ocohost-wrapper{
    width:100%;
}

.ocohost-container{
    width:100%;
    max-width:1280px;
    margin:0 auto;
    padding:20px;
}

.ocohost-wrapper *{
    box-sizing:border-box;
}

.ocohost-wrapper a p{
    text-decoration:none;
    color:inherit;
    font-size: 10px;
}

/* =========================
   GRID
========================= */

.ocohost-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;
}

/* =========================
   CARD
========================= */

.ocohost-card{
    position:relative;
    overflow:hidden;
    border-radius:var(--ocohost-radius);
    background:var(--ocohost-bg);
    box-shadow:var(--ocohost-shadow);
    transition:var(--ocohost-transition);
}

.ocohost-card:hover{
    transform:translateY(-8px);
}

.ocohost-card img{
    width:100%;
    height:260px;
    object-fit:cover;
    display:block;
    transition:1s ease;
}

.ocohost-card:hover img{
    transform:scale(1.06);
}

.ocohost-card::before{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(to top, rgba(0,0,0,.75), transparent);
    pointer-events:none;
    z-index:1;
}

.ocohost-card .content{
    position:absolute;
    bottom:0;
    width:100%;
    padding:20px;
    color:var(--ocohost-text);
    z-index:2;
}

/* =========================
   HERO
========================= */

.ocohost-hero{
    width:100%;
}

.hero-grid{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:20px;
}

.hero-main{
    position:relative;
    height:520px;
    border-radius:var(--ocohost-radius);
    overflow:hidden;
}

.hero-main img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.hero-side{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.hero-small{
    position:relative;
    height:250px;
    border-radius:var(--ocohost-radius);
    overflow:hidden;
}

.hero-small img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.hero-overlay{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    padding:25px;

    background:linear-gradient(
        to top,
        rgba(0,0,0,.85),
        transparent
    );

    color:var(--ocohost-text);
}

.hero-overlay h1{
    font-size:38px;
    font-weight:900;
    margin:0;
}

.hero-overlay h2{
    font-size:18px;
    font-weight:800;
    margin:0;
}

.hero-category{
    display:inline-block;
    background:var(--ocohost-primary);
    padding:5px 10px;
    border-radius:999px;
    font-size:11px;
    font-weight:700;
    margin-bottom:10px;
    text-transform:uppercase;
}

.hero-excerpt{
    font-size:15px;
    opacity:.9;
    margin-top:10px;
}

/* =========================
   SLIDER
========================= */

.ocohost-slider{
    position:relative;
    overflow:hidden;
    border-radius:var(--ocohost-radius);
}

.slide{
    display:none;
}

.slide.active{
    display:block;
    animation:fade .8s ease;
}

.slide img{
    width:100%;
    height:500px;
    object-fit:cover;
    display:block;
}

/* =========================
   MASONRY GLASS EFFECT
========================= */

.ocohost-masonry{
    column-count:4;
    column-gap:18px;
}

.ocohost-masonry .masonry-item{
    width:100%;
}

.masonry-item{
    position:relative;
    break-inside:avoid;
    margin-bottom:18px;
    overflow:hidden;
    border-radius:24px;

    background:rgba(255,255,255,.08);

    border:1px solid rgba(255,255,255,.15);

    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);

    box-shadow:
        0 8px 30px rgba(0,0,0,.18),
        inset 0 1px 0 rgba(255,255,255,.08);

    transition:.35s ease;
}

.masonry-item:hover{
    transform:translateY(-6px);

    box-shadow:
        0 18px 40px rgba(0,0,0,.25),
        inset 0 1px 0 rgba(255,255,255,.12);
}

/* LINK */
.masonry-item a{
    position:relative;
    display:block;
    overflow:hidden;
    color:var(--ocohost-text);
    z-index:2;
}

/* IMAGEM */
.masonry-item img{
    width:100%;
    aspect-ratio:9/16;
    min-height:420px;
    object-fit:cover;
    display:block;
    transition:1s ease;
}

.masonry-item:hover img{
    transform:scale(1.05);
}

/* OVERLAY */
.masonry-item::after{
    content:"";
    position:absolute;
    inset:0;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.78),
            rgba(0,0,0,.18),
            transparent
        );

    pointer-events:none;
    z-index:1;
}

/* TITULO GLASS */
.masonry-item h3{
    position:absolute;
    left:12px;
    right:12px;
    bottom:12px;

    margin:0;
    padding:14px 16px;

    font-size:14px;
    line-height:1.4;
    font-weight:700;
    color:var(--ocohost-text);

    border-radius:18px;

    background:rgba(255,255,255,.10);

    border:1px solid rgba(255,255,255,.12);

    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);

    box-shadow:
        0 4px 20px rgba(0,0,0,.18);

    z-index:3;
}

/* =========================
   LIST
========================= */

.ocohost-list{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.list-item{
    position:relative;
    overflow:hidden;
    border-radius:var(--ocohost-radius);
    box-shadow:var(--ocohost-shadow);
}

.list-link{
    display:flex;
    position:relative;
    width:100%;
    height:140px;
    color:var(--ocohost-text);
}

.list-thumb{
    position:relative;
    width:220px;
    height:100%;
    flex-shrink:0;
}

.list-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.list-item:hover .list-thumb img{
    transform:scale(1.08);
}

.list-overlay{
    position:relative;
    flex:1;
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:18px 20px;

    background:var(--ocohost-bg);
    color:#111827;
}

.list-title{
    font-size:18px;
    font-weight:800;
    margin:0 0 6px 0;
    line-height:1.2;
}

.list-excerpt{
    font-size:13px;
    opacity:.75;
    margin:0;
    max-width:100%;
}

/* =========================
   SKELETON
========================= */

.ocohost-skeleton{
    position:relative;
    overflow:hidden;
    background:#e5e7eb;
    border-radius:18px;
    min-height:220px;
}

.ocohost-skeleton::after{
    content:'';
    position:absolute;
    inset:0;

    transform:translateX(-100%);

    background:linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.6),
        transparent
    );

    animation:ocohostSkeleton 1.4s infinite;
}

@keyframes ocohostSkeleton{

    100%{
        transform:translateX(100%);
    }

}

/* =========================
   FILTER CHIPS
========================= */

.ocohost-filter{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-bottom:30px;
}

.ocohost-filter button{
    border:none;
    background:#f3f4f6;
    padding:10px 18px;
    border-radius:999px;
    cursor:pointer;
    font-weight:600;
    transition:.3s ease;
}

.ocohost-filter button:hover,
.ocohost-filter button.active{
    background:var(--ocohost-primary);
    color:var(--ocohost-text);
}

/* =========================
   DARK MODE
========================= */

.ocohost-dark{
    background:#0f172a;
    padding:30px;
    border-radius:var(--ocohost-radius);
}

/* =========================
   BUTTON
========================= */

.ocohost-load-more{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:14px 30px;
    border:none;
    border-radius:var(--ocohost-radius);
    background:var(--ocohost-primary);
    color:var(--ocohost-text);
    cursor:pointer;
    font-weight:700;
    transition:.3s ease;
}

.ocohost-load-more:hover{
    transform:translateY(-3px);
}

/* =========================
   LINK FIX
========================= */

.ocohost-link{
    display:block;
    width:100%;
    height:100%;
    position:relative;
}

.ocohost-card .content,
.overlay,
.masonry-item h3{
    pointer-events:none;
}

/* =========================
   GUTENBERG PREVIEW FIX
========================= */

.ocohost-preview{
    min-height:300px;
}

.block-editor-block-list__block .ocohost-wrapper{
    pointer-events:none;
}

.block-editor-block-list__block .ocohost-wrapper a{
    pointer-events:none;
}

/* =========================
   ANIMATION
========================= */

@keyframes fade{

    from{
        opacity:0;
        transform:scale(1.03);
    }

    to{
        opacity:1;
        transform:scale(1);
    }
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:1200px){

    .ocohost-masonry{
        column-count:3;
    }

}

@media(max-width:900px){

    .hero-grid{
        grid-template-columns:1fr;
    }

    .hero-main{
        height:420px;
    }

    .hero-small{
        height:220px;
    }

    .ocohost-grid{
        grid-template-columns:1fr;
    }

    .ocohost-masonry{
        column-count:2;
    }

}

@media(max-width:768px){

    .list-link{
        height:180px;
    }

    .list-excerpt{
        display:none;
    }

    .list-title{
        font-size:18px;
    }

}

@media(max-width:600px){

    .ocohost-masonry{
        column-count:1;
    }

    .masonry-item img{
        min-height:320px;
    }

}

/* =========================
   RESPONSIVE PREVIEW
========================= */

.ocohost-device-switcher{
    display:flex;
    gap:10px;
    margin-bottom:20px;
}

.ocohost-device-switcher button{
    border:none;
    padding:8px 14px;
    border-radius:10px;
    cursor:pointer;
    font-weight:600;
    background:#e5e7eb;
}

.ocohost-device-switcher button.active{
    background:var(--ocohost-primary);
    color:var(--ocohost-text);
}

/* PREVIEW BASE */
.ocohost-preview{
    transition:.35s ease;
    margin:auto;
}

/* DESKTOP */
.ocohost-preview-desktop{
    width:100%;
}

/* TABLET */
.ocohost-preview-tablet{
    width:820px;
    max-width:100%;
}

/* MOBILE */
.ocohost-preview-mobile{
    width:390px;
    max-width:100%;
    overflow:hidden;
    border-radius:24px;
    box-shadow:0 10px 35px rgba(0,0,0,.15);
    background:var(--ocohost-bg);
    padding:10px;
}

/* FORCE LIVE PREVIEW */

.ocohost-preview *{
    transition:
        background .25s ease,
        color .25s ease,
        border-radius .25s ease;
}