/* Reset e configurações gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Azeret Mono', monospace;
    font-weight: 300;
    background-color: #f7efcd;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Cabeçalho */


.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 40px;
    position: relative;
    padding-top: 10px;
    gap: 35px;  /* AUMENTADO: antes ~15px, agora +20px */
}

.back-btn {
    font-family: 'Almendra Display', cursive;
    font-size: 1.2rem;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.page-title {
    margin: 50px 0 0 0;
    font-size: 4.5rem;   /* tamanho anterior */
    font-size: calc(3.5rem + 20px); /* AUMENTO de +20px */
    line-height: 1;
}


.secret-admin-area {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
}


.back-btn:hover {
    opacity: 0.7;
}

.page-title {
    font-family: 'Almendra Display', cursive;
    font-size: 3.5rem;
    font-weight: normal;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Botão secreto admin */
.secret-admin-area {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: transparent;
    cursor: pointer;
    z-index: 1000;
}

/* Layout principal */
.main-content {
    display: flex;
    gap: 60px;
}

/* Coluna das postagens */
.posts-column {
    flex: 3;
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.post-card {
    background: white;
    border: 1px solid #ddd;
    padding: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    break-inside: avoid;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.post-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 300;
}

.post-content {
    font-size: 1rem;
    line-height: 1.8;
}

/* Coluna do arquivo */
.archive-column {
    flex: 1;
    min-width: 300px;
}

.archive-title {
    font-family: 'Azeret Mono', light;
    font-size: 1.5rem;
    font-weight: normal;
    margin-bottom: 30px;
    color: #333;
}

.archive-menu {
    font-size: 1rem;
}

.archive-category {
    margin-bottom: 25px;
}

.category-title {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-title i {
    font-size: 0.9rem;
    transition: transform 0.3s;
}

.category-title.collapsed i {
    transform: rotate(-90deg);
}

.archive-items {
    list-style: none;
    padding-left: 20px;
}

.archive-items li {
    margin-bottom: 12px;
    cursor: pointer;
    transition: color 0.3s;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.archive-items li:hover {
    color: #666;
}

.archive-items li:last-child {
    border-bottom: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 5px;
    min-width: 400px;
    text-align: center;
}

.modal-content h3 {
    font-family: 'Almendra Display', cursive;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    font-family: 'Azeret Mono', monospace;
    font-size: 1rem;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-buttons button {
    padding: 10px 25px;
    border: 1px solid #333;
    background: white;
    cursor: pointer;
    font-family: 'Azeret Mono', monospace;
    transition: all 0.3s;
}

.modal-buttons button:hover {
    background: #333;
    color: white;
}

/* Página individual de postagem */
.post-page .posts-grid {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

/* Responsividade */
@media (max-width: 1200px) {
    .main-content {
        flex-direction: column;
    }
    
    .archive-column {
        order: -1;
        margin-bottom: 40px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-title {
        position: static;
        transform: none;
        margin: 20px 0;
    }
    
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .secret-admin-area {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
}