/*
Theme Name: O Bardo Elétrico
Description: Tema WordPress para blog de RPG com design medieval e pergaminho
Author: Seu Nome
Version: 1.0.0
Text Domain: bardo-eletrico
*/

@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');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Crimson Text', serif;
    background: linear-gradient(135deg, #f4f1e8 0%, #e8dcc0 100%);
    color: #3a2f1a;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Pergaminho Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(139, 69, 19, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(160, 82, 45, 0.02) 0%, transparent 50%),
        linear-gradient(90deg, transparent 0%, rgba(139, 69, 19, 0.01) 50%, transparent 100%);
    pointer-events: none;
    z-index: -1;
}

/* Navigation */
nav, .site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(244, 241, 232, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 2px solid rgba(139, 69, 19, 0.1);
}

nav.scrolled, .site-header.scrolled {
    background: rgba(244, 241, 232, 0.98);
    box-shadow: 0 2px 20px rgba(139, 69, 19, 0.2);
    border-bottom-color: #daa520;
}

/* CORREÇÃO: Menu Centralizado */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    justify-self: start;
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #8b4513;
    text-decoration: none;
    z-index: 10;
}

.logo::before {
    content: '⚡';
    color: #daa520;
    margin-right: 0.5rem;
}

.logo:hover {
    color: #8b4513;
    text-decoration: none;
}

.main-navigation {
    justify-self: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: #5d4e2a;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    font-weight: 600;
    font-family: 'Cinzel', serif;
}

.nav-menu a:hover {
    color: #8b4513;
    text-decoration: none;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #daa520;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    justify-self: end;
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #8b4513;
    cursor: pointer;
    z-index: 1001;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(244, 241, 232, 0.75) 0%, rgba(232, 220, 192, 0.65) 100%), 
                url('./images/dragon-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    border-bottom: 3px solid #8b4513;
    box-shadow: inset 0 0 100px rgba(139, 69, 19, 0.3);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(244, 241, 232, 0.2) 0%, rgba(139, 69, 19, 0.1) 100%);
    z-index: 1;
}

.hero-content {
    z-index: 2;
    max-width: 1000px;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.hero-character {
    margin-bottom: 2rem;
}

.hero-character img {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 15px 25px rgba(139, 69, 19, 0.6));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(1deg); }
    50% { transform: translateY(-15px) rotate(0deg); }
    75% { transform: translateY(-8px) rotate(-1deg); }
}

.hero h1 {
    font-family: 'Cinzel', serif;
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #8b4513, #daa520, #cd853f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
    line-height: 1.1;
}

.hero p {
    font-size: 1.6rem;
    margin-bottom: 3rem;
    color: #5d4e2a;
    line-height: 1.6;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.8);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, #8b4513, #cd853f);
    color: #f4f1e8;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 3px solid #daa520;
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(139, 69, 19, 0.7);
    border-color: #f4f1e8;
    color: #f4f1e8;
    text-decoration: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Main Content */
.main-content {
    padding-top: 8rem;
    min-height: 70vh;
}

/* Featured Posts */
.featured-posts {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    margin-top: 3rem;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.1);
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.section-title {
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: #8b4513;
    position: relative;
    font-weight: 600;
}

.section-ornament {
    display: block;
    font-size: 2rem;
    color: #daa520;
    margin-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #daa520, transparent);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 245, 235, 0.9) 100%);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid rgba(139, 69, 19, 0.2);
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.1);
    will-change: transform, box-shadow;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(139, 69, 19, 0.2);
    border-color: #daa520;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 245, 235, 1) 100%);
}

.post-image {
    height: 200px;
    background: linear-gradient(135deg, #cd853f, #daa520);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid rgba(139, 69, 19, 0.2);
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-image i {
    font-size: 3rem;
    color: rgba(244, 241, 232, 0.9);
    text-shadow: 2px 2px 4px rgba(139, 69, 19, 0.3);
}

.post-content {
    padding: 1.5rem;
}

.post-category {
    display: inline-block;
    background: rgba(218, 165, 32, 0.2);
    color: #8b4513;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(218, 165, 32, 0.3);
    font-family: 'Cinzel', serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-title {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: #3a2f1a;
    font-weight: 600;
    line-height: 1.3;
}

.post-title a {
    color: inherit;
    text-decoration: none;
}

.post-title a:hover {
    color: #8b4513;
}

.post-excerpt {
    color: #5d4e2a;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #8b7355;
    font-style: italic;
    flex-wrap: wrap;
    gap: 1rem;
}

.post-meta i {
    color: #daa520;
    margin-right: 0.3rem;
}

/* Categories Section */
.categories-section {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1) 0%, rgba(218, 165, 32, 0.1) 100%);
    padding: 5rem 2rem;
    margin: 3rem 0;
    border-top: 3px solid #daa520;
    border-bottom: 3px solid #daa520;
}

/* força 5 colunas iguais */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
}

