/* ================ */
/* VARIÁVEIS GLOBAIS */
/* ================ */
:root {
  --primary-color: #FF69B4;
  --secondary-color: #FF1493;
  --background: #FFE6F2;
  --text-color: #8B008B;
  --card-bg: #FFF0F5;
  --border-radius: 10px;
  --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* =============== */
/* RESET E GLOBAIS */
/* =============== */
* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--text-color);
  font-family: "Comic Sans MS", cursive, sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  cursor: url('../cursors/arrow.cur'), pointer;
}

a, button, 
[role="button"], 
input[type="submit"], 
input[type="button"], 
input[type="reset"] {
  cursor: url('../cursors/Cursor_15.cur'), pointer;
}

/* Cursor de texto */
input[type="text"], 
input[type="password"], 
textarea, 
[contenteditable="true"] {
  cursor: url('../cursors/Cursor_14.cur'), text;
}

/* Cursor de ajuda */
[title], 
abbr[title] {
  cursor: url('../cursors/help_win95.cur'), help;
}

/* Cursor de espera */
.loading {
  cursor: url('../cursors/Cursor_3.cur'), wait;
}

/* Cursor de redimensionamento */
.resizable {
  cursor: url('../cursors/Cursor_7.cur'), se-resize;
}

/* ============= */
/* LAYOUT BASE */
/* ============= */

/* Header/Título do Site */
.site-header {
  background: var(--primary-color);
  color: white;
  padding: 15px;
  text-align: center;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
}

.main-wrapper {
  max-width: 1200px;
  width: 95%;
  margin: 60px auto 0;
  padding: 20px;
  background: var(--background);
}

.container {
  display: flex;
  flex-direction: column; 
  background: var(--primary-color);
  border-radius: var(--border-radius);
  padding: 10px;
  min-height: auto; /* Garante altura mínima */
}

.main-content {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  padding: 1rem 0;
}

/* ============= */
/* COMPONENTES */
/* ============= */
/* Player de Música */
.music-player {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--primary-color);
  padding: 10px;
  z-index: 1000;
}

.music-player audio {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: block;
}

/* Imagens Responsivas */
img {
  max-width: 100%;
  border-radius: var(--border-radius);
}

/* Navegação */
.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 192, 203, 0.3);
  padding: 15px;
  border-radius: var(--border-radius) 0 0 var(--border-radius); /* Arredondamento só nas bordas esquerdas */
  flex-shrink: 0;
  align-self: stretch;
  border-right: 2px solid var(--primary-color); /* Adiciona a divisória */
}

.nav-link {
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  padding: 10px;
  border-radius: var(--border-radius);
  text-align: center;
  transition: all 0.3s ease;
  position: relative; /* Importante para o posicionamento do pseudo-elemento */
  overflow: visible; /* Permite que o efeito apareça fora do botão */
}

.nav-link:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

.nav-link:hover::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(2);
  width: 50%;
  height: 50%;
  background-image: url('../img/brilho1.gif');
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0.5;
  z-index: -1;
}

.nav-player {
  margin-top: auto;
  width: 200px;
  background: #c0c0c0;
  border: 2px outset #fff;
  padding: 3px;
}

.audio-player {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Controles superiores */
.player-controls {
  display: flex;
  justify-content: center;
  gap: 3px;
  padding: 3px;
}

.control-button,
.play-button {
  background: #c0c0c0;
  border: 2px outset #fff;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  padding: 0;
  cursor: pointer;
  font-family: "MS Sans Serif", Arial, sans-serif;
}

.control-button:active,
.play-button:active {
  border: 2px inset #fff;
  padding: 1px 0 0 1px;
}

/* Cover centralizado */
.cover-container {
  width: 80px;
  height: 80px;
  overflow: hidden;
  margin: 3px auto;
}

.song-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Informações da música */
.song-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 3px;
  font-family: "MS Sans Serif", Arial, sans-serif;
}

#current-song-title {
  font-size: 11px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* Barra de progresso */
.progress-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}


.progress-bar {
  width: 100%;
  height: 2px; 
  background: #000;
  border: none; /* Removido a borda */
  position: relative;
  margin: 4px 0; /* Adicionado margem para compensar a remoção da borda */
}

.progress-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #fff; /* Invertido as cores para melhor visibilidade */
  width: var(--progress, 0%);
}

.time {
  font-size: 11px;
  margin-top: 2px;
}

/* Cards de Conteúdo */

.content {
  flex: 1;
  background: white;
  padding: 20px;
  border-radius: var(--border-radius);
  margin-left: 0; /* Espaço entre o menu e o conteúdo */
  /* width: 100%; */
}

.content-title {
  color: var(--text-color);
  text-align: center;
  margin-bottom: 20px;
}

.portfolio-section {
  max-height: 100%;
}

.post {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--box-shadow);
}

.post-title {
  color: var(--primary-color);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
}

