@import 'typography.css';
@import 'nav.css';
@import 'blocks.css';
@import 'units.css';
@import 'posts.css';
@import 'videos.css';
@import 'form.css';

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

:root {
    --max-witdh: 1280px;
    --gap: 24px;
    --gap-large: calc(2*var(--gap));
    --gap-medium: calc(var(--gap)/2);
    --gap-small: calc(var(--gap)/3);
    --radius: 8px;

    --primary: #cc0000;
    --primary-50: #cc000080;
    --primary-25: #cc000040;
    --primary-10: #cc00001A;
    --primary-05: #cc00000D;

    --gray-50: #f8f8f8;
    --gray-100: #eaeaea;
    --gray-200: #d8d8d8;
    --gray-300: #bababa;
    --gray-400: #aaaaaa;
    --gray-500: #9b9b9b;
    --gray-600: #666666;
    --gray-700: #565656;
    --gray-800: #474747;
    --gray-900: #323232;
    --gray-950: #222222;

    --black-pure: #000;

    font-size: 14px;
}

html {}

body {}

a,
a:hover,
a:visited,
a:active {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.post-content a{
    text-decoration: underline;
    color: rgb(64, 64, 221);
    cursor: pointer;
}


section {
    padding: var(--gap) 0;
}

.container {
    max-width: var(--max-witdh);
    margin: auto;
    display: flex;
    flex-direction: row;
    padding-left: var(--gap);
    padding-right: var(--gap);
}

.column {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--gap-medium);
}

.column.half {
    flex-basis: 50%;
}

.column.third {
    flex-basis: 33%;
}

.column.quarter {
    flex-basis: 25%;
}

.column.va-center {
    justify-content: center;
}

@media only screen and (max-width: 960px) {
    section {
        padding: var(--gap) 0;
    }

    .container {
        flex-direction: column;
    }

}

.category-title {
    margin-top: 48px;
}

ul.breadcrumbs {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Estilo para blocos com alinhamento contido */
.wp-block {
    max-width: 800px;
    margin: 0 auto;
}

.alignwide {
    max-width: 1200px; /* Altere para o valor desejado */
    margin: 0 auto;
}

.alignfull {
    width: 100%;
    margin: 0;
}

/*========================================

    SEARCH BAR

*========================================*/

section.search-header{
    background-color: var(--gray-100);
    margin-bottom: var(--gap-large);
}

#searchform{
    width: 100%;
    margin-bottom: var(--gap);
}

#searchform div {
    width: 100%;
    display: flex;
    gap: var(--gap-small);
    cursor: pointer
}

#searchform input[type="submit"]{
    background-color: var(--primary);
    color: #fff;
    padding: 8px 24px;
    border-radius: 8px;
    border: none;
}
input#s{
    width: 100%;
    border: none;
    background-color: #fff0;
    border-bottom: 1px solid var(--gray-300);
    padding: 8px;
}

input#s:focus{
    outline: none;
}
.top-bar .search {
    position: absolute;
    right: var(--gap);
    top: 50%;
    transform: translateY(-50%);
}

.top-bar .search button {
    background-color: none;
    width: 40px;
    aspect-ratio: 1;
    border-radius: 50%;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.top-bar .search button:hover {
    background-color: var(--primary-05);
    color: var(--primary);
}

.top-bar .search i {
    font-size: 18px;
}

#search-bar {
    background-color: var(--gray-200);
    margin: 0;
    overflow: hidden;
    height: 0px;
    transition: all .6s ease-in-out;
    padding: 0;
}

#search-bar .container {
    padding: 24px 12px;
}

#search-bar div {
    display: flex;
}

#search-bar input[type=submit] {
    display: none;
}

#search-bar form {
    width: 100%;
}

#search-bar input {
    width: 100%;
    max-width: 960px;
    margin: auto;
    padding: 8px 16px;
    border: 1px solid var(--gray-500);
    border-radius: 8px;
}

#search-bar input:focus {
    outline: 3px solid var(--primary-25) !important;
    border: 1px solid var(--primary);
}

#search-bar .fast-results {
    display: grid;
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    width: 100%;
    gap: var(--gap);
}

#search-bar .fast-results a {
    margin: 0;
}

#search-bar .fast-results article {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--gap);
}

#search-bar .fast-results article .info {
    display: flex;
    flex-direction: column;
}

#search-bar .fast-results article .info h3 {
    font-size: 1rem;
    font-weight: 700;
}

