/*
Theme Name: Caroll Tomathis
Theme URI: https://carolltomathis.com.br
Author: Caroll Tomathis
Author URI: https://carolltomathis.com.br
Description: Tema WordPress personalizado para o blog da Caroll Tomathis, com design cinematográfico e elegante.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: carolltomathis
Tags: blog, custom-menu, featured-images, threaded-comments, translation-ready

Este tema foi criado para replicar o visual do site principal da Caroll Tomathis.
*/

/* Importar Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&display=swap');

/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-espresso: #120909;
  --color-cocoa: #3b221e;
  --color-nude: #cda38a;
  --color-champagne: #f9e5d8;
  --color-blush: #e9b2a5;
  --color-emerald: #18b37f;
  
  --font-display: 'Playfair Display', ui-serif, Georgia, serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
  
  --shadow-cinematic: 0 30px 80px rgba(0, 0, 0, 0.75);
  --shadow-card: 0 22px 55px rgba(0, 0, 0, 0.55);
  
  --radius-4xl: 2.1rem;
  --radius-3xl: 1.5rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-espresso);
  color: var(--color-champagne);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fundo cinematográfico */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -30;
  background: linear-gradient(to bottom, #000, var(--color-espresso), #000);
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -20;
  pointer-events: none;
  background-image: 
    radial-gradient(circle at -10% -10%, rgba(205, 163, 138, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 110% 10%, rgba(233, 178, 165, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 10% 110%, rgba(59, 34, 30, 0.6) 0%, transparent 50%);
  background-size: 320px 320px, 384px 384px, 320px 320px;
  background-position: -160px -10%, 110% 10%, 10% 110%;
  background-repeat: no-repeat;
  filter: blur(60px);
}

/* Textura de grão */
.grain-overlay {
  position: fixed;
  inset: -40px;
  z-index: -19;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='noStitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
  animation: grain 8s steps(2, end) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(-1%, 1%, 0); }
  50% { transform: translate3d(1%, -1%, 0); }
  75% { transform: translate3d(-1%, -1%, 0); }
}

/* Layout helpers */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .section {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 0 2rem;
  }
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-champagne);
}

h1 {
  font-size: 2.5rem;
}

@media (min-width: 640px) {
  h1 {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 3.75rem;
  }
}

h2 {
  font-size: 1.875rem;
}

@media (min-width: 640px) {
  h2 {
    font-size: 2.25rem;
  }
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: rgba(249, 229, 216, 0.9);
}

a {
  color: var(--color-champagne);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-emerald);
}

/* Badge */
.badge-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background-color: rgba(59, 34, 30, 0.8);
  padding: 0.25rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(249, 229, 216, 0.8);
  border: 1px solid rgba(249, 229, 216, 0.2);
}

/* Botões */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: var(--color-emerald);
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: rgba(24, 179, 127, 0.9);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(249, 229, 216, 0.4);
  background-color: transparent;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(249, 229, 216, 0.9);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: rgba(59, 34, 30, 0.6);
  border-color: var(--color-champagne);
}

/* Cards */
.card-dark {
  border-radius: var(--radius-3xl);
  border: 1px solid rgba(249, 229, 216, 0.1);
  background-color: rgba(59, 34, 30, 0.8);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
}

.card-soft {
  border-radius: var(--radius-3xl);
  border: 1px solid rgba(249, 229, 216, 0.15);
  background-color: rgba(18, 9, 9, 0.8);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s ease;
}

.card-soft:hover {
  border-color: rgba(249, 229, 216, 0.3);
}

/* Text Label */
.text-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: rgba(249, 229, 216, 0.6);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid rgba(249, 229, 216, 0.1);
  background-color: rgba(18, 9, 9, 0.95);
  backdrop-filter: blur(8px);
}

/* Resetar qualquer estilo padrão do WordPress no menu */
.site-header ul,
.site-header nav ul,
.site-header .nav-menu,
.site-header .main-navigation ul {
  list-style: none !important;
  list-style-type: none !important;
  -webkit-padding-start: 0 !important;
  -moz-padding-start: 0 !important;
  padding-inline-start: 0 !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-champagne);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
}