.post-meta {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  color: var(--text-color);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.post-type {
  background: var(--primary-color);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: var(--border-radius);
}

.post-content {
  color: var(--text-color);
  line-height: 1.6;
}

.button-link {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius);
  margin: 1rem 0;
  transition: background-color 0.3s ease;
}

.button-link:hover {
  background: var(--secondary-color);
}

/* Títulos dentro do post */
.post h4 {
  color: var(--primary-color);
  margin: 1.5rem 0 1rem;
}

/* Parágrafos dentro do post */
.post p {
  margin-bottom: 1rem;
}


.post img {
  max-width: 100%;
  height: auto;
  margin-top: 20px;
  border-radius: var(--border-radius);
}

.post-card {
  background: var(--card-bg);
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.post-grid {
  display: flex;
  flex-direction: column;
  grid-template-columns: 1fr; /* Uma coluna em telas pequenas */
  gap: 1rem;
}

.carousel {
  position: relative;
  width: 100%;
  margin: 20px 0;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 250px;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 105, 180, 0.7);
  color: white;
  border: none;
  padding: 15px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 20px;
  transition: background-color 0.3s ease;
  z-index: 2;
}

.carousel-button:hover {
  background: var(--secondary-color);
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}

.comment-section {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 0 auto;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.comment-input {
  padding: 0.8rem;
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  background: white;
  font-family: inherit;
}

.comment-input:focus {
  outline: none;
  border-color: var(--secondary-color);
}

textarea.comment-input {
  min-height: 100px;
  resize: vertical;
}

.comments-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment {
  background: white;
  padding: 1rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--primary-color);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  font-size: 0.9rem;
}

.comment-author {
  font-weight: bold;
}

.comment-date {
  color: #666;
}

.comment-text {
  line-height: 1.5;
  word-break: break-word;
}

.section-title {
  color: var(--primary-color);
  margin: var(--spacing-xl) 0 var(--spacing-md);
  text-align: center;
}

.experience-item,
.education-item {
  margin-bottom: var(--spacing-lg);
}

.experience-item h3,
.education-item h3 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.skills-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: var(--spacing-md);
}

.skills-list li {
  padding-left: var(--spacing-md);
  position: relative;
}

.skills-list li::before {
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  padding: var(--spacing-lg);
}

