/* =============================================
   YURIHI.NET - CSS
   Baseado no tema Blogger "Awesome Inc." Dark
   ============================================= */

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Cores */
:root {
    --bg-color: #000000;
    --bg-card: #141414;
    --text-color: #ffffff;
    --text-secondary: #666666;
    --link-color: #888888;
    --link-hover: #cccccc;
    --link-visited: #444444;
    --border-color: #222222;
    --highlight: #444444;
}

/* Body */
body {
    font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;
    font-size: 13px;
    color: var(--text-color);
    background: #111111;
    line-height: 1.6;
    min-height: 100vh;
}

/* Container principal */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.header {
    padding: 22px 0;
    text-align: left;
}

.header-inner {
    padding-left: 200px;
}

.site-title {
    font-size: 40px;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

h1 {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

/* Botões do Header */
.header-buttons {
    padding-left: 200px;
    padding-top: 15px;
    padding-bottom: 15px;
}

.header-btn {
    display: block;
    font-size: 40px;
    font-weight: bold;
    color: var(--text-color);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px 0;
    text-decoration: none;
    text-align: left;
}

/* Links */
a {
    color: var(--link-color);
    text-decoration: none;
    outline: none;
}

/* Área principal de posts */
.main-content {
    text-align: center;
    padding: 20px 0;
}

/* Posts */
.posts-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.post {
    width: 600px;
    max-width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.post img {
    width: 600px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

/* Post individual (página de post) */
.single-post {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 0;
}

.single-post img {
    width: 100%;
    height: auto;
    display: block;
}

.post-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--text-color);
    margin: 15px 0;
    text-align: center;
}

.post-title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

/* Navegação entre posts */
.post-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 0;
}

.post-navigation a {
    background: transparent;
    border: none;
    padding: 0;
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
}

/* Paginação */
.pagination {
    text-align: center;
    padding: 30px 0;
    margin: 20px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 16px 32px;
    margin: 0 10px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
}

.pagination span.current {
    background: #666;
    cursor: default;
}

/* Footer */
.footer {
    background: transparent;
    border: none;
    padding: 10px 0;
    text-align: center;
    margin-top: 20px;
}

.footer a {
    color: var(--link-color);
}

/* Lightbox simples */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: brightness(0.1);
    z-index: 9999;
    cursor: pointer;
}

.lightbox.active {
    display: block;
}

.lightbox img {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95%;
    max-height: 95svh;
    object-fit: contain;
}

.lightbox-close {
    display: none;
}

/* Responsivo */
@media (max-width: 768px) {
    .header-inner,
    .header-buttons {
        padding-left: 16px;
    }
    
    .site-title,
    .header-btn {
        font-size: 24px;
    }
    
    .post,
    .post img {
        width: 100%;
    }
    
    .pagination a,
    .pagination span {
        padding: 12px 20px;
        font-size: 14px;
        margin: 5px;
    }
}

/* Tags/Labels page */
.tags-list {
    padding: 20px;
    text-align: center;
}

.tags-list a {
    display: inline-block;
    padding: 8px 16px;
    margin: 5px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--link-color);
    text-decoration: none;
}

/* Page title */
.page-title {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    padding: 20px 0;
    color: var(--text-color);
}

/* Hide elements */
.hidden {
    display: none !important;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
    font-size: 16px;
}

/* Search */
.search-container {
    display: flex;
    gap: 5px;
    align-items: center;
}

#post-search {
    background: transparent;
    border: 1px solid #fff;
    outline: none;
    color: #fff;
    font-size: 16px;
    text-align: center;
    width: 60px;
    padding: 2px 5px;
}

#post-search::placeholder {
    color: #888;
}

#post-go {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
}

/* Age Gate */
.age-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.age-gate-box {
    text-align: center;
    padding: 40px;
}

.age-gate-box h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.age-gate-box p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #888;
}

.age-gate-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.age-gate-buttons button {
    padding: 12px 40px;
    font-size: 18px;
    cursor: pointer;
    background: #333;
    color: #fff;
    border: none;
}

.age-verified .age-gate {
    display: none !important;
}

/* Esconde alt text do lightbox quando vazio */
.lightbox img[src=""] {
    visibility: hidden;
}

/* Quando lightbox ativo, escurece TUDO */
body.lightbox-active {
    background: #000 !important;
}

body.lightbox-active .header,
body.lightbox-active .main-content,
body.lightbox-active .footer,
body.lightbox-active .container {
    visibility: hidden;
}

body.lightbox-active .lightbox {
    visibility: visible;
}

/* Página de post individual - reduz espaço entre botão e imagem */
.page-post .main-content {
    padding-top: 0;
}

.page-post .header-buttons {
    padding-bottom: 5px;
}