/* 
 * Confluência dos Mundos - Estilo Base
 * Tema: Fantasia Medieval
 */

/* ===== IMPORTAÇÃO DE FONTES ===== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Alegreya:ital,wght@0,400;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=MedievalSharp&display=swap');

/* ===== VARIÁVEIS ===== */
:root {
  /* Cores Principais */
  --azul-profundo: #1a2b47;
  --dourado-antigo: #c9a55c;
  --verde-floresta: #2c5f2d;
  --roxo-mistico: #5d3a6d;
  
  /* Cores Secundárias */
  --marrom-pergaminho: #d4b996;
  --vermelho-runico: #a52a2a;
  --azul-brilhante: #4a86e8;
  --cinza-pedra: #7d8491;
  
  /* Cores de Fundo */
  --preto-cosmico: #0a0e17;
  --bege-pergaminho: #f5e6ca;
  
  /* Fontes */
  --fonte-titulos: 'Cinzel', serif;
  --fonte-subtitulos: 'Alegreya', serif;
  --fonte-corpo: 'Lora', serif;
  --fonte-destaque: 'MedievalSharp', cursive;
  
  /* Tamanhos */
  --espacamento-padrao: 1.5rem;
  --borda-arredondada: 0.5rem;
  --largura-maxima: 1200px;
  --largura-conteudo: 800px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--fonte-corpo);
  line-height: 1.6;
  color: var(--azul-profundo);
  background-color: var(--bege-pergaminho);
  background-image: url('../assets/images/pergaminho-bg.jpg');
  background-size: cover;
  background-attachment: fixed;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--azul-profundo);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

a:hover {
  color: var(--azul-brilhante);
}

a:not(.btn):after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--dourado-antigo);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

a:not(.btn):hover:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

ul, ol {
  list-style-position: inside;
}

/* ===== TIPOGRAFIA ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--fonte-titulos);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--azul-profundo);
}

h1 {
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 3px;
  background: var(--dourado-antigo);
}

h3 {
  font-size: 1.5rem;
  color: var(--roxo-mistico);
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1.5rem;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.capitular::first-letter {
  font-family: var(--fonte-destaque);
  font-size: 3.5em;
  float: left;
  line-height: 0.8;
  margin-right: 0.1em;
  color: var(--vermelho-runico);
}

.destaque {
  font-family: var(--fonte-destaque);
  color: var(--vermelho-runico);
  font-style: italic;
}

blockquote {
  font-family: var(--fonte-subtitulos);
  font-style: italic;
  border-left: 4px solid var(--dourado-antigo);
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: var(--roxo-mistico);
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--largura-maxima);
  margin: 0 auto;
  padding: 0 var(--espacamento-padrao);
}

.content-container {
  max-width: var(--largura-conteudo);
  margin: 0 auto;
  padding: var(--espacamento-padrao);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1rem;
}

.col {
  flex: 1;
  padding: 0 1rem;
}

.col-2 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 1rem;
}

.col-3 {
  flex: 0 0 33.333%;
  max-width: 33.333%;
  padding: 0 1rem;
}

.col-4 {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 0 1rem;
}

section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  display: inline-block;
}

.section-title h2:after {
  left: 50%;
  transform: translateX(-50%);
}

/* ===== CABEÇALHO ===== */
.site-header {
  background: linear-gradient(to bottom, rgba(10, 14, 23, 0.9), rgba(26, 43, 71, 0.8));
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo a:after {
  display: none;
}

.logo h1 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--dourado-antigo);
  text-shadow: 0 0 5px rgba(201, 165, 92, 0.5);
  transition: all 0.3s ease;
}

