/* ===== VARIÁVEIS DE CORES - MODO CLARO E ESCURO ===== */

:root {
  /* Modo Claro */
  --bg-primary: #F4F6F8;
  --bg-header: #FFFFFF;
  --text-primary: #1C1E21;
  --text-secondary: #4E5D6C;
  --btn-primary: #DFA543;
  --btn-secondary: #B9802D;
  --link-color: #DFA543;
  --border-color: #D0D7DE;
  --accent-color: #DFA543;
  
  /* Sombras modo claro */
  --shadow-sm: 0 2px 8px rgba(223, 165, 67, 0.1);
  --shadow-md: 0 4px 16px rgba(223, 165, 67, 0.15);
  --shadow-lg: 0 8px 24px rgba(223, 165, 67, 0.2);
}

[data-theme="dark"] {
  /* Modo Escuro */
  --bg-primary: #0D1117;
  --bg-header: #161B22;
  --text-primary: #E6EDF3;
  --text-secondary: #8B949E;
  --btn-primary: #DFA543;
  --btn-secondary: #B9802D;
  --link-color: #DFA543;
  --border-color: #30363D;
  --accent-color: #DFA543;
  
  /* Sombras modo escuro */
  --shadow-sm: 0 2px 8px rgba(223, 165, 67, 0.2);
  --shadow-md: 0 4px 16px rgba(223, 165, 67, 0.25);
  --shadow-lg: 0 8px 24px rgba(223, 165, 67, 0.3);
}

/* ===== ESTILOS GLOBAIS COM TEMA ===== */

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', 'Poppins', 'Archivo', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== HEADER ===== */

header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

header .grid-layout nav .nav-list li a {
  color: var(--text-primary);
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  height: 100%;
}

header .grid-layout nav .nav-list li a:hover {
  color: var(--btn-primary);
}

header .grid-layout nav .nav-list li a::after {
  background: linear-gradient(270deg, var(--btn-primary) 0%, transparent 100%);
}

/* ===== TOGGLE DE TEMA ===== */

#theme-toggle-container {
  list-style: none;
  margin-left: 48px;
  display: flex;
  align-items: center;
}

@media screen and (max-width: 992px) {
  #theme-toggle-container {
    margin-left: 0;
    margin-top: 24px;
    justify-content: center;
  }
}

.theme-toggle {
  background: transparent;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  color: var(--text-primary);
  font-size: 1.4rem;
  font-weight: 500;
}

.theme-toggle:hover {
  border-color: var(--btn-primary);
  background: rgba(223, 165, 67, 0.1);
  transform: translateY(-2px);
}

.theme-toggle-icon {
  font-size: 2rem;
  transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-toggle-icon {
  transform: rotate(20deg);
}

@media screen and (max-width: 992px) {
  .theme-toggle {
    font-size: 1.6rem;
    padding: 12px 24px;
    width: 100%;
    max-width: 200px;
    justify-content: center;
  }
  
  .theme-toggle-icon {
    font-size: 2.4rem;
  }
}

/* ===== SEÇÕES ===== */

#s-home {
  background-color: var(--bg-primary);
}

#s-home .grid-layout #home #home-container-text h1 {
  color: var(--text-primary);
}

#s-home .grid-layout #home #home-container-text h1 span {
  color: var(--btn-primary);
}

#s-home .grid-layout #home #home-container-text p {
  color: var(--text-secondary);
}

#s-about {
  background-color: var(--bg-primary);
}

#s-about .grid-layout #about-text h2 {
  color: var(--text-primary);
}

#s-about .grid-layout #about-text h2 span {
  color: var(--btn-primary);
}

#s-about .grid-layout #about-text p {
  color: var(--text-secondary);
}

#s-about .grid-layout #about-text a {
  color: var(--link-color);
  transition: color 0.3s ease;
}

#s-about .grid-layout #about-text a:hover {
  color: var(--btn-primary);
}

/* ===== EXPERIÊNCIA ===== */

#s-experience {
  background-color: var(--bg-primary);
}

#s-experience .grid-layout h2 {
  color: var(--text-primary);
}

#s-experience .grid-layout h2 span {
  color: var(--btn-primary);
}

#s-experience .grid-layout #experience .option-experience > div {
  background-color: var(--bg-header);
  border-left: 4px solid var(--border-color);
  transition: all 0.3s ease;
}

#s-experience .grid-layout #experience .option-experience > div:hover {
  background: rgba(223, 165, 67, 0.05);
  border-left: 4px solid var(--btn-primary);
}

#s-experience .grid-layout #experience .option-experience .activeExperience {
  border-left: 4px solid var(--btn-primary);
  color: var(--btn-primary);
  background: rgba(223, 165, 67, 0.08);
}

#s-experience .grid-layout #experience .text-experience h4 {
  color: var(--text-primary);
}

#s-experience .grid-layout #experience .text-experience h5 {
  color: var(--btn-primary);
}

