/**
 * Baixar Switch - Estilos Adicionais
 * Adaptação do tema torrentfilmes_2019 para Nintendo Switch
 * Cor principal: Azul Joycon #0AB9E6
 */

:root {
    --switch-blue: #0AB9E6;
    --switch-blue-dark: #0095bf;
    --switch-red: #E60012;
    --telegram-blue: #0088cc;
}

/* ====================================
   BANNER TELEGRAM
   ==================================== */
.telegram-banner {
    background: linear-gradient(135deg, var(--telegram-blue) 0%, #005f8c 100%);
    padding: 12px 0;
}

.telegram-banner .container {
    display: flex;
    justify-content: center;
}

.telegram-link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    text-decoration: none;
    font-size: 15px;
}

.telegram-icon {
    font-size: 24px;
}

.telegram-text {
    color: white;
}

.telegram-text strong {
    color: #fff;
}

.telegram-btn {
    background: white;
    color: var(--telegram-blue);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 13px;
    transition: all 0.3s;
}

.telegram-btn:hover {
    background: #e0f7ff;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .telegram-link {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* ====================================
   LAYOUT DUAS COLUNAS - SINGLE GAME
   ==================================== */
.game-two-columns {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.game-cover-column {
    flex: 0 0 250px;
}

/* Proporção 921x1499 */
.game-cover-img {
    width: 250px;
    height: 407px; /* 250 * 1.6276 = 407 */
    display: block;
    border-radius: 0 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    object-fit: cover;
}

.game-info-column {
    flex: 1;
}

.game-info-row {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.3rem;
}

.game-info-row:last-child {
    border-bottom: none;
}

.game-info-row .info-icon {
    display: inline-block;
    width: 25px;
    text-align: center;
    margin-right: 8px;
}

.game-info-row strong {
    color: #333;
}

.password-row {
    background: #fff5f5;
    padding: 12px;
    margin: 10px 0;
    border-radius: 4px;
}

.password-row .password-text {
    color: #cc0000;
    font-weight: bold;
    font-family: monospace;
    font-size: 1.4rem;
}

.compatibility-row {
    background: #f0fff4;
    padding: 12px;
    border-radius: 4px;
}

/* Responsivo */
@media (max-width: 768px) {
    .game-two-columns {
        flex-direction: column;
        align-items: center;
    }
    
    .game-cover-column {
        flex: none;
        text-align: center;
    }
    
    .game-cover-img {
        max-width: 200px;
        height: auto;
    }
}

/* ====================================
   SINOPSE
   ==================================== */
.game-sinopse {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
}

.game-sinopse h2 {
    margin: 0 0 15px;
    font-size: 1.6rem;
    color: #333;
}

.sinopse-text {
    line-height: 1.8;
    color: #555;
}

/* ====================================
   VÍDEO
   ==================================== */
.game-video {
    margin: 30px 0;
}

.game-video h2 {
    margin: 0 0 15px;
    font-size: 1.6rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

/* ====================================
   GALERIA DE IMAGENS
   ==================================== */
.game-gallery {
    margin: 30px 0;
}

.game-gallery h2 {
    margin: 0 0 15px;
    font-size: 1.6rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

/* ====================================
   ÁREA DE DOWNLOAD
   ==================================== */
.game-downloads {
    margin: 30px 0;
    background: #1e3a5f;
    padding: 25px;
    border-radius: 8px;
    color: white;
}

.game-downloads h2 {
    margin: 0 0 20px;
    color: white;
    font-size: 1.6rem;
}

.downloads-area {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 6px;
}

.game-id-info {
    background: rgba(0,0,0,0.2);
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-family: monospace;
    font-size: 1.2rem;
}

.downloads-table {
    width: 100%;
    border-collapse: collapse;
}

.downloads-table th,
.downloads-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.downloads-table th {
    background: rgba(0,0,0,0.2);
    font-weight: bold;
}

.downloads-table tr:hover {
    background: rgba(255,255,255,0.05);
}

.download-link {
    color: #4ade80;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.download-link:hover {
    color: #86efac;
    text-decoration: underline;
}

.no-downloads {
    text-align: center;
    padding: 30px;
    color: rgba(255,255,255,0.6);
}

/* Download Bloqueado */
.downloads-locked {
    text-align: center;
    padding: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
}

.downloads-locked .lock-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.downloads-locked h3 {
    margin: 0 0 10px;
    color: white;
}

.downloads-locked p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.downloads-locked .login-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-login,
.btn-register,
.btn-subscribe {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-login {
    background: var(--switch-red);
    color: white;
}

.btn-register,
.btn-subscribe {
    background: #16a34a;
    color: white;
}

.btn-login:hover,
.btn-register:hover,
.btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ====================================
   CARDS DE JOGOS - PROPORÇÃO 921x1499
   ==================================== */
.filmes .listagem .item .imagem {
    position: relative;
    width: 100%;
    padding-bottom: 162.76%; /* 1499/921 = 1.6276 */
    overflow: hidden;
    background: #1a1a2e;
}

.filmes .listagem .item .imagem img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0 !important; /* Cantos retos */
    object-fit: cover;
}

.filmes .listagem .item a {
    border-radius: 0; /* Cantos retos */
    display: block;
}

/* Manter cores originais dos badges */

/* ====================================
   CARROSSEL DESTAQUES - PROPORÇÃO 921x1499
   ==================================== */
#home-destaques .scroll .item {
    flex: 0 0 auto;
    width: 130px;
}

#home-destaques .scroll .item a {
    display: block;
    position: relative;
    width: 130px;
    height: 212px; /* 130 * 1.6276 = 212 */
    overflow: hidden;
    border-radius: 0 !important;
}

#home-destaques .scroll .item a img {
    border-radius: 0 !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#home-destaques .setas span,
#home-destaques .setas .prev,
#home-destaques .setas .next {
    background: #1a1a1a;
    color: white;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 0;
    margin-left: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 14px;
    transition: background 0.2s;
}

#home-destaques .setas span:hover,
#home-destaques .setas .prev:hover,
#home-destaques .setas .next:hover {
    background: #e60012;
}