.logo h1:hover {
  text-shadow: 0 0 10px rgba(201, 165, 92, 0.8);
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav li {
  margin-left: 1.5rem;
}

.main-nav a {
  color: var(--marrom-pergaminho);
  font-family: var(--fonte-subtitulos);
  font-size: 1.1rem;
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0;
}

.main-nav a:hover {
  color: var(--dourado-antigo);
}

.main-nav a:after {
  background-color: var(--dourado-antigo);
  bottom: 0;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--dourado-antigo);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* ===== RODAPÉ ===== */
.site-footer {
  background: linear-gradient(to top, rgba(10, 14, 23, 0.9), rgba(26, 43, 71, 0.8));
  color: var(--marrom-pergaminho);
  padding: 3rem 0 1rem;
  position: relative;
}

.site-footer:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: url('../assets/images/border-top.png') repeat-x;
  background-size: auto 100%;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.footer-logo h2 {
  color: var(--dourado-antigo);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-logo p {
  color: var(--marrom-pergaminho);
  font-style: italic;
}

.footer-links {
  display: flex;
}

.footer-nav, .footer-social {
  margin-right: 3rem;
}

.footer-nav h3, .footer-social h3, .footer-contact h3 {
  color: var(--dourado-antigo);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-family: var(--fonte-subtitulos);
}

.footer-nav ul, .footer-social ul {
  list-style: none;
}

.footer-nav li, .footer-social li {
  margin-bottom: 0.5rem;
}

.footer-nav a, .footer-social a {
  color: var(--marrom-pergaminho);
  text-decoration: none;
}

.footer-nav a:hover, .footer-social a:hover {
  color: var(--dourado-antigo);
}

.footer-contact p {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 185, 150, 0.2);
}

.footer-bottom p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ===== BOTÕES ===== */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: var(--dourado-antigo);
  color: var(--preto-cosmico);
  border: 2px solid var(--dourado-antigo);
  border-radius: var(--borda-arredondada);
  font-family: var(--fonte-subtitulos);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

.btn:hover {
  color: var(--preto-cosmico);
  box-shadow: 0 0 10px rgba(201, 165, 92, 0.5);
}

.btn:hover:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.btn-outline {
  background-color: transparent;
  color: var(--dourado-antigo);
}

.btn-outline:hover {
  background-color: var(--dourado-antigo);
  color: var(--preto-cosmico);
}

.btn-dark {
  background-color: var(--azul-profundo);
  border-color: var(--azul-profundo);
  color: var(--marrom-pergaminho);
}

.btn-dark:hover {
  background-color: var(--preto-cosmico);
  border-color: var(--preto-cosmico);
  color: var(--dourado-antigo);
}

/* ===== CARDS ===== */
.card {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: var(--borda-arredondada);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  position: relative;
}

.card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(to right, var(--dourado-antigo), var(--vermelho-runico), var(--dourado-antigo));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card:hover:before {
  opacity: 1;
}

.card-image {
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-meta {
  font-size: 0.9rem;
  color: var(--cinza-pedra);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.card-meta > * {
  margin-right: 1rem;
}

.card-category {
  display: inline-block;
  background-color: var(--roxo-mistico);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.card-text {
  margin-bottom: 1.5rem;
}

.card-link {
  font-weight: 700;
  color: var(--roxo-mistico);
}

/* ===== FORMULÁRIOS ===== */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--azul-profundo);
}

input, textarea, select {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid var(--cinza-pedra);
  border-radius: var(--borda-arredondada);
  background-color: rgba(255, 255, 255, 0.9);
  font-family: var(--fonte-corpo);
  font-size: 1rem;
  transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--dourado-antigo);
  box-shadow: 0 0 5px rgba(201, 165, 92, 0.5);
}

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

.form-check {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.form-check input {
  width: auto;
  margin-right: 0.5rem;
}

.form-check label {
  margin-bottom: 0;
  font-weight: normal;
}

/* ===== UTILITÁRIOS ===== */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.py-1 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-2 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-3 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-4 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.px-1 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-2 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-3 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-4 {
  padding-left: 2rem;
  padding-right: 2rem;
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(201, 165, 92, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(201, 165, 92, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(201, 165, 92, 0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.animate-fade-in {
  animation: fadeIn 1s ease forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 1200px) {
  :root {
    --largura-maxima: 960px;
  }
}

@media (max-width: 992px) {
  :root {
    --largura-maxima: 720px;
  }
  
  html {
    font-size: 15px;
  }
  
  .col-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .col-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 768px) {
  :root {
    --largura-maxima: 540px;
    --espacamento-padrao: 1rem;
  }
  
  html {
    font-size: 14px;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(10, 14, 23, 0.95), rgba(26, 43, 71, 0.9));
    padding: 1rem;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease;
    z-index: 999;
  }
  
  .main-nav.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  
  .main-nav ul {
    flex-direction: column;
  }
  
  .main-nav li {
    margin: 0.5rem 0;
    margin-left: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
  
  .col-2, .col-3, .col-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .footer-container {
    flex-direction: column;
  }
  
  .footer-logo, .footer-links, .footer-contact {
    margin-bottom: 2rem;
  }
  
  .footer-links {
    flex-direction: column;
  }
  
  .footer-nav, .footer-social {
    margin-right: 0;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 576px) {
  :root {
    --largura-maxima: 100%;
  }
  
  html {
    font-size: 13px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .logo h1 {
    font-size: 1.25rem;
  }
  
  .card-image {
    height: 150px;
  }
}