#s-experience .grid-layout #experience .text-experience p {
  color: var(--text-secondary);
}

/* ===== CURSOS ===== */

#s-course {
  background-color: var(--bg-header);
}

#s-course .grid-layout h2 {
  color: var(--text-primary);
}

#s-course .grid-layout h2 span {
  color: var(--btn-primary);
}

#s-course .grid-layout #projects > article {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

#s-course .grid-layout #projects > article:hover {
  border: 1px solid var(--btn-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

#s-course .grid-layout #projects > article h3 {
  color: var(--text-primary);
}

#s-course .grid-layout #projects > article p {
  color: var(--text-secondary);
}

/* ===== PROJETOS/SERVIÇOS ===== */

#s-projects {
  background-color: var(--bg-primary);
}

#s-projects .grid-layout h2 {
  color: var(--text-primary);
}

#s-projects .grid-layout h2 span {
  color: var(--btn-primary);
}

#s-projects .grid-layout #services article {
  background-color: var(--bg-header);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

#s-projects .grid-layout #services article:hover {
  border: 1px solid var(--btn-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

#s-projects .grid-layout #services article h3 {
  color: var(--text-primary);
}

#s-projects .grid-layout #services article p {
  color: var(--text-secondary);
}

/* ===== LOJA ===== */

#s-store {
  background-color: var(--bg-header);
}

#s-store .grid-layout #store #store-text h2 {
  color: var(--text-primary);
}

#s-store .grid-layout #store #store-text h2 span {
  color: var(--btn-primary);
}

#s-store .grid-layout #store #store-text p {
  color: var(--text-secondary);
}

#s-store .grid-layout #store #store-cards article {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

#s-store .grid-layout #store #store-cards article:hover {
  border-color: var(--btn-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

#s-store .grid-layout #store #store-cards article h3 {
  color: var(--text-primary);
}

#s-store .grid-layout #store #store-cards article .store-product-desc {
  color: var(--text-secondary);
}

/* ===== BOTÕES ===== */

.button,
a.button,
.button-store,
#s-home .grid-layout #home #home-container-text a {
  background: linear-gradient(135deg, var(--btn-primary) 0%, var(--btn-secondary) 100%);
  color: #FFFFFF;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  border: none;
}

.button:hover,
a.button:hover,
.button-store:hover,
#s-home .grid-layout #home #home-container-text a:hover {
  background: linear-gradient(135deg, var(--btn-secondary) 0%, var(--btn-primary) 100%);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btgithub {
  background-color: var(--accent-color);
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.btgithub:hover {
  background-color: var(--btn-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */

footer {
  background: var(--bg-header);
  border-top: 2px solid var(--border-color);
  box-shadow: 0 -4px 12px rgba(223, 165, 67, 0.1);
  transition: all 0.3s ease;
}

footer .footer-content p {
  color: var(--text-primary);
}

footer .footer-links a {
  background: var(--btn-primary);
  border: 2px solid var(--btn-primary);
  color: #FFFFFF;
  border-radius: 8px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

footer .footer-links a:hover {
  background: var(--btn-secondary);
  border-color: var(--btn-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.footer-whatsapp:hover {
  background: #25d366 !important;
  border-color: #25d366 !important;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4) !important;
}

.footer-location:hover {
  background: var(--accent-color) !important;
  border-color: var(--accent-color) !important;
}

/* ===== SCROLL E SELEÇÃO ===== */

::selection {
  background-color: var(--btn-primary);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background-color: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background-color: var(--btn-primary);
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--btn-secondary);
}

/* ===== TIPOGRAFIA ===== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

body {
  font-family: 'Inter', 'Poppins', 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Inter', 'Archivo', sans-serif;
}

/* ===== ANIMAÇÕES SUAVES ===== */

* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ===== MODO ESCURO - AJUSTES ESPECÍFICOS ===== */

[data-theme="dark"] #s-about .grid-layout #about-photo .about-figure {
  background-color: var(--bg-header);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .typewriter:after {
  color: var(--btn-primary);
}

[data-theme="dark"] .mobile-menu div {
  background-color: var(--text-primary);
}

[data-theme="dark"] .nav-list {
  background-color: var(--bg-header);
}

/* ===== BRILHO INTERNO MODO ESCURO ===== */

[data-theme="dark"] .button:hover,
[data-theme="dark"] .button-store:hover,
[data-theme="dark"] #s-projects .grid-layout #services article:hover,
[data-theme="dark"] #s-course .grid-layout #projects > article:hover {
  box-shadow: 
    var(--shadow-md),
    inset 0 0 20px rgba(223, 165, 67, 0.1);
}

/* ===== LINKS ===== */

a {
  color: var(--link-color);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--btn-primary);
}

/* ===== CARDS COM BORDA ARREDONDADA ===== */

article,
.experience-card,
#s-store .grid-layout #store #store-cards article {
  border-radius: 8px;
}
