/*
Theme Name: Falabetinho Fluent
Theme URI: https://falabetinho.com.br/
Author: Betinho
Author URI: https://falabetinho.com.br/eu/
Description: A WordPress theme using Fluent Design System web components.
Version: 1.0
License: MIT
License URI: https://opensource.org/licenses/MIT
Text Domain: falabetinhofluent
Tags: fluent, webcomponents, modern, responsive
*/

/* =====================
   VARIÁVEIS DE TEMA
====================== */
:root {
  /* Modal */
  --modal-bg: #f7f7fa;
  --modal-text: #2d1a4d;
  /* Body */
  --body-bg: #f7f6fb;
  --body-text: #2d1a4d;
  /* Header */
  --header-text: #4B2776;
  --header-text-light: #ffe066; /* amarelo claro padrão */
  --header-divider: #e0e0e0;
  /* Menu */
  --menu-bg: #fefce7;
  --menu-text: #4B2776;
  --menu-hover: rgba(179, 157, 219, 0.18);
  --menu-border: rgba(255, 255, 255, 0.18);
  /* Fluent Spacing & Radius */
  --fluent-spacing-xxs: 2px;
  --fluent-spacing-xs: 4px;
  --fluent-spacing-s: 8px;
  --fluent-spacing-m: 12px;
  --fluent-spacing-l: 16px;
  --fluent-spacing-xl: 20px;
  --fluent-spacing-xxl: 32px;
  --corner-radius-none: 0px;
  --corner-radius-small: 2px;
  --corner-radius-medium: 4px;
  --corner-radius-large: 8px;
  --corner-radius-xlarge: 16px;
  --corner-radius-circular: 9999px;
  /* Fluent Shadows */
  --shadow2: 0px 1px 2px rgba(0, 0, 0, 0.14);
  --shadow4: 0px 2px 4px rgba(0, 0, 0, 0.14);
  --shadow8: 0px 4px 8px rgba(0, 0, 0, 0.14);
  --shadow16: 0px 8px 16px rgba(0, 0, 0, 0.14);
  --shadow28: 0px 14px 28px rgba(0, 0, 0, 0.20);
  --shadow64: 0px 32px 64px rgba(0, 0, 0, 0.20);
  --accent-fill-rest: #FFD54F;
}

.dark-theme {
  --modal-bg: #23202a;
  --modal-text: #FFD54F;
  --body-bg: #18151c;
  --body-text: #e6e1f0;
  --header-bg: rgba(33, 33, 33, 0.66);
  --header-text: #FFD54F;
  --header-text-light: #FFD54F; /* mantém o mesmo tom do dark */
  --header-divider: #3a2b4d;
  --menu-bg: rgba(33, 33, 33, 1);
  --menu-text: #FFD54F;
  --menu-hover: rgba(126, 87, 194, 0.18);
  --menu-border: rgba(126, 87, 194, 0.28);
}

/* =====================
   MODAL
====================== */
body.modal-open {
  overflow: hidden !important;
  position: fixed;
  width: 100vw;
}

.fluent-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  background: rgba(30, 22, 54, 0.55);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  min-width: 100vw;
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
}

