/*
Theme Name: Gekso Clon By Ghost - Home Styles
Theme URI: https://seusite.com
Author: Ghostx Scott
Author URI: https://seusite.com
Description: CSS specifically for the homepage.
Version: 1.0
*/

/* ROOT VARIABLES */
:root {
    --main: red; /* Primary Color */
}

/* RESET */
body {
    margin: 0;
    padding: 0;
    background-color: #222;
    color: #000;
    font-family: Arial, sans-serif;
}

/* HEADER */
.header {
    background: #111;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* LOGO BACKGROUND */
.logo {
    width: 100%;
    background: #000;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* LOGO TEXT */
.logo a {
    text-decoration: none;
    font-weight: bold;
    font-size: 2rem;
}

.f1 {
    color: red;
}

.f2 {
    color: white;
}

/* SEARCH BAR */
.search-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.search-form {
    display: flex;
    justify-content: center;
    width: 100%;
}

.search-form form {
    display: flex;
    max-width: 430px;
    width: 100%;
}

.search-form input[type="text"] {
    border: 2px solid var(--main);
    border-right: none;
    border-radius: 4px 0 0 4px;
    width: 100%;
    padding: 6px 10px;
    font-size: 16px;
    background: white;
    color: black;
    outline: none;
    height: 32px;
    box-sizing: border-box;
}

.search-form input[type="submit"] {
    border: 2px solid var(--main);
    background-color: var(--main);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 0 4px 4px 0;
    padding: 4px 12px;
    cursor: pointer;
    height: 32px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: capitalize;
}

/* XXX VIDEOS TITLE */
.xxx-videos-title {
    font-family: Arial, sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 22.4px;
    color: #EEEEEE;
    text-align: center;
    width: 100%;
    display: block;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* CUSTOM MENU */
.custom-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.custom-menu ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.custom-menu li {
    margin: 0;
}

/* MENU ITEMS */
.custom-menu ul li:nth-child(n) a {
    background-color: var(--main);
    color: #fff;
    word-break: keep-all;
    border: 1px solid var(--main);
    border-radius: 5px;
    order: 3;
    margin: 2px;
    padding: 2px 6px;
    text-decoration: none;
    display: inline-block;
}

.custom-menu a:hover {
    background: black;
    color: var(--main);
    border-color: var(--main);
}

/* VIDEO GRID */
@media screen and (max-width: 768px) {
    .videos-grid {
        display: flex !important;
        flex-direction: column !important; /* Alinha os vídeos em uma única coluna */
        gap: 15px !important; /* Ajusta o espaçamento entre os vídeos */
    }
    
    .item {
        width: 100% !important; /* Faz os vídeos ocuparem toda a largura da tela */
    }
}



/* VIDEO POST STYLING */
.item {
    background: #fff;
    padding: 5px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease-in-out;
    position: relative;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item:hover {
    transform: scale(1.05);
}

.item a {
    text-decoration: none;
    color: black;
    display: block;
}

/* THUMBNAIL */
.thumb {
    width: 100%;
    overflow: hidden;
    border-radius: 5px;
    position: relative;
}

.thumb img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
}

/* TITLE */
.title {
    font-family: Arial, sans-serif;
    font-style: normal;
    font-weight: 600;
    line-height: 18.4px;
    color: #E80000;
    font-size: 16px;
    margin: 5px 0;
    text-align: left;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* LIKE PERCENTAGE BUTTON */
.rating {
    color: #fff;
    background-color: var(--main);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 14px;
    font-weight: 700;
    position: absolute;
    top: 9px;
    right: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 18px;
}

/* LIKE ICON INSIDE BUTTON */
.rating::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background: url("https://doterc.site/wp-content/themes/gekso-clone/icon/download.svg") no-repeat center;
    background-size: contain;
    filter: brightness(0) invert(1);
    margin-right: 3px;
}

/* VIDEO INFO (VIEWS & DURATION) */
.info {
    display: flex;
    justify-content: space-between;
    font-family: Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 18.4px;
    color: #757575;
    margin-top: 5px;
    padding: 5px 8px;
}

/* RESPONSIVENESS */
@media screen and (max-width: 1200px) {
    .videos-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .videos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .videos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