.category-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid rgba(139, 69, 19, 0.2);
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.1);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category-card:hover {
    transform: scale(1.05);
    border-color: #daa520;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 25px rgba(139, 69, 19, 0.2);
}

.category-card:hover .category-icon i {
    color: #8b4513;
    transform: scale(1.1);
}

.category-title {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #8b4513;
    font-weight: 600;
}

.category-desc {
    color: #5d4e2a;
    font-size: 1rem;
    line-height: 1.5;
    font-style: italic;
}

/* No Posts Message */
.no-posts-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    border: 2px solid rgba(139, 69, 19, 0.2);
}

.no-posts-message h3 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: #8b4513;
    margin-bottom: 1rem;
}

.no-posts-message p {
    color: #5d4e2a;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Posts (for single posts and blog) */
.post {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 245, 235, 0.9) 100%);
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.1);
    border: 2px solid rgba(139, 69, 19, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.entry-title {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    color: #8b4513;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.entry-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: #daa520;
}

.entry-content {
    color: #3a2f1a;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: 'Cinzel', serif;
    color: #8b4513;
    margin: 2rem 0 1rem;
}

.entry-content h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #daa520;
    padding-bottom: 0.5rem;
}

.entry-content blockquote {
    background: rgba(218, 165, 32, 0.1);
    border-left: 4px solid #daa520;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #5d4e2a;
    border-radius: 0 8px 8px 0;
}

.entry-meta {
    background: rgba(218, 165, 32, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    color: #8b7355;
    font-style: italic;
    border: 1px solid rgba(218, 165, 32, 0.3);
}

/* Footer */
.site-footer, footer {
    background: linear-gradient(135deg, #3a2f1a 0%, #5d4e2a 100%);
    color: #f4f1e8;
    text-align: center;
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
    border-top: 3px solid #daa520;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #daa520;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: #cd853f;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(218, 165, 32, 0.1);
}

.social-links a:hover {
    color: #daa520;
    background: rgba(218, 165, 32, 0.2);
    transform: translateY(-2px);
}

/* Decorative elements */
.decorative-border {
    height: 20px;
    background: repeating-linear-gradient(
        90deg,
        #daa520 0px,
        #daa520 10px,
        #cd853f 10px,
        #cd853f 20px
    );
    opacity: 0.3;
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* WordPress Core Classes */
.alignleft {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

.aligncenter {
    display: block;
    margin: 1rem auto;
    text-align: center;
}

.wp-caption {
    max-width: 100%;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(139, 69, 19, 0.2);
    border-radius: 8px;
    padding: 0.5rem;
}

.wp-caption-text {
    font-size: 0.9rem;
    color: #8b7355;
    font-style: italic;
    text-align: center;
    margin-top: 0.5rem;
}

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Links */
a {
    color: #8b4513;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #daa520;
    text-decoration: underline;
}

/* Mobile Menu Panel */
.mobile-menu-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(244, 241, 232, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999;
    padding-top: 80px;
    text-align: center;
}

.mobile-menu-panel.is-open {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mobile-menu-panel .nav-menu {
    flex-direction: column;
    gap: 2rem;
}

.mobile-menu-panel .nav-menu a {
    font-size: 1.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Menu Mobile */
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Hero */
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.3rem;
        margin-bottom: 2rem;
    }
    
    .hero-character img {
        width: 150px;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .category-icon i {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .featured-posts {
        padding: 3rem 1rem;
        margin-top: 2rem;
    }
    
    .main-content {
        padding: 0 1rem;
        margin: 2rem auto;
    }
    
    .post {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .entry-title {
        font-size: 1.8rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-character img {
        width: 120px;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .category-icon i {
        font-size: 2.5rem;
    }
    
    .post {
        padding: 1.5rem 1rem;
    }
    
    .entry-title {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .hero,
    nav,
    .categories-section,
    .social-links,
    footer {
        display: none;
    }
    
    .post {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}

/* Container da sessão de categorias */
.categories-section {
  padding: 4rem 1rem;
  text-align: center;
}

/* Grid responsivo */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Cada card */
.category-card {
  background: #fff;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Ícone com caractere */
.category-icon {
  margin-bottom: 1rem;
}
.category-char {
  display: inline-block;
  font-size: 2.5rem; /* ajuste aqui o tamanho que achar melhor */
  line-height: 1;
  color: #cd853f;
  transition: transform 0.2s ease, color 0.2s ease;
}

/* Hover no caractere */
.category-card:hover .category-char {
  transform: scale(1.2);
  color: #8b4513;
}

/* Títulos e descrições */
.category-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.category-desc {
  font-size: 0.95rem;
  color: #666;
}

/* === Ajustes de grid de categorias === */
.categories-grid {
  display: grid;
  /* cada coluna terá no mínimo 180px, e no máximo 1fr */
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 2rem;
}
@media (max-width: 600px) {
  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

/* === Ajustes de menu principal === */
.nav-menu {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 768px) {
  .main-navigation {
    display: none;
  }
  #mobile-menu-panel {
    display: block;
  }
}