#search-bar .fast-results article .featured-image-container {
    max-width: 128px;
    margin-bottom: 0;
}

#search-bar #fast-results-header {
    display: flex;
    flex-direction: column;
    width: 100%;
    display: none;
}

#search-bar #fast-results-header a,
#search-bar #fast-results-header h5 {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

#search-bar #fast-results-header hr {
    border: none;
    border-bottom: 1px solid var(--gray-500);
    margin-bottom: 12px;
}

@media screen and (max-width: 560px) {
    #search-bar {
        box-shadow: 0 30px 30px 0 #0009;
    }

    #search-bar .fast-results {
        gap: 0px;
    }

    #search-bar .fast-results article .featured-image-container {
        aspect-ratio: 4/3;
        width: 30%;
    }

    #search-bar .fast-results article .info {
        width: 70%;
    }
}

/*========================================

    RESULTS PAGINATION

*========================================*/

nav.custom-pagination {
    margin: var(--gap-large) 0;
}

nav.custom-pagination ul {
    list-style: none;
    padding: 0;
    display: flex;
    text-align: center;
    width: fit-content;
    margin: auto;
    gap: 8px;
}

nav.custom-pagination ul li span,
nav.custom-pagination ul li a {
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid var(--gray-300);
    width: fit-content;
}

nav.custom-pagination ul li:hover a {
    border: 1px solid var(--primary);
    color: var(--primary);
}

nav.custom-pagination .current {
    border: 1px solid var(--primary);
    color: #fff;
    background: var(--primary)
}

/*========================================

    ARTICLE

*========================================*/

article {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: fit-content;
    padding-bottom: var(--gap);
    width: 100%;
}

article a:hover {
    color: var(--primary);
}

article .sup-category,
.video-item .sup-category {
    font-size: 0.7em;
    font-weight: 700;
    color: var(--primary);
}

article .meta {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: var(--gap);
}

article .meta p.post-date {
    font-size: 0.7em;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 4px;
}

article .meta p.post-date:before {
    content: '\e935';
    font-family: Material Icons;
}

article .author-line {
    font-size: 0.7em;
    color: var(--gray-700);
    text-transform: uppercase;
}

.featured-image-container {
    border-radius: var(--radius);
    overflow: hidden;
    background-color: var(--gray-100);
}

.featured-image-container img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: all .3s ease-in-out;
    transform: scale(1);
}

.featured-image-container:hover img {
    transition: all .15s ease-in-out;
    transform: scale(1.05);
}

/*========================================

    PARTIES GRID

*========================================*/

.party-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: var(--gap);
}

.party-item {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s ease-in-out;
    transform: scale(1);
}

.party-item:hover {
    transition: all .15s ease-in-out;
    transform: scale(1.05);
}

.party-item .logo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 50rem;
    background-color: var(--gray-200);
    background-size: cover;
    background-position: center;
    margin: 12px;
}

.party-item .circle {
    border: 6px solid #c04;
    border-image-slice: 1;
    border-radius: 50rem;
    position: absolute;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
}

.party-item .fis {
    background-size: contain;
    background-position: 50%;
    background-repeat: no-repeat;
    width: 32px;
    height: 32px;
    border-radius: 24px;
    border: 1px solid #ccc;
    position: absolute;
    right: 8px;
    bottom: 8px;
}

@media only screen and (max-width: 960px) {
    .party-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap:12px;
    }
    .party-item .circle {
        border: 3px solid #c04;
    }
    .party-item .fis {
        right: 4px;
        bottom: 4px;
    }
}

/*========================================

    Story Sldier

*========================================*/

section.story-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    display: none;
}

section.story-container.active {
    display: block;
}

section.story-container .backdrop {
    background-color: #000d;
    backdrop-filter: blur(5px);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: block;
}

.story-slide {
    width: auto;
    max-height: 90%;
    position: sticky;
    top: 5%;
    aspect-ratio: 9/16;
    margin: 20px auto;
    display: grid;
    overflow: hidden;
    border-radius: var(--gap-medium);
    box-shadow: 0 4px 20px 2px rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.slide-items {
    position: relative;
    grid-area: 1/1;
    overflow: hidden;

}

.slide-items .story {
    height: 100%;
    overflow: hidden;
}

.slide-items .story .content {
    position: relative;
    z-index: 10;
    padding: var(--gap);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    padding-bottom: 96px;
    justify-content: end;
}

.slide-items .story .content h4,
.slide-items .story .content p {
    color: #fff;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.slide-items .story .background {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;
    top: 0;
    background-color: #000;
}

.slide-items .story .background .gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, #000 25%, #0000 75%);
    position: absolute;
    z-index: 2;
}