#home-destaques .cabecalho {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#home-destaques .cabecalho .setas {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Fix: Evitar duplicação de setas do Slick */
#home-destaques .slick-arrow {
    display: none !important;
}

#home-destaques .setas .slick-arrow {
    display: inline-flex !important;
    position: relative !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: auto !important;
    height: auto !important;
    background: #1a1a1a !important;
    color: white !important;
    padding: 10px 16px !important;
    margin: 0 !important;
    margin-left: 5px !important;
    border-radius: 0 !important;
    font-size: 14px !important;
    opacity: 1 !important;
    z-index: 1 !important;
}

#home-destaques .setas .slick-arrow:hover {
    background: #e60012 !important;
}

#home-destaques .setas .slick-arrow:before {
    display: none !important;
}

#home-destaques .setas .slick-prev,
#home-destaques .setas .slick-next {
    font-family: inherit !important;
}

/* ====================================
   MENU DE CATEGORIAS DE JOGOS - AZUL JOYCON
   ==================================== */
.game-categories-menu {
    background: #1a1a2e;
    padding: 10px 0;
}

.game-categories-menu .container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.game-categories-menu a {
    color: #fff;
    padding: 8px 16px;
    background: #333;
    border-radius: 4px;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.game-categories-menu a:hover {
    background: var(--switch-blue);
}

/* ====================================
   TÍTULOS - MANTER CORES ORIGINAIS
   ==================================== */
/* Removido override de cores */

/* ====================================
   STATUS PREMIUM
   ==================================== */
.premium-badge {
    display: inline-block;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e1e1e;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: bold;
}

/* ====================================
   SEARCH BOX CUSTOMIZADO
   ==================================== */
#topo .busca input::placeholder {
    color: #888;
}

/* ====================================
   LOGO CUSTOMIZÁVEL
   ==================================== */
.custom-logo-link img {
    max-height: 40px;
    width: auto;
}

/* Manter estilos originais dos botões e footer */

/* ====================================
   PAGINAÇÃO
   ==================================== */
.wp-pagenavi a:hover,
.wp-pagenavi span.current {
    background: var(--switch-blue) !important;
    border-color: var(--switch-blue) !important;
}

/* ====================================
   BANDEIRA DO BRASIL - PEQUENA
   ==================================== */