.shop-item {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.shop-item:hover {
  transform: translateY(-5px);
}

.shop-item-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

.shop-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.shop-item-details {
  padding: var(--spacing-md);
  text-align: center;
}

.shop-item-details h3 {
  color: var(--text-color);
  margin-bottom: var(--spacing-sm);
  font-size: 1.2rem;
}

.shop-item-price {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: bold;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-lg);
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

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

.social-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

.social-link {
  display: inline-block;
  padding: var(--spacing-md);
  background: white;
  border-radius: var(--border-radius);
  text-decoration: none;
  color: var(--text-color);
  transition: transform 0.3s ease;
}

.social-link:hover {
  transform: translateY(-2px);
}

/* Paginação */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.pagination-btn {
  padding: 8px 16px;
  border: 2px solid var(--primary-color);
  background: var(--card-bg);
  color: var(--text-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.pagination-btn:hover:not(.disabled) {
  background: var(--primary-color);
  color: white;
}

.pagination-btn.active {
  background: var(--primary-color);
  color: white;
}

.pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-btn.number {
  min-width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Controles do Blog */
.blog-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 200px;
}

.search-box input {
  width: 100%;
  padding: 8px 16px;
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  background: var(--card-bg);
  color: var(--text-color);
  font-family: inherit;
}

.sort-controls {
  min-width: 150px;
}

.sort-controls select {
  width: 100%;
  padding: 8px 16px;
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  background: var(--card-bg);
  color: var(--text-color);
  font-family: inherit;
  cursor: pointer;
}

.no-results {
  text-align: center;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  grid-column: 1 / -1;
}


.product-interest {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 2px dashed var(--primary-color);
}

.selected-product {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
  padding: var(--spacing-md);
  background: white;
  border-radius: var(--border-radius);
}

.selected-product img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.product-details {
  text-align: left;
}

.hidden {
  display: none;
}

/* Estilos para os links da lojinha */
.shop-item-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.shop-item:hover {
  transform: translateY(-5px);
}

/* Mídia */
.responsive-media {
  width: 100%;
  height: 319px;
  border-radius: var(--border-radius);
  margin: 1rem 0;
}

.spotify-embed {
  height: 400px;
  border-radius: 15px;
}

.soundcloud-embed {
  height: 450px;
  border-radius: 0;
}

/* Footer */
.footer {
  text-align: center;
  padding: 15px;
  margin-top: 20px;
  background: var(--primary-color);
  color: white;
  border-radius: var(--border-radius);
}

/* ============== */
/* ELEMENTOS UI */
/* ============== */
.button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: all 0.3s ease;
}

.button-primary {
  background: var(--primary-color);
  color: white;
}

.button-primary:hover {
  background: var(--secondary-color);
}

/* ==================== */
/* MEDIA QUERIES - TABLET */
/* ==================== */
@media screen and (min-width: 768px) {
  .main-wrapper {
    padding: 20px;
  }

  .container {
    flex-direction: row;
    padding: 20px;
  }

  .main-content {
    flex-direction: column;
  }

  .nav-menu {
    width: 200px;
    border-right: 2px solid var(--primary-color);
    margin-bottom: 0;
  }

  .nav-player {
    width: 200px;
  }

  .blog-controls {
    display: flex;
    align-items: center;
    max-width: 300px;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
  }
  
  .search-box {
    flex: 1;
    min-width: 200px;
  }
  
  .search-box input {
    width: 100%;
    padding: 8px 16px;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    background: var(--card-bg);
    color: var(--text-color);
    font-family: inherit;
  }

  .content {
    margin-left: 20px;
  }

  .cover-container {
    width: 100px;
    height: 100px;
  }

  .post-grid {
    display: flex;
    flex-direction: column;
    grid-template-columns: repeat(2, 1fr);
  }

  .carousel-container {
    height: 350px;
  }

  .pagination {
    gap: 4px;
  }

  .pagination-btn {
    padding: 6px 12px;
    font-size: 0.9rem;
  }

  .pagination-btn.number {
    min-width: 32px;
    height: 32px;
  }

  .pagination {
    gap: 4px;
  }

  .pagination-btn {
    padding: 6px 12px;
    font-size: 0.9rem;
  }

  .pagination-btn.number {
    min-width: 32px;
    height: 32px;
  }
}

@media screen and (min-height: 1000px) {
  .container {
    min-height: 70vh;
  }
}

@media screen and (max-width: 768px) and (orientation: landscape) {
  body {
    padding-top: 20px;
  }

  .container {
    flex-direction: row;
  }

  .nav-menu {
    width: 180px;
  }

  .cover-container {
    width: 70px;
    height: 70px;
  }

  .blog-controls {
    flex-direction: column;
  }

  .search-box,
  .sort-controls {
    width: 100%;
  }
}

/* ====================== */
/* MEDIA QUERIES - DESKTOP */
/* ====================== */
@media screen and (min-width: 1024px) {
  .main-content {
    flex-direction: row;
  }
  .post-grid {
    display: flex;
    flex-direction: column;
    grid-template-columns: repeat(3, 1fr);
  }

  .carousel-container {
    height: 400px;
  }
}

/* Ajustes para telas muito pequenas */
@media screen and (max-width: 480px) {
  .main-wrapper {
    width: 98%;
    margin: 0;
    padding: 5px;
  }

  .site-header {
    padding: 8px;
  }

  .blog-controls {
    display: flex;
    align-items: center;
    max-width: 300px;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
  }
  
  .search-box {
    flex: 1;
    min-width: 200px;
  }
  
  .search-box input {
    width: 100%;
    padding: 8px 16px;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    background: var(--card-bg);
    color: var(--text-color);
    font-family: inherit;
  }

  .main-content {
    flex-direction: column;
  }

  .nav-link {
    padding: 8px;
    font-size: 0.9rem;
  }

  .nav-player {
    margin: 0 auto;
  }

  .post {
    padding: 1rem;
  }

  .post-title {
    font-size: 1.5rem;
  }

  .carousel-button {
    padding: 10px;
    font-size: 16px;
  }

  .shop-grid {
    grid-template-columns: 1fr;
  }

  .skills-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .comment-section {
    padding: 1rem;
  }
}

/* =================== */
/* ANIMAÇÕES E EFEITOS */
/* =================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

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

.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }
.p-1 { padding: 1rem; }

.hidden-mobile {
  display: none;
}

@media screen and (min-width: 768px) {
  .main-wrapper {
    padding: 20px;
  }

  .container {
    flex-direction: row;
    padding: 20px;
  }

  .nav-menu {
    width: 200px;
    border-right: 2px solid var(--primary-color);
    margin-bottom: 0;
  }

  .nav-player {
    width: 200px;
  }

  .blog-controls {
    display: flex;
    align-items: center;
    max-width: 300px;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
  }
  
  .search-box {
    flex: 1;
    min-width: 200px;
  }
  
  .search-box input {
    width: 100%;
    padding: 8px 16px;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    background: var(--card-bg);
    color: var(--text-color);
    font-family: inherit;
  }

  .content {
    margin-left: 20px;
  }

  .cover-container {
    width: 100px;
    height: 100px;
  }

  .post-grid {
    display: flex;
    flex-direction: column;
    grid-template-columns: repeat(2, 1fr);
  }

  .carousel-container {
    height: 350px;
  }
}

/* ================== */
/* COMPONENTES LEGADOS */
/* ================== */
/* (Manter temporariamente para compatibilidade) */
table {
  width: 100% !important;
  margin: 1rem auto;
  display: block;
  overflow-x: auto;
}

.soon {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
}