.slide-items .story .background img {
    height: 75%;
    width: auto;
    object-fit: cover;
    position: absolute;
    top: 0;
    z-index: 1;
    object-position: center;
    left: 50%;
    transform: translateX(-50%);
}

.slide-nav {
    grid-area: 1/1;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
}

.slide-nav button {
    -webkit-appearance: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    opacity: 0;
}

.slide-items>* {
    position: absolute;
    top: 0px;
    opacity: 0;
    pointer-events: none;
}

.slide-items>.active {
    position: relative;
    opacity: 1;
    pointer-events: initial;
}

.slide-thumb {
    display: flex;
    grid-column: 1 / 3;
    padding: 12px;
}

.slide-thumb>span {
    flex: 1;
    display: block;
    height: 3px;
    background: rgba(0, 0, 0, 0.4);
    margin: 5px;
    border-radius: 3px;
    overflow: hidden;
}

.slide-thumb>span.active::after {
    content: '';
    display: block;
    height: inherit;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 3px;
    transform: translateX(-100%);
    animation: thumb 5s forwards linear;
}

@keyframes thumb {
    to {
        transform: initial;
    }
}

/*========================================

    VIDEOS

*========================================*/


.channel-section {
    display: block;
    padding: var(--gap);
}

.channel-section h3.channel-title {
    color: #fff;
    padding-bottom: 8px;
    border-bottom: 1px solid #fff;
    margin-bottom: var(--gap);
    margin-top: calc(2*var(--gap));
}

.video-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: calc(var(--gap)/2);
}

.video-item .description,
.video-item .duration {
    display: none;
}

.video-info {
    display: flex;
    gap: 8px;
    flex-direction: column;
}

.video-info .badge {
    padding: 2px 8px;
}

.video-info h3 {
    color: #fff;
    font-size: 1rem;
}

.video-info .date {
    color: var(--gray-600);
    font-size: 0.7em;
    display: flex;
    gap: 4px
}

.video-info .date:before {
    content: '\e935';
    font-family: Material Icons;
}

.video-thumb {
    aspect-ratio: 16/9;
    margin-bottom: 8px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
}

.video-destak {
    position: relative;
    display: flex;
    min-height: 560px;
}

.video-destak .container {
    width: 100%;
}

.video-destak button {
    color: #fff;
    cursor: pointer;
    background-color: var(--primary);
    padding: 12px 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    border: none;
    gap: 8px;
}

.video-destak .video-thumb {
    position: absolute;
    width: 60%;
    height: 100%;
    top: 0;
    right: 0;
    z-index: 0;
    background-position: center;
    background-size: cover;
}

.video-thumb-container .gradient {
    background-image: linear-gradient(90deg, #000000ff 0%, #00000000 100%);
    position: absolute;
    width: 60%;
    height: 100%;
    top: 0;
    right: 0;
    z-index: 1;
}


.video-destak .video-info {
    position: relative;
    z-index: 2;
    max-width: 50%;
    margin-right: auto;
    color: #fff;
}

.video-destak .video-info h1 {
    font-size: 2rem;
}

#videoDuration {
    margin: var(--gap) 0;
}

@media screen and (max-width: 640px) {

    .video-thumb-container .gradient,
    .video-destak .video-thumb {
        width: 100%;
        height: 60%;
    }

    .video-thumb-container .gradient {
        background-image: linear-gradient(0deg, #000000ff 0%, #00000000 100%);
    }

    .video-destak .video-info {
        max-width: 100%;
        margin-top: 360px;
    }
}


/*
*
*   Video player
*
*/

.video-player {
    background-color: #000c;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99;
    backdrop-filter: blur(5px);
}

.video-player i {
    color: #fff;
    font-size: 24px;
    position: absolute;
    top: -32px;
    right: 48px;
    cursor: pointer;
}

.video-player .video-container {
    position: relative;
    padding-bottom: 56.25%;
    width: 100%;
}

.video-player .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 48px;
}

@media screen and (max-width: 560px) {
    .video-player .video-container iframe {
        padding: 12px;
    }

    .video-player i {
        right: 12px;
    }
}

/*==============================

        MAIN VIDEO

==============================*/

.mainvideo {
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    display: flex;
    min-height: 360px;
}