.flag-brazil {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 14px;
    background: #009c3b;
    border-radius: 2px;
    z-index: 10;
    box-shadow: 0 1px 2px rgba(0,0,0,0.4);
    overflow: hidden;
}

.flag-brazil::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #ffdf00;
}

.flag-brazil::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #002776;
    border-radius: 50%;
}

/* ====================================
   BOTÃO LINK QUEBRADO
   ==================================== */
.broken-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    margin-top: 15px;
}

.broken-link-btn:hover {
    background: #fde68a;
}

.broken-link-btn.reported {
    background: #dcfce7;
    color: #166534;
    border-color: #22c55e;
    cursor: default;
}

/* ====================================
   BANNER TELEGRAM FOOTER
   ==================================== */
.telegram-banner-footer {
    background: linear-gradient(135deg, var(--telegram-blue) 0%, #005f8c 100%);
    padding: 20px 0;
    margin-top: 30px;
}

.telegram-banner-footer .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.telegram-banner-footer .telegram-content {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.telegram-banner-footer .telegram-icon {
    font-size: 40px;
}

.telegram-banner-footer .telegram-text h3 {
    margin: 0;
    font-size: 18px;
    color: white;
}

.telegram-banner-footer .telegram-text p {
    margin: 5px 0 0;
    font-size: 14px;
    opacity: 0.9;
}

.telegram-banner-footer .telegram-btn {
    background: white;
    color: var(--telegram-blue);
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
}

.telegram-banner-footer .telegram-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ========================================
   RESPONSIVO MOBILE - MELHORIAS
   ======================================== */

/* Tablets */
@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }
    
    #home-destaques .scroll .item {
        flex: 0 0 140px;
    }
    
    .filmes .listagem {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Header */
    #topo .container {
        flex-direction: column;
        gap: 10px;
        padding: 10px 15px;
    }
    
    #topo .logo {
        font-size: 20px;
    }
    
    .menu ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    
    .menu ul li a {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    /* Destaques */
    #home-destaques {
        padding: 20px 0;
    }
    
    #home-destaques .scroll .item {
        flex: 0 0 120px;
    }
    
    #home-destaques .cabecalho {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    /* Grid de jogos */
    .filmes .listagem {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .filmes .listagem .item .imagem .nota {
        padding: 3px 6px !important;
        font-size: 9px !important;
    }
    
    .filmes .listagem .item .imagem > span {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .filmes .listagem .item .titulo span {
        font-size: 11px;
    }
    
    /* Títulos */
    .titulo-bloco {
        font-size: 1.1rem;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        font-size: 11px;
        flex-wrap: wrap;
    }
    
    /* Single Game - Info Box */
    .game-info-wrapper {
        flex-direction: column;
    }
    
    .game-cover {
        flex: 0 0 auto;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .game-info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        padding: 8px 0;
    }
    
    /* Downloads */
    .dl-list {
        font-size: 13px;
    }
    
    .dl-item {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .dl-item-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .dl-btn {
        width: 100%;
        justify-content: center;
        margin-top: 5px;
    }
    
    /* Sidebar */
    .single-dir {
        margin-top: 30px;
    }
    
    .sidebar-box {
        margin-bottom: 15px;
    }
    
    /* Formulário de comentário */
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* Mobile pequeno */
@media (max-width: 480px) {
    .filmes .listagem {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    #home-destaques .scroll .item {
        flex: 0 0 100px;
    }
    
    .bs-box-header h3,
    .sidebar-header {
        font-size: 13px;
    }
    
    .bs-box-content {
        padding: 15px;
    }
    
    /* Video responsivo */
    .video-container {
        border-radius: 0;
    }
    
    .trailer-wrapper {
        padding: 10px;
    }
}

/* ====================================
   MELHORIAS RESPONSIVAS - SIDEBAR E LISTAS
   ==================================== */

/* Sidebar Widget - Mobile Otimizado */
@media (max-width: 992px) {
    .sidebar,
    .page-sidebar {
        margin-top: 20px;
    }
    
    .single-layout,
    .page-layout {
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 15px 10px;
    }
}

@media (max-width: 768px) {
    /* Sidebar Widgets */
    .sidebar-widget,
    .sw-header,
    .sw-content {
        border-radius: 6px;
    }
    
    .sw-header {
        padding: 12px 14px;
    }
    
    .sw-header h3 {
        font-size: 12px;
    }
    
    .sw-header i {
        font-size: 13px;
    }
    
    .sw-content {
        padding: 10px;
    }
    
    /* Game Mini Cards - Sidebar */
    .game-mini {
        gap: 8px;
        padding: 8px 0;
    }
    
    .game-mini-img {
        width: 45px;
        height: 68px;
    }
    
    .game-mini-title {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .game-mini-details {
        font-size: 9px;
        gap: 4px 8px;
        margin-bottom: 2px;
    }
    
    .game-mini-details i {
        font-size: 8px;
    }
    
    /* Filter Menu */
    .filter-menu {
        padding: 12px 10px;
        gap: 5px;
    }
    
    .filter-btn {
        padding: 8px 10px;
        font-size: 10px;
        gap: 4px;
    }
    
    .filter-btn i {
        font-size: 10px;
    }
    
    /* Quick Bar */
    .quick-bar .container {
        gap: 10px;
        padding: 0 10px;
    }
    
    .quick-stat {
        font-size: 10px;
    }
    
    .random-btn {
        padding: 6px 12px;
        font-size: 10px;
    }
    
    /* Single Article */
    .single-article {
        border-radius: 8px;
    }
    
    .single-header {
        padding: 15px;
    }
    
    .single-header h1 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .type-badge-inline {
        padding: 4px 10px;
        font-size: 9px;
        margin-bottom: 10px;
    }
    
    .single-meta {
        gap: 10px;
    }
    
    .single-meta span {
        font-size: 11px;
    }
    
    .single-body {
        padding: 15px;
    }
    
    .single-body h2 {
        font-size: 1.1rem;
        margin: 20px 0 10px;
    }
    
    .single-body h3 {
        font-size: 1rem;
    }
    
    .single-body p {
        font-size: 13px;
        line-height: 1.6;
    }
    
    .single-footer {
        padding: 15px;
        flex-direction: column;
        gap: 12px;
    }
    
    .back-btn {
        padding: 10px 16px;
        font-size: 11px;
        width: 100%;
        justify-content: center;
    }
    
    .share-btns {
        justify-content: center;
    }
    
    .share-btns a {
        width: 34px;
        height: 34px;
    }
    
    /* Related Posts */
    .related-posts {
        margin-top: 20px;
    }
    
    .related-posts h3 {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    .related-card-img {
        height: 80px;
    }
    
    .related-card-title {
        padding: 8px;
        font-size: 10px;
    }
    
    /* Page Layout */
    .page-main {
        padding: 15px;
        border-radius: 6px;
    }
    
    .page-header {
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .page-header h1 {
        font-size: 1.3rem;
        gap: 8px;
    }
    
    .page-header h1 i {
        font-size: 1.1rem;
    }
    
    .page-breadcrumb {
        font-size: 10px;
        margin-bottom: 8px;
    }
    
    .page-content {
        font-size: 13px;
    }
    
    .page-content h2 {
        font-size: 1.1rem;
    }
    
    /* Nav Links */
    .nav-links li a {
        padding: 10px 5px;
        font-size: 12px;
    }
    
    /* Breadcrumb geral */
    .breadcrumb {
        font-size: 10px;
        margin-bottom: 12px;
    }
    
    .breadcrumb span {
        margin: 0 5px;
    }
}

/* Mobile muito pequeno */
@media (max-width: 360px) {
    .filter-btn {
        padding: 6px 8px;
        font-size: 9px;
    }
    
    .filter-btn i {
        display: none;
    }
    
    .game-mini-img {
        width: 40px;
        height: 60px;
    }
    
    .game-mini-title {
        font-size: 10px;
    }
    
    .game-mini-details {
        font-size: 8px;
    }
    
    .single-header h1 {
        font-size: 1.1rem;
    }
    
    .related-grid {
        gap: 8px;
    }
    
    .related-card-img {
        height: 70px;
    }
    
    .related-card-title {
        font-size: 9px;
        padding: 6px;
    }
}