.site-logo:hover {
  color: var(--color-nude);
}

.site-logo img {
  height: auto;
  max-height: 2rem;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu li::before,
.nav-menu li::after {
  content: none;
  display: none;
}

.nav-menu a {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(249, 229, 216, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu a.current-menu-item,
.nav-menu .current_page_item > a {
  color: var(--color-emerald);
}

/* Botão de menu mobile */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
}

.mobile-menu-toggle .mobile-menu-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-champagne);
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-toggle.is-active .mobile-menu-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.is-active . mobile-menu-bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.is-active .mobile-menu-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Main Content */
.site-main {
  flex: 1;
  padding: 2rem 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(249, 229, 216, 0.1);
  background-color: rgba(59, 34, 30, 0.5);
  backdrop-filter: blur(8px);
  padding: 3rem 0;
  margin-top: auto;
}

.footer-content {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-section h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-champagne);
  margin: 0 0 1rem 0;
}

.footer-section p {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: rgba(249, 229, 216, 0.7);
  line-height: 1.8;
  margin: 0;
}

.footer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-section ul li {
  margin: 0;
  padding: 0;
}

.footer-section ul a {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: rgba(249, 229, 216, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul a:hover {
  color: var(--color-champagne);
}

.footer-copyright {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(249, 229, 216, 0.1);
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: rgba(249, 229, 216, 0.5);
}

/* Posts */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.post-card {
  transition: border-color 0.3s ease;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: rgba(249, 229, 216, 0.6);
  margin-bottom: 0.75rem;
}

.post-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-champagne);
  margin-bottom: 0.75rem;
}

.post-excerpt {
  font-size: 0.875rem;
  color: rgba(249, 229, 216, 0.8);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.post-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-emerald);
  transition: color 0.3s ease;
}

.post-link:hover {
  color: rgba(24, 179, 127, 0.8);
}

/* Single Post */
.single-post-header {
  margin-bottom: 2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(249, 229, 216, 0.7);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: var(--color-champagne);
}

.single-post-content {
  line-height: 1.8;
  color: rgba(249, 229, 216, 0.9);
}

.single-post-content p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .single-post-content p {
    font-size: 1.125rem;
  }
}

.single-post-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(249, 229, 216, 0.1);
}

/* Related posts */
.related-posts {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(249, 229, 216, 0.1);
}

.related-posts-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-champagne);
  margin-bottom: 1.5rem;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .related-posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.related-post-card {
  height: 100%;
}

.related-post-thumbnail {
  display: block;
  margin-bottom: 0.75rem;
}

