/*
Theme Name: AliensSheeps
Author: Matheus Arcanjo
Description: Tema com menu responsivo deslizante e grid de posts moderno.
Version: 2.0
*/

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 80px;
}

/* =============================================
   HEADER & NAVEGAÇÃO
   ============================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 9999;
    display: flex;
    align-items: center;
}

.menu_header {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo a {
    text-decoration: none !important;
    font-size: 18px;
    font-weight: 700;
}

.site-logo a:hover {
    text-decoration: none !important;
}

.nav-desktop {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 5px;
}

.nav-desktop li a {
    display: flex;
    align-items: center;
    padding: 8px 18px;
    text-decoration: none;
    font-size: 15px;
    transition: opacity 0.2s ease;
}

.nav-desktop li a:hover {
    text-decoration: underline;
    text-underline-offset: 6px;
}

.menu-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

/* =============================================
   SIDEBAR MOBILE
   ============================================= */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 260px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    list-style: none;
    z-index: 99999;
    padding-top: 20px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}

.sidebar li {
    width: 100%;
}

.sidebar a {
    display: block;
    width: 100%;
    padding: 14px 24px;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s ease;
}

.sidebar a:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* =============================================
   CAMPO DE BUSCA
   ============================================= */
.menu-search {
    display: flex;
    align-items: center;
}

.menu-search input[type="search"] {
    padding: 6px 16px;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    width: 140px;
    transition: width 0.3s ease, background 0.3s ease;
    background: transparent;
}

.menu-search input[type="search"]:focus {
    width: 200px;
}

.sidebar .menu-search {
    width: 100%;
    padding: 12px 20px;
}

.sidebar .menu-search input[type="search"] {
    width: 100%;
}

/* =============================================
   RESPONSIVO
   ============================================= */
@media (max-width: 800px) {
    .nav-desktop {
        display: none;
    }
    .menu-button {
        display: block;
    }
}

@media (max-width: 400px) {
    .sidebar {
        width: 100%;
    }
}

@media (min-width: 801px) {
    .sidebar {
        display: none !important;
    }
}

/* =============================================
   GRID DE POSTS
   ============================================= */
.posts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: transparent;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.14);
}

.post-card > a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-thumbnail {
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    line-height: 0;
}

.post-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.post-content {
    padding: 20px;
}

.post-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.post-excerpt p {
    font-size: 0.92rem;
    color: #666;
    line-height: 1.5;
}

/* =============================================
   PAGINAÇÃO
   ============================================= */
.pagination-wrapper {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    background: transparent;
}

.pagination-wrapper .nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
    background: transparent;
}

.pagination-wrapper .nav-links a,
.pagination-wrapper .nav-links span {
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    background: transparent;
    transition: transform 0.2s ease;
}

.pagination-wrapper .nav-links a:hover {
    transform: translateY(-3px);
}

/* =============================================
   PÁGINA DO POST (SINGLE)
   ============================================= */
.single-post-container {
    max-width: 860px;
    margin: 40px auto;
    padding: 40px;
    border-radius: 20px;
}

.post-featured-image {
    border-radius: 16px;
    overflow: hidden;
    line-height: 0;
    margin-bottom: 30px;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.entry-title {
    font-size: 2.2rem;
    line-height: 1.25;
    margin-bottom: 10px;
}

.entry-meta {
    font-size: 0.88rem;
    color: #888;
    margin-bottom: 30px;
}

.entry-content {
    line-height: 1.85;
    font-size: 1.05rem;
    color: #444;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.entry-footer {
    margin-top: 30px;
    font-size: 0.9rem;
    color: #888;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    gap: 20px;
}

.post-navigation a {
    text-decoration: none;
    font-weight: bold;
    color: inherit;
    transition: opacity 0.2s;
}

.post-navigation a:hover {
    opacity: 0.7;
}

/* =============================================
   COMENTÁRIOS
   ============================================= */
.comments-area {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.comments-title,
.comment-reply-title {
    font-size: 1.4rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list li {
    margin-bottom: 20px;
}

.comment-body {
    display: flex;
    gap: 18px;
    background: rgba(255, 255, 255, 0.45);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease;
}

.comment-body:hover {
    transform: translateX(4px);
}

.comment-avatar img {
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.comment-content-wrapper {
    flex: 1;
}

.comment-meta {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.comment-author {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
}

.comment-date {
    font-size: 0.8rem;
    color: #999;
}

.comment-text p {
    color: #555;
    line-height: 1.6;
    margin: 8px 0;
}

.comment-list .children {
    margin-left: 55px;
    margin-top: 15px;
    list-style: none;
    padding: 0;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.05);
    transition: background 0.2s ease, transform 0.2s ease;
}

.comment-reply-link:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

#commentform {
    display: grid;
    gap: 14px;
    background: rgba(255, 255, 255, 0.3);
    padding: 28px;
    border-radius: 18px;
    margin-top: 30px;
}

#commentform textarea,
#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

#commentform textarea:focus,
#commentform input:focus {
    border-color: rgba(0, 0, 0, 0.35);
}

.submit-button,
#commentform input[type="submit"] {
    cursor: pointer;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 15px;
    font-family: inherit;
    transition: opacity 0.2s ease, transform 0.2s ease;
    justify-self: start;
}

.submit-button:hover,
#commentform input[type="submit"]:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.comment-list li #respond {
    margin-top: 15px;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    color: #fff;
    padding: 40px 20px;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-info h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.footer-info p {
    opacity: 0.75;
    margin-bottom: 20px;
}

.footer-copy {
    font-size: 13px;
    opacity: 0.6;
}