.mainvideo .video-info {
    width: 100%;
    height: 100%;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 24px;
}

.mainvideo h1 {
    font-size: 2em;
}

.mainvideo .video-thumb-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.mainvideo .video-thumb-container .video-thumb {
    margin: 0;
    height: 100%;
    background-position: center;
}

.mainvideo .video-thumb-container .gradient {
    left: 0;
}

.mainvideo .btn {
    padding: 8px 16px;
    background-color: #ffffff00;
    color: #fff;
    border-radius: 4px;
    width: fit-content;
    cursor: pointer;
    border: 1px solid #fff;
    margin-top: 24px;
}

.mainvideo .btn:hover {
    background-color: #ffffff55;
}

@media screen and (max-width: 640px) {
    .mainvideo {
        flex-direction: column;
    }

    .mainvideo .video-info {
        order: 2;
        width: 100%;
        height: fit-content;
    }

    .mainvideo .video-thumb-container {
        width: 100%;
        order: 1;
        aspect-ratio: 16/9;
    }

    .mainvideo .video-thumb-container .gradient {
        display: none;
    }

    .mainvideo .video-thumb-container .video-thumb {
        width: 100%;
    }
}

/*========================================

    VIDEO SECTION

*========================================*/

section.video-section {
    background-color: var(--black-pure);
    padding: var(--gap-large) 0;
}

.video-section h3,
.video-section h4{
    font-family: 'Inter', sans-serif;
}

section.video-section .block-header h3,
section.video-section .block-header a {
    color: #fff;
}

section.video-section .block-header span {
    border-color: #fff;
}

section.video-section .video-item {
    display: flex;
    gap: calc(var(--gap)/2);
}

section.video-section .video-item .video-thumb {
    min-width: 50%;
}

section.video-section .video-item.main {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
}

section.video-section .video-item.main .video-thumb {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

section.video-section .video-item.main .video-info {
    bottom: 0;
    left: 0;
    position: absolute;
    z-index: 2;
    padding: 24px;
    width: 100%;
    opacity: 0;
    transition: all .3s ease-in-out;
    background: linear-gradient(0deg, #000f 50%, #0000 100%);
}

section.video-section .video-item.main:hover .video-info {
    opacity: 1;
    transition: all .3s ease-in-out;
}


.video-item.only-thumb {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #ccc;
}

.video-item.only-thumb .video-thumb {
    position: absolute;
    z-index: 1;
    width: 100%;
    border-radius: 0;
}

.video-item.only-thumb .video-info {
    position: absolute;
    z-index: 2;
    width: 100%;
    height: 100%;
    padding: var(--gap);
    display: flex;
    flex-direction: column;
    justify-content: end;
    opacity: 0;
    background: linear-gradient(0deg, #000, #0000);
    transition: all .15s ease-in-out;
}

.video-item.only-thumb:hover .video-info {
    opacity: 1;
    transition: all .15s ease-in-out;
}

/*========================================

    Ads

*========================================*/

.ads {
    background-color: var(--gray-100);
    border-radius: var(--radius);
    text-align: center;
    overflow: hidden;
    /* aspect-ratio: 21/4; */
}

.ads img {
    object-fit: cover;
    object-position: center;
    height: 100%;
    width: 100%;
}

@media screen and (max-width:960px) {
    .ads {
        aspect-ratio: 3/1;
    }
}

/*========================================

    FOOTER

*========================================*/

footer {
    background-color: var(--gray-50);
    color: var(--gray-900);
    padding-top: 48px;
    margin-top: calc(2*var(--gap));
}

footer .bottom-line {
    background-color: var(--gray-200);
    color: var(--gray-600);
    padding: 16px;
    font-size: 10px;
    text-align: center;
    margin-top: 48px;
}

footer i {
    font-size: 24px;
    padding: 4px;
}

footer .col:last-child {
    text-align: right;
    align-items: end;
}

footer .footer-logo img {
    max-width: 240px;
    height: auto;
}

footer .socialmedia {
    color: var(--gray-800);
    display: flex;
    gap: 12px;
    font-size: 32px;
}

footer ul{
    list-style: none;
    text-transform: capitalize;
    font-size: 0.8em;
    font-weight: 700;
}

footer ul li{
    margin-bottom: 8px;
}

@media screen and (max-width:560px) {

    footer .column {
        text-align: center;
        align-items: center;
    }

    footer .logo {
        margin: auto;
    }
}