/* WhatsApp Button */
.whatsapp-button {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background-color: var(--color-emerald);
  color: #fff;
  box-shadow: var(--shadow-cinematic);
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.whatsapp-button:hover {
  background-color: rgba(24, 179, 127, 0.9);
}

.whatsapp-button span {
  font-size: 1.5rem;
}

/* Utility Classes */
.max-w-4xl {
  max-width: 56rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.space-y-12 > * + * {
  margin-top: 3rem;
}

.space-y-8 > * + * {
  margin-top: 2rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.pt-12 {
  padding-top: 3rem;
}

.pb-20 {
  padding-bottom: 5rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.text-5xl {
  font-size: 3rem;
}

.text-6xl {
  font-size: 3.75rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-base {
  font-size: 1rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.leading-tight {
  line-height: 1.25;
}

.leading-relaxed {
  line-height: 1.75;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

.text-champagne {
  color: var(--color-champagne);
}

.text-champagne\/80 {
  color: rgba(249, 229, 216, 0.8);
}

.text-champagne\/70 {
  color: rgba(249, 229, 216, 0.7);
}

.text-champagne\/60 {
  color: rgba(249, 229, 216, 0.6);
}

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

.inline-block {
  display: inline-block;
}

.block {
  display: block;
}

.w-full {
  width: 100%;
}

.w-4 {
  width: 1rem;
}

.h-4 {
  height: 1rem;
}

.rounded-3xl {
  border-radius: var(--radius-3xl);
}

.font-display {
  font-family: var(--font-display);
}

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

.text-\[10px\] {
  font-size: 10px;
}

/* Classes com barra (opacidade) - usando atributos de estilo inline nos templates */

/* Responsive */
@media (min-width: 640px) {
  h1[style*="font-size: 2.5rem"] {
    font-size: 3rem !important;
  }
  
  .text-4xl {
    font-size: 3rem;
  }
  
  .text-5xl {
    font-size: 3.75rem;
  }
}

@media (min-width: 1024px) {
  h1[style*="font-size: 2.5rem"] {
    font-size: 3.75rem !important;
  }
  
  .text-4xl {
    font-size: 3.75rem;
  }
  
  .text-5xl {
    font-size: 3.75rem;
  }
  
  .text-6xl {
    font-size: 3.75rem;
  }
}

/* Garantir que não há bullet points em nenhum lugar do menu */
.header-content ul li::marker,
.nav-menu li::marker,
.main-navigation ul li::marker {
  content: none !important;
  display: none !important;
}

.header-content ul,
.nav-menu,
.main-navigation ul {
  -webkit-padding-start: 0 !important;
  padding-inline-start: 0 !important;
}

@media (max-width: 767px) {
  .header-content {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.75rem;
  }

  .main-navigation.is-open .nav-menu {
    display: flex;
  }

  h1 {
    font-size: 2rem;
  }
}

/* Imagens gerais - evitar distorção em qualquer dispositivo */
img {
  max-width: 100%;
  height: auto;
}

.entry-content img,
.wp-block-image img,
.wp-post-image {
  width: 100%;
  height: auto;
  display: block;
}

/* WordPress Core Styles */
.wp-block-group,
.wp-block-columns,
.wp-block-image,
.wp-block-gallery {
  margin-bottom: 1.5rem;
}

.wp-block-image img {
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-card);
}

/* Imagem destacada do post (thumbnail) com proporção cinematográfica */
.post-thumbnail {
  border-radius: var(--radius-3xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 9;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Alignments */
.alignleft {
  float: left;
  margin-right: 1.5rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Comments */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(249, 229, 216, 0.1);
}

.comment-list {
  list-style: none;
  margin-bottom: 2rem;
}

.comment {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: rgba(18, 9, 9, 0.6);
  border-radius: var(--radius-3xl);
  border: 1px solid rgba(249, 229, 216, 0.1);
}

.comment-author {
  font-weight: 600;
  color: var(--color-champagne);
  margin-bottom: 0.5rem;
}

.comment-date {
  font-size: 0.75rem;
  color: rgba(249, 229, 216, 0.6);
  margin-bottom: 0.75rem;
}

.comment-content {
  color: rgba(249, 229, 216, 0.9);
  line-height: 1.8;
}

/* Pagination */
.pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.pagination .nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 9999px;
  background-color: rgba(18, 9, 9, 0.8);
  border: 1px solid rgba(249, 229, 216, 0.15);
  color: rgba(249, 229, 216, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background-color: var(--color-emerald);
  color: #fff;
  border-color: var(--color-emerald);
}

.pagination .page-numbers.dots {
  background-color: transparent;
  border: none;
  cursor: default;
}

.pagination .page-numbers.dots:hover {
  background-color: transparent;
  color: rgba(249, 229, 216, 0.8);
}

/* Search */
.search-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.search-field {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(249, 229, 216, 0.2);
  background-color: rgba(18, 9, 9, 0.8);
  color: var(--color-champagne);
  font-size: 0.875rem;
}

.search-field:focus {
  outline: none;
  border-color: var(--color-emerald);
}

.search-submit {
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: none;
  background-color: var(--color-emerald);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-submit:hover {
  background-color: rgba(24, 179, 127, 0.9);
}