.fluent-modal-content {
  position: relative;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  overflow-y: auto;
  border-radius: 0;
  background: var(--modal-bg, #fff);
  color: var(--modal-text, #2d1a4d);
  box-shadow: none;
  padding: 2.5rem 2rem 2rem 2rem;
  animation: modalIn 0.18s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column;
}

.fluent-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--modal-text, #2d1a4d);
  cursor: pointer;
  z-index: 2;
  opacity: 0.7;
  transition: opacity 0.18s;
}

.fluent-modal-close:hover {
  opacity: 1;
}

.fluent-modal-body {
  margin-top: 0.5rem;
}

@keyframes modalIn {
  from {
    transform: translateY(32px) scale(0.98);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

/* =====================
   BODY
====================== */
body {
  margin: 0;
  font-family: 'Quicksand', 'Segoe UI', sans-serif;
  overflow-x: hidden;
  position: relative;
  padding: var(--fluent-spacing-l);
  background: var(--body-bg);
  color: var(--body-text);
  background-repeat: no-repeat;
  background-size: cover;
  justify-content: center;
  align-items: center;
  background-position: top center;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: -2;
  width: 100vw;
  height: 45%;
  background-size: cover;
  background-position: top center;
  background: linear-gradient(12deg, transparent 75%, #fff700);
  opacity: .9;
}

body::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  pointer-events: none;
  z-index: -1;
}

.dark-theme body::after {
  background: linear-gradient(135deg, rgba(24, 21, 28, 0.88) 0%, rgba(24, 21, 28, 0.92) 100%);
  opacity: 1;
}

@keyframes float {
  0% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-30px) scale(1.05);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

/* =====================
   HEADER
====================== */
header {
  background: var(--header-bg);
  color: var(--header-text);
  transition: background 0.2s, color 0.2s;
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
  /* Efeito acrílico (vidro fosco) */
  backdrop-filter: blur(16px) saturate(100%);
  -webkit-backdrop-filter: blur(16px) saturate(100%);
  border-radius: var(--corner-radius-large);
  border: 1px solid rgba(255, 255, 255, 0.18);
  /* Elevação (sombra) */
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16);
  /* Iluminação (highlight) */
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.08) 100%);
  pointer-events: none;
  z-index: 1;
  border-radius: var(--corner-radius-large);
  box-shadow: 0px 0px 6px 0px rgba(255, 255, 255, 0.16) inset;
  -webkit-box-shadow: 0px 0px 6px 0px rgba(255, 255, 255, 0.16) inset;
  -moz-box-shadow: 0px 0px 6px 0px rgba(255, 255, 255, 0.16) inset;
}

header * {
  position: relative;
  z-index: 2;
}

header .container-h {
  display: flex;
  padding: var(--fluent-spacing-m);
}

header .container-h:nth-child(1) {
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  background-color: rgba(255, 255, 255, .16);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: start;
  color: var(--accent-fill-rest, #FFD54F);
}

.brand a {
  display: block;
  position: relative;
}

.site-title,
.site-logo,
header .brand,
header .brand a {
  color: var(--header-text) !important;
}

.custom-drawer-header {
  background: var(--header-bg);
  color: var(--header-text);
  border-bottom: 1px solid var(--header-divider);
}

fluent-divider[orientation="horizontal"] {
  border-color: var(--header-divider) !important;
}

nav {
  margin: 20px 0;
}

nav ul {
  list-style-type: none;
  padding: 0;
}

nav ul li {
  display: inline;
  margin: 0 15px;
}

nav ul li a {
  color: white;
  text-decoration: none;
}

/* =====================
   BOTÃO TOGGLE TEMA
====================== */
.theme-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  margin-left: 1rem;
  color: var(--menu-text);
  transition: color 0.2s;
  outline: none;
}

.theme-toggle-btn:focus .theme-toggle-icon,
.theme-toggle-btn:hover .theme-toggle-icon {
  color: #7E57C2;
}

.theme-toggle-icon {
  pointer-events: none;
  font-size: 1.5rem;
  transition: color 0.2s;
}

/* =====================
   FOOTER E COMPONENTES
====================== */
footer {
  color: white;
  text-align: center;
  position: relative;
  bottom: 0;
  width: 100%;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
  padding: 15px;
}

.button {
  background-color: #0078d4;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 15px;
  cursor: pointer;
}

.button:hover {
  background-color: #005a9e;
}
.modal-post-thumb{
  text-align: center;
}
/*Post*/
.modal-post-thumb img {
  width: 100%;
  max-width: 680px;
  height: auto;
  box-shadow: var(--shadow16);
  border-radius: var(--corner-radius-xlarge);
}