* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Proteções específicas para elementos que não devem ser selecionados */
img, .art-preview, .art-item, .view-btn, .loading-screen {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  pointer-events: none;
}



.loading-content {
  text-align: center;
  color: white;
}

.loading-logo {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

.loading-text {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 30px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.loading-bar {
  width: 300px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.loading-progress {
  height: 100%;
  background: linear-gradient(90deg, #ff6b6b, #ee5a24);
  border-radius: 2px;
  animation: loading 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes loading {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

body {
  font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #000000;
  color: white;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  padding: 0;
}

header {
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid #333;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.brand {
  text-align: left;
}

.brand h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.description {
  font-size: 0.9rem;
  opacity: 0.7;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.header-stats {
  display: flex;
  gap: 30px;
}

.stat {
  text-align: center;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #ff6b6b;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.8rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 40px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.art-item {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.art-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.art-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(238, 90, 36, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 15px;
  pointer-events: none;
}

.art-item:hover::before {
  opacity: 1;
}

.art-preview {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 250px;
  overflow: hidden;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

.art-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
  z-index: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.art-item:hover .art-preview::before {
  opacity: 0;
}

.art-info {
  padding: 20px;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.art-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: center;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.view-btn {
  background: linear-gradient(45deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.view-btn:hover {
  background: linear-gradient(45deg, #ee5a24 0%, #ff6b6b 100%);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

footer {
  padding: 30px 20px;
  background: rgba(0, 0, 0, 0.8);
  margin-top: 40px;
  border-top: 1px solid #333;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-info {
  text-align: left;
}

.footer-info p {
  opacity: 0.8;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.5px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  margin-bottom: 5px;
}



.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-link {
  opacity: 0.7;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  transition: opacity 0.3s ease;
}

.footer-link:hover {
  opacity: 1;
  color: #ff6b6b;
}

/* Proteções contra impressão - apenas desktop */
@media print and (min-width: 769px) {
  * {
    display: none !important;
  }
  
  body::before {
    content: "IMPRESSÃO NÃO PERMITIDA - Conteúdo protegido";
    display: block !important;
    font-size: 24px;
    text-align: center;
    padding: 50px;
    color: #ff4757;
    font-weight: bold;
  }
  
  body::after {
    content: "Este conteúdo está protegido contra impressão";
    display: block !important;
    font-size: 16px;
    text-align: center;
    padding: 20px;
    color: #666;
  }
}

/* Proteções específicas para mobile - impressão e captura */
@media screen and (max-width: 768px) {
  /* Bloquear seleção de texto */
  * {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
  }
  
  /* Bloquear arrastar imagens */
  img, .art-preview, .art-item {
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
    -webkit-touch-callout: none !important;
  }
  
  /* Bloquear menu de contexto */
  * {
    -webkit-touch-callout: none !important;
  }
  
  /* Proteções específicas contra screenshots */
  body {
    -webkit-filter: none !important;
    filter: none !important;
  }
  
  /* Bloquear captura de tela via CSS */
  .art-preview, .art-item, img {
    -webkit-filter: none !important;
    filter: none !important;
    -webkit-transform: none !important;
    transform: none !important;
  }
  
  /* Proteção contra screenshots via seleção */
  *::selection {
    background: transparent !important;
    color: inherit !important;
  }
  
  *::-moz-selection {
    background: transparent !important;
    color: inherit !important;
  }

  /* MARCA D'ÁGUA PARA MOBILE - Apenas em dispositivos móveis */
  .art-preview::after {
    content: "REI 7 DA LIRA";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 3px;
    text-transform: uppercase;
    z-index: 10;
    pointer-events: none;
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  /* Marca d'água adicional no canto */
  .art-preview::before {
    content: "© REI 7 DA LIRA";
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 10;
    pointer-events: none;
    font-family: 'Montserrat', sans-serif;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  /* Marca d'água para imagens protegidas */
  .protected-image-container::after {
    content: "REI 7 DA LIRA";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 4px;
    text-transform: uppercase;
    z-index: 10;
    pointer-events: none;
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  .protected-image-container::before {
      content: "© REI 7 DA LIRA - PROTEGIDO";
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 10;
    pointer-events: none;
    font-family: 'Montserrat', sans-serif;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  /* Estilos adicionais para marcas d'água dinâmicas */
  .dynamic-watermark, .protection-mark {
    position: absolute !important;
    pointer-events: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    z-index: 15 !important;
  }

  /* Marca d'água central para imagens protegidas */
  .mobile-central-watermark {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) rotate(-45deg) !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: rgba(255, 255, 255, 0.25) !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    z-index: 20 !important;
    pointer-events: none !important;
    white-space: nowrap !important;
    font-family: 'Montserrat', sans-serif !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
  }

  .mobile-protection-watermark {
    position: absolute !important;
    bottom: 20px !important;
    right: 20px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: rgba(255, 107, 107, 0.4) !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    z-index: 20 !important;
    pointer-events: none !important;
    font-family: 'Montserrat', sans-serif !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
  }

  .mobile-corner-watermark {
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.3) !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    z-index: 20 !important;
    pointer-events: none !important;
    font-family: 'Montserrat', sans-serif !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    transform: rotate(-15deg) !important;
  }
}

/* Responsividade */
@media (max-width: 768px) {

  
  .loading-logo {
    font-size: 3rem;
  }
  
  .loading-text {
    font-size: 1rem;
  }
  
  .loading-bar {
    width: 250px;
  }
  
  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .brand {
    text-align: center;
  }
  
  .brand h1 {
    font-size: 2.2rem;
  }
  
  .header-stats {
    gap: 15px;
  }
  
  .stat {
    padding: 10px 15px;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
  }
  
  .art-preview {
    height: 200px;
  }
  
  .art-title {
    font-size: 1.1rem;
  }
  
  /* Correções específicas para mobile - scroll */
  html {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    height: 100%;
  }
  
  body {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    height: auto;
    min-height: 100vh;
    touch-action: pan-y;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  
  /* Permitir scroll natural no mobile */
  .gallery {
    overflow: visible;
    position: relative;
  }
  
  /* Garantir que o conteúdo seja scrollável */
  .art-item {
    position: relative;
    z-index: 1;
  }
  
  /* Garantir que o conteúdo principal seja scrollável */
  main, .gallery, header, footer {
    position: relative;
    z-index: 1;
  }
  
  /* Permitir scroll em todos os elementos */
  * {
    -webkit-overflow-scrolling: touch;
  }
  
  /* Garantir que o scroll funcione no mobile mesmo com loading */
  .loading-screen {
    pointer-events: none;
  }
  
  /* Forçar scroll no mobile */
  body, html {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  /* Proteções específicas para mobile */
  .art-preview, .art-item, img {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
    pointer-events: auto;
  }
  
  /* Bloquear seleção de texto no mobile */
  * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  
  /* Permitir seleção apenas em elementos específicos */
  .allow-select {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
  }
}

@media (max-width: 480px) {
  header {
    padding: 30px 15px;
  }
  
  .brand h1 {
    font-size: 1.8rem;
  }
  
  .header-stats {
    flex-direction: column;
    gap: 10px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .footer-info {
    text-align: center;
  }
  
  .gallery {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px;
  }
  
  .art-preview {
    height: 180px;
  }
  
  .view-btn {
    width: 100%;
    max-width: 200px;
  }

  /* Ajustes de marca d'água para telas muito pequenas */
  .art-preview::after {
    font-size: 1.5rem !important;
    letter-spacing: 2px !important;
    color: rgba(255, 255, 255, 0.2) !important;
  }

  .art-preview::before {
    font-size: 0.6rem !important;
    bottom: 8px !important;
    right: 8px !important;
    color: rgba(255, 255, 255, 0.25) !important;
  }

  .protected-image-container::after {
    font-size: 2rem !important;
    letter-spacing: 2px !important;
    color: rgba(255, 255, 255, 0.15) !important;
  }

  .protected-image-container::before {
    font-size: 0.8rem !important;
    bottom: 10px !important;
    right: 10px !important;
    color: rgba(255, 255, 255, 0.2) !important;
  }

  .mobile-central-watermark {
    font-size: 2rem !important;
    letter-spacing: 2px !important;
    color: rgba(255, 255, 255, 0.2) !important;
  }

  .mobile-protection-watermark {
    font-size: 0.7rem !important;
    bottom: 15px !important;
    right: 15px !important;
    color: rgba(255, 107, 107, 0.35) !important;
  }

  .mobile-corner-watermark {
    font-size: 0.6rem !important;
    top: 10px !important;
    left: 10px !important;
    color: rgba(255, 255, 255, 0.25) !important;
  }

  .dynamic-watermark {
    font-size: 0.6rem !important;
    top: 15px !important;
    left: 15px !important;
    color: rgba(255, 255, 255, 0.3) !important;
  }

  .protection-mark {
    font-size: 0.5rem !important;
    bottom: 10px !important;
    left: 10px !important;
    color: rgba(255, 107, 107, 0.4) !important;
  }
}
