* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Garamond', 'Times New Roman', serif;
}

body {
    background-color: #0a0a0a;
    color: #c9c9c9;
    line-height: 1.6;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(20, 0, 30, 0.3) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(40, 0, 20, 0.3) 0%, transparent 20%);
    min-height: 100vh;
}

/* Cabeçalho */
header {
    background-color: rgba(10, 5, 15, 0.9);
    padding: 20px 0;
    border-bottom: 1px solid #2a0a2a;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    text-align: center;
    margin-bottom: 15px;
}

.logo h1 {
    font-size: 3.5rem;
    color: #8a2a8a;
    text-shadow: 0 0 10px rgba(138, 42, 138, 0.5);
    letter-spacing: 3px;
    font-weight: normal;
    margin-bottom: 5px;
}

.logo p {
    font-size: 1rem;
    color: #7a7a7a;
    letter-spacing: 5px;
    text-transform: uppercase;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

nav li {
    margin: 0 15px;
}

nav a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 5px 10px;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

nav a:hover {
    color: #c56ac5;
    border-bottom: 1px solid #8a2a8a;
}

/* Conteúdo Principal */
.article-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="%232a0a2a" stroke-width="1"/><path d="M0,0 L100,100 M100,0 L0,100" stroke="%232a0a2a" stroke-width="0.5"/></svg>');
    background-size: cover;
    padding: 80px 0 60px;
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #2a0a2a;
}

.article-category {
    display: inline-block;
    background-color: rgba(138, 42, 138, 0.8);
    color: #fff;
    padding: 8px 15px;
    font-size: 0.9rem;
    border-radius: 3px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-header h1 {
    font-size: 2.8rem;
    color: #d8d8d8;
    text-shadow: 0 0 10px rgba(138, 42, 138, 0.3);
    margin-bottom: 20px;
    line-height: 1.3;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;
    color: #a8a8a8;
    font-size: 1rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

/* Layout do Artigo */
.article-container {
    width: 90%;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-bottom: 60px;
}

.article-content {
    background-color: rgba(20, 15, 25, 0.7);
    border: 1px solid #2a0a2a;
    border-radius: 5px;
    padding: 40px;
    position: relative;
}

.article-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, #8a2a8a, transparent);
}

/* Estilização do Conteúdo do Artigo */
.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-body h2 {
    font-size: 1.8rem;
    color: #c56ac5;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2a0a2a;
}

.article-body h3 {
    font-size: 1.4rem;
    color: #d8d8d8;
    margin: 30px 0 15px;
}

.article-body p {
    margin-bottom: 20px;
    color: #b8b8b8;
}

.article-body blockquote {
    border-left: 3px solid #8a2a8a;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #a8a8a8;
    background-color: rgba(138, 42, 138, 0.1);
    padding: 20px;
    border-radius: 0 5px 5px 0;
}

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 10px;
    color: #b8b8b8;
}

.principle-box {
    background-color: rgba(30, 15, 40, 0.8);
    border: 1px solid #3a1a3a;
    border-radius: 5px;
    padding: 25px;
    margin: 25px 0;
    position: relative;
}

.principle-box h4 {
    font-size: 1.3rem;
    color: #c56ac5;
    margin-bottom: 10px;
    border-bottom: 1px solid #3a1a3a;
    padding-bottom: 10px;
}

.principle-box::before {
    content: '✧';
    position: absolute;
    top: -15px;
    left: 20px;
    background-color: rgba(20, 15, 25, 0.9);
    color: #8a2a8a;
    padding: 0 10px;
    font-size: 1.5rem;
}

.article-image {
    width: 100%;
    height: 400px;
    background-color: #1a0f1a;
    margin: 30px 0;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #2a0a2a;
    overflow: hidden;
}

.article-image-placeholder {
    color: #5a5a5a;
    font-size: 1rem;
    text-align: center;
    padding: 20px;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #2a0a2a;
}

.tag {
    background-color: rgba(138, 42, 138, 0.3);
    color: #c56ac5;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(138, 42, 138, 0.5);
}

/* Sidebar */
.sidebar {
    background-color: rgba(20, 15, 25, 0.7);
    border: 1px solid #2a0a2a;
    border-radius: 5px;
    padding: 25px;
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section h3 {
    font-size: 1.3rem;
    color: #c56ac5;
    margin-bottom: 20px;
    border-bottom: 1px solid #2a0a2a;
    padding-bottom: 10px;
}

.author-details {
    text-align: center;
    padding: 20px 0;
}

.author-avatar-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 15px auto;
  background-color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
}

.author-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-details h4 {
    font-size: 1.3rem;
    color: #d8d8d8;
    margin-bottom: 10px;
}

.author-details p {
    color: #a8a8a8;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.author-social {
  margin-top: 20px;
  text-align: center;
}

.portfolio-link {
  display: inline-block;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.portfolio-link:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

.social-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(138, 42, 138, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c56ac5;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: rgba(138, 42, 138, 0.6);
    transform: translateY(-3px);
}

.related-articles {
    list-style: none;
}

.related-articles li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #1a1a1a;
}

.related-articles a {
    color: #d8d8d8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: block;
    line-height: 1.4;
}

.related-articles a:hover {
    color: #c56ac5;
}

.related-articles .article-date {
    font-size: 0.8rem;
    color: #8a8a8a;
    margin-top: 5px;
}

/* Seção de Comentários */
.comments-section {
    background-color: rgba(20, 15, 25, 0.7);
    border: 1px solid #2a0a2a;
    border-radius: 5px;
    padding: 40px;
    margin-bottom: 60px;
}

.comments-section h2 {
    font-size: 1.8rem;
    color: #c56ac5;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2a0a2a;
}

.comment {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #2a0a2a;
}

.comment:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #2a0a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #8a2a8a;
    margin-right: 15px;
    color: #c56ac5;
    font-size: 0.9rem;
}

.comment-author {
    font-weight: bold;
    color: #d8d8d8;
}

.comment-date {
    font-size: 0.85rem;
    color: #8a8a8a;
    margin-left: auto;
}

.comment-text {
    color: #b8b8b8;
    line-height: 1.6;
}

.comment-form {
    margin-top: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #d8d8d8;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(10, 5, 15, 0.7);
    border: 1px solid #2a0a2a;
    border-radius: 5px;
    color: #c9c9c9;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    background-color: #8a2a8a;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #6a1a6a;
}

/* Rodapé */
footer {
    background-color: rgba(10, 5, 15, 0.95);
    padding: 40px 0 20px;
    border-top: 1px solid #2a0a2a;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-section h3 {
    font-size: 1.3rem;
    color: #c56ac5;
    margin-bottom: 20px;
    border-bottom: 1px solid #2a0a2a;
    padding-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #a8a8a8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #c56ac5;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2a0a2a;
    color: #7a7a7a;
    font-size: 0.9rem;
}

/* Responsividade */
@media (max-width: 992px) {
    .article-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .logo h1 {
        font-size: 2.5rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav li {
        margin: 5px 0;
    }

    .article-header {
        padding: 60px 0 40px;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .article-content {
        padding: 25px;
    }

    .comments-section {
        padding: 25px;
    }
}