:root {
  --creamy-white: #FFF8F0;
  --warm-gray: #4A4A4A;
  --orange: #FF5842;
  --mustard-orange: #F4A261;
  --gula-red: #FF5842;
  --gula-dark-red: #E04A35;
  --gula-black: #4A4A4A;
  --gula-light-gray: #FFF8F0;
  --gula-gray: #888888;
  --gula-white: #ffffff;
  --gula-primary: var(--warm-gray);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', 'Montserrat', Arial, sans-serif;
}

body {
  background-color: var(--creamy-white);
  color: var(--warm-gray);
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header e barra de navegação */
header {
  background-color: #ece2d9;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: clamp(0.5rem, 1.5vw, 1rem);
}

.header-container {
  display: flex;
  align-items: center;
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  gap: clamp(0.5rem, 2vw, 1rem);
}

.logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.logo img {
  height: clamp(24px, 4vw, 40px);
  width: auto;
  max-width: none;
  display: block;
}

.header-titles {
  flex: 1;
  text-align: center;
  min-width: 0;
}

.page-title {
  font-size: clamp(0.9rem, 3vw, 1.4rem);
  color: var(--orange);
  margin: 0;
  font-weight: 700;
  font-family: 'Roboto', sans-serif;
  line-height: 1.1;
  word-wrap: break-word;
  hyphens: auto;
}

.subheadline {
  font-size: clamp(0.65rem, 2vw, 0.85rem);
  color: var(--warm-gray);
  margin: 2px 0 0 0;
  font-weight: 500;
  font-style: italic;
  opacity: 0.8;
  word-wrap: break-word;
}

/* Hamburger Menu Styles */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: clamp(20px, 5vw, 22px);
  height: clamp(2px, 0.5vw, 2.5px);
  background-color: var(--orange);
  margin: clamp(2px, 0.5vw, 3px) 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Category Navigation Menu */
.category-nav-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: var(--creamy-white);
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 1001;
  padding: 0;
  overflow-y: auto;
  display: none;
}

.category-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #ddd;
  background: #ece2d9;
  color: var(--warm-gray);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-nav-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Roboto', sans-serif;
  color: var(--warm-gray);
}

.close-menu-btn {
  background: none;
  border: none;
  color: var(--warm-gray);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-weight: 300;
}

.close-menu-btn:hover {
  background-color: var(--orange);
  color: white;
  transform: scale(1.1);
}

.close-menu-btn span {
  line-height: 1;
  font-size: 1.3rem;
}

.category-nav-menu.active {
  right: 0;
}

.category-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  padding: 20px 0;
}

.category-nav-list li {
  padding: 0;
}

.category-nav-list .category-btn {
  display: block;
  width: 100%;
  padding: 20px 30px;
  color: var(--warm-gray);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  border: none;
  border-bottom: 1px solid #e5e5e5;
  transition: background-color 0.3s, color 0.3s;
  background: transparent;
  text-align: left;
  border-radius: 0;
  box-shadow: none;
}

.category-nav-list .category-btn:hover {
  background-color: var(--orange);
  color: var(--creamy-white);
  transform: none;
  box-shadow: none;
}

.category-nav-list .category-btn.active {
  background-color: var(--orange);
  color: var(--creamy-white);
  box-shadow: none;
}

.category-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  display: none;
}

.category-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Categorias - Desktop */
.categories {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 30px;
  justify-content: flex-start;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--orange) var(--creamy-white);
}

.categories::-webkit-scrollbar {
  height: 8px;
}

.categories::-webkit-scrollbar-track {
  background: var(--creamy-white);
  border-radius: 4px;
}

.categories::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 4px;
  transition: background 0.3s ease;
}

.categories::-webkit-scrollbar-thumb:hover {
  background: var(--gula-dark-red);
}

.category-btn {
  background-color: var(--gula-white);
  color: var(--warm-gray);
  border: 1px solid var(--warm-gray);
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  white-space: nowrap;
  flex-shrink: 0;
}

.category-btn:hover {
  background-color: var(--orange);
  color: var(--creamy-white);
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 88, 66, 0.3);
}

.category-btn.active {
  background-color: var(--orange);
  color: var(--creamy-white);
  border-color: var(--orange);
  box-shadow: 0 2px 8px rgba(255, 88, 66, 0.4);
}

/* Pesquisa */
.search-container {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
}

.search-box {
  display: flex;
  width: 100%;
  max-width: 500px;
  border: 1px solid var(--warm-gray);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--gula-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  outline: none;
  font-size: 16px;
}

.search-btn {
  background-color: var(--orange);
  color: var(--creamy-white);
  border: none;
  padding: 0 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.search-btn:hover {
  background-color: var(--gula-dark-red);
  box-shadow: 0 4px 12px rgba(255, 88, 66, 0.3);
}

/* Grid de vídeos */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.video-card {
  background-color: #ece2d9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio para todos os vídeos */
  overflow: hidden;
}

.video-container.portrait {
  /* Mantemos a mesma altura para vídeos em retrato */
  padding-bottom: 56.25%; /* Mesmo ratio dos vídeos paisagem */
}


.video-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #000;
}

.fullscreen-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
  z-index: 10;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.video-info {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.video-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--warm-gray);
  line-height: 1.3;
  font-weight: 600;
}

.video-steps {
  font-size: 0.9rem;
  color: var(--warm-gray);
  opacity: 0.8;
  margin-bottom: 15px;
}

.video-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  flex-wrap: wrap;
  align-items: flex-start;
}

.copy-url-btn {
  background-color: var(--orange);
  color: var(--creamy-white);
  border: none;
  border-radius: 8px;
  padding: 8px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  align-self: flex-start;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 88, 66, 0.3);
}

