/* 
Theme Name: TecDropz Custom Styles
Description: Estilos estruturais, correções de plugins e comportamentos de UI.
Version: 5.0
*/

body.admin-bar header { top: 48px; }
@media (min-width: 782px) { 
    body.admin-bar header { top: 32px; } 
}

.alignfull { 
    width: 100vw; 
    margin-left: calc(50% - 50vw); 
}

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

.glass-panel {
    background: #121212; 
    background: rgba(var(--color-surface-rgb, 18, 18, 18), 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

body.light-mode .glass-panel {
    background: rgba(255, 255, 255, 0.85);
    border-color: #e5e7eb;
}

header.sticky { position: sticky; }
header.relative { position: relative; }

.mobile-menu li { 
    width: 100%; 
    border-bottom: 1px solid var(--color-border); 
}
.mobile-menu li a { 
    display: block; 
    padding: 15px 0; 
    font-size: 1.2rem; 
    font-family: 'Orbitron', sans-serif; 
    color: var(--color-text); 
}

.td-lang-pill {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--color-border);
    border-radius: 99px;
    padding: 3px;
    gap: 2px;
}
.td-lang-pill a {
    display: inline-block;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 800;
    color: #888;
    text-decoration: none;
    border-radius: 99px;
    line-height: 1;
    transition: all 0.2s;
    text-transform: uppercase;
}
.td-lang-pill a:hover,
.td-lang-pill a.active {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#user-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    min-width: 200px;
    z-index: 9999;
}

.header-alert { 
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent)); 
    color: white; 
    font-size: 12px; 
    font-weight: bold; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    position: relative;
    z-index: 60;
}

.background-animate { 
    background-size: 200%; 
    animation: gradientBody 5s ease infinite; 
}
@keyframes gradientBody { 
    0% { background-position: 0% 50% } 
    50% { background-position: 100% 50% } 
    100% { background-position: 0% 50% } 
}

#toast-container { 
    pointer-events: none; 
}
#toast-container > div { 
    pointer-events: auto; 
}

.comment-list .children { 
    list-style: none; 
    margin-left: 0; 
    padding-left: 0; 
}

.comment-list .children > li { 
    margin-left: 10px; 
    padding-left: 10px; 
    border-left: 2px solid var(--color-primary); 
    position: relative;
}

@media (min-width: 768px) { 
    .comment-list .children > li { 
        margin-left: 40px; 
        padding-left: 20px; 
    } 
}

.comment-body, .comment-content { 
    max-width: 100%; 
    overflow-wrap: break-word; 
    word-wrap: break-word; 
}

.navigation.pagination,
.pagination-wrapper,
.nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 3rem;
    width: 100%;
    list-style: none;
}

.pagination-wrapper ul, 
.pagination-wrapper li {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-numbers, 
.pagination-wrapper a, 
.pagination-wrapper span,
.nav-links a,
.nav-links span {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--color-border) !important;
    background: rgba(var(--color-surface-rgb), 0.5) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    color: var(--color-text) !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-numbers:hover,
.pagination-wrapper a:hover,
.nav-links a:hover {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(var(--color-primary-rgb), 0.3);
}

.page-numbers.current,
.pagination-wrapper .current,
.nav-links .current {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: white !important;
    cursor: default;
    box-shadow: 0 5px 15px rgba(var(--color-primary-rgb), 0.4);
}

.page-numbers.dots {
    background: transparent !important;
    border: none !important;
    backdrop-filter: none;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px #151515 inset !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

.td-google-login-btn,
.googlesitekit-sign-in-with-google {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

.td-google-login-btn iframe,
.googlesitekit-sign-in-with-google iframe {
    margin: 0 auto !important;
}

.td-custom-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) rgba(255, 255, 255, 0.05);
}

.td-custom-scroll::-webkit-scrollbar {
    width: 6px;
}

.td-custom-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 999px;
}

.td-custom-scroll::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 999px;
}

.td-custom-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}