
/* Importar fontes medievais */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

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

body {
    font-family: 'Crimson Text', Georgia, serif;
    background: linear-gradient(135deg, #1a0f0a 0%, #2c1810 50%, #1a0f0a 100%);
    color: #2c1810;
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Fundo de pergaminho */
.parchment-background {
    background:
        linear-gradient(90deg, rgba(212, 165, 116, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(212, 165, 116, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    min-height: 100vh;
    padding: 30px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(to bottom, #f4e8d8 0%, #ede1d1 50%, #f4e8d8 100%);
    padding: 50px 60px;
    box-shadow:
        0 10px 80px rgba(0, 0, 0, 0.4),
        inset 0 0 60px rgba(139, 69, 19, 0.08);
    border: 2px solid rgba(139, 69, 19, 0.3);
    border-radius: 8px;
    position: relative;
}

/* Cabeçalho */
.blog-header {
    text-align: center;
    margin-bottom: 45px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(139, 69, 19, 0.3);
    position: relative;
}

.blog-header::after {    
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5em;
    color: #d4af37;
    background: #f4e8d8;
    padding: 0 15px;
}

.ornament-top, .ornament-bottom {
    height: 30px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 30"><path d="M0,15 Q50,5 100,15 T200,15" stroke="%238b4513" stroke-width="2" fill="none"/><circle cx="100" cy="15" r="4" fill="%23d4a574"/><circle cx="50" cy="12" r="2" fill="%238b4513"/><circle cx="150" cy="12" r="2" fill="%238b4513"/></svg>') center/contain no-repeat;
    margin: 20px auto;
}

.blog-title {
    font-family: 'Cinzel', serif;
    font-size: 3.2em;
    font-weight: 700;
    color: #5c2e0f;
    text-shadow:
        2px 2px 0px rgba(212, 175, 55, 0.2),
        1px 1px 10px rgba(139, 69, 19, 0.15);
    margin: 15px 0;
    letter-spacing: 3px;
}

.initial-letter {
    font-size: 1.5em;
    color: #8b4513;
    font-weight: 700;
    text-shadow: 3px 3px 6px rgba(212, 165, 116, 0.5);
}

.subtitle {
    display: block;
    font-size: 0.6em;
    font-style: italic;
    color: #8b4513;
    margin-top: 10px;
    letter-spacing: 3px;
}

.blog-subtitle {
    font-family: 'Crimson Text', serif;
    font-size: 1.2em;
    font-style: italic;
    color: #8b4513;
    margin-top: 12px;
    opacity: 0.9;
}

/* Container de Posts */
.posts-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Card de Post */
.post-card {
    background: rgba(255, 255, 255, 0.7);
    padding: 35px;
    border: 1px solid rgba(92, 46, 15, 0.7);
    border-radius: 8px;
    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(245, 230, 179, 0.45) inset,
        inset 0 0 30px rgba(212, 165, 116, 0.15);
    position: relative;
}

.post-card::before {
    content: '❦';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2em;
    color: #8b4513;
    background: #f4e8d8;
    padding: 0 15px;
}

.post-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #d4a574;
}

.post-title {
    font-family: 'Cinzel', serif;
    font-size: 2em;
    color: #5c2e0f;
    margin-bottom: 10px;
    font-weight: 600;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.95em;
    color: #8b4513;
    font-style: italic;
}

.post-author {
    font-weight: 600;
}

.post-date {
    opacity: 0.8;
}

.post-content {
    font-size: 1.2em;
    line-height: 1.9;
    color: #2c1810;
    text-align: justify;
    text-indent: 30px;
}

.post-content::first-letter {
    font-size: 2.5em;
    font-weight: bold;
    float: left;
    line-height: 0.9;
    margin: 5px 10px 0 0;
    color: #8b4513;
    font-family: 'Cinzel', serif;
}

/* Rodapé */
.blog-footer {
    margin-top: 60px;
    padding-top: 40px;
    text-align: center;
    color: #6b3410;
}

.ornament-divider {
    height: 20px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 20"><path d="M0,10 L300,10" stroke="%238b4513" stroke-width="1"/><circle cx="150" cy="10" r="5" fill="%23d4a574" stroke="%238b4513" stroke-width="1"/></svg>') center/contain no-repeat;
    margin: 20px auto;
}

.blog-footer p {
    font-family: 'Cinzel', serif;
    font-size: 1.1em;
    margin: 10px 0;
}

.footer-quote {
    font-family: 'Crimson Text', serif;
    font-style: italic;
    font-size: 1em;
    color: #8b4513;
    margin-top: 15px;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 40px 30px;
    }
    
    .blog-title {
        font-size: 2.5em;
    }
    
    .post-title {
        font-size: 1.6em;
    }
    
    .post-content {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .parchment-background {
        padding: 20px 10px;
    }
    
    .container {
        padding: 30px 20px;
    }
    
    .blog-title {
        font-size: 2em;
    }
    
    .post-card {
        padding: 25px;
    }
}