.copy-url-btn:hover {
  background-color: var(--gula-dark-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 88, 66, 0.4);
}

.copy-url-btn i {
  font-size: 1.1rem;
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 12px 20px;
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  font-size: 14px;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.share-btn {
  background-color: var(--mustard-orange);
  color: var(--creamy-white);
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(244, 162, 97, 0.3);
}

.share-btn:hover {
  background-color: #D68F4E;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244, 162, 97, 0.4);
}

.share-btn i {
  font-size: 1.1rem;
}

/* Efeito de destaque para vídeos compartilhados */
.highlighted {
  transform: scale(1.02);
  box-shadow: 0 5px 20px rgba(233, 78, 77, 0.4); /* Sombra vermelha */
  border: 2px solid var(--gula-red);
  animation: pulse 2s ease-in-out;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(233, 78, 77, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(233, 78, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(233, 78, 77, 0); }
}

/* Responsive Typography */
.text-mobile-lg {
  font-size: 1.2rem;
}

.logo-mobile-offset {
  margin-left: -10px;
}

/* Desktop and larger screens */
@media (min-width: 768px) {
  body {
    font-size: 1.5rem;
  }
  
  .text-mobile-lg {
    font-size: 1.875rem; /* text-3xl equivalent */
  }
  
  .logo-mobile-offset {
    margin-left: 0;
  }
  
  .page-title {
    font-size: 2rem;
  }
}

/* Tablet Navigation - Adjust spacing for medium screens */
@media (min-width: 769px) and (max-width: 1110px) {
  .header-container {
    gap: 0.75rem;
  }
  
  .logo img {
    height: clamp(40px, 5vw, 50px);
  }
  
  .page-title {
    font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  }
  
  .subheadline {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
  }
  
  .categories {
    gap: 0.5rem;
  }
  
  .category-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
}

/* Tablet Navigation - Show Hamburger */
@media (max-width: 1024px) {
  .hamburger {
    display: flex;
  }
  
  .category-nav-menu {
    display: block;
  }
  
  .category-nav-overlay {
    display: block;
  }
  
  .categories {
    display: none;
  }
}

/* Mobile Navigation and Layout */
@media (max-width: 768px) {
  header {
    padding: clamp(0.4rem, 2.5vw, 0.8rem);
  }
  
  .header-container {
    justify-content: space-between;
    align-items: center;
    gap: clamp(0.3rem, 1.5vw, 0.6rem);
  }
  
  .logo {
    order: 1;
  }
  
  .logo img {
    height: clamp(20px, 6vw, 32px);
  }
  
  .header-titles {
    order: 2;
    flex: 1;
    margin: 0 clamp(0.3rem, 1.5vw, 0.8rem);
    text-align: center;
  }
  
  .hamburger {
    order: 3;
    padding: clamp(3px, 1vw, 6px);
  }
  
  .hamburger span {
    width: clamp(18px, 5vw, 20px);
    height: clamp(1.5px, 0.6vw, 2px);
  }
  
  .page-title {
    font-size: clamp(0.8rem, 3.5vw, 1.1rem);
    line-height: 1.1;
  }
  
  .subheadline {
    font-size: clamp(0.6rem, 2.5vw, 0.75rem);
  }
  
  .container {
    padding: 15px;
  }
  
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .search-container {
    margin-bottom: 20px;
  }
  
  .search-box {
    max-width: 100%;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  header {
    padding: clamp(0.3rem, 3vw, 0.6rem);
  }
  
  .header-container {
    gap: clamp(0.2rem, 1.5vw, 0.4rem);
  }
  
  .logo img {
    height: clamp(18px, 8vw, 28px);
  }
  
  .page-title {
    font-size: clamp(0.7rem, 4vw, 0.95rem);
    line-height: 1.1;
  }
  
  .subheadline {
    font-size: clamp(0.55rem, 2.8vw, 0.65rem);
  }
  
  .hamburger {
    padding: clamp(2px, 0.8vw, 4px);
  }
  
  .hamburger span {
    width: clamp(16px, 6vw, 18px);
    height: clamp(1.5px, 0.8vw, 2px);
  }
  
  .video-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .container {
    padding: 10px;
  }
  
  .category-nav-menu {
    width: 100%;
    right: -100%;
  }
}

/* Large Desktop */
@media (min-width: 1111px) {
  header {
    padding: clamp(1rem, 2vw, 2rem);
  }
  
  .header-container {
    gap: clamp(1rem, 2vw, 1.5rem);
  }
  
  .logo img {
    height: clamp(50px, 4vw, 70px);
  }
  
  .page-title {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
  }
  
  .subheadline {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
  }
  
  .container {
    padding: 30px;
  }
  
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
  }
  
  .categories {
    gap: 15px;
    margin-bottom: 40px;
  }
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.video-card {
  animation: fadeIn 0.5s ease forwards;
}

/* Estilo para grupos */
.group-title {
  font-size: 24px;
  margin: 30px 0 20px;
  color: var(--warm-gray);
  font-weight: 700;
  font-family: 'Roboto', sans-serif;
  position: relative;
  padding-left: 15px;
  border-left: 4px solid var(--orange);
}

/* Sem resultados */
.no-results {
  text-align: center;
  padding: 40px 20px;
  color: var(--warm-gray);
  font-size: 1.1rem;
}

.no-results p:first-child {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.no-results p:last-child {
  font-size: 0.95rem;
  opacity: 0.8;
}

.video-card.suggested {
  border: 2px solid var(--mustard-orange);
  background: linear-gradient(135deg, var(--creamy-white) 0%, #fff9f2 100%);
  position: relative;
}

.video-card.suggested::before {
  content: "Sugerido";
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--mustard-orange);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  z-index: 2;
}
