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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #1e293b 0%, #581c87 50%, #1e293b 100%);
  min-height: 100vh;
  color: white;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
header {
  background: rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: static;
  top: 0;
  z-index: 100;
}

.header-content {
  padding: 1.5rem 0;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 2.5rem;
  letter-spacing: 0.1em;
}

.header-icons {
  display: flex;
  gap: 1rem;
}

.icon-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s;
}

.icon-btn:hover {
  color: white;
}

nav {
  display: flex;
  gap: 2rem;
}

nav button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 0.5rem 0;
  transition: color 0.3s;
}

nav button:hover,
nav button.active {
  color: #a78bfa;
  font-weight: 600;
}

/* Main */
main {
  padding: 3rem 0;
}

.section {
  display: none;
}

.section.active {
  display: block;
}

/* Home Hero - Nova estrutura com imagem de fundo */
.home-hero {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 3rem;
}

.hero-image-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(30, 41, 59, 0.3) 0%,
    rgba(88, 28, 135, 0.7) 50%,
    rgba(30, 41, 59, 0.9) 100%
  );
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  width: 90%;
  max-width: 800px;
}

.hero-content svg {
  margin: 0 auto 2rem;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.6;
}

/* Fallback quando não há imagem */
.hero-image-container:empty::before,
.hero-image[src=""]::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #334155 0%, #7c3aed 50%, #334155 100%);
}

/* Features - Cards clicáveis */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(167, 139, 250, 0.2);
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 10px 30px rgba(167, 139, 250, 0.3);
}

.feature-card:active {
  transform: translateY(-2px);
}

.feature-card svg {
  margin: 0 auto 1rem;
  transition: transform 0.3s ease;
}

.feature-card:hover svg {
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.7);
}

/* Shows */
.shows-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.admin-panel {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(167, 139, 250, 0.5);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.admin-panel h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

input, select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.25rem;
  padding: 0.75rem;
  color: white;
  width: 100%;
}

input::-moz-placeholder {
  color: rgba(255, 255, 255, 0.5);
}

input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

button.btn-primary {
  background: #7c3aed;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

button.btn-primary:hover {
  background: #6d28d9;
}

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

.shows-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.show-card {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.show-info div {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.show-info div:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.8);
}

.btn-delete {
  background: #dc2626;
  color: white;
  border: none;
  padding: 0.5rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-delete:hover {
  background: #b91c1c;
}

/* Gallery */
.gallery-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.gallery-section h3 {
  font-size: 1.5rem;
  margin: 3rem 0 1rem;
}

.gallery-section h3:first-of-type {
  margin-top: 0;
}

.upload-area {
  text-align: center;
}

.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #7c3aed;
  color: white;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.upload-btn:hover {
  background: #6d28d9;
}

.upload-info {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.5rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.photo-item {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  aspect-ratio: 1;
}

.photo-item img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.photo-item .btn-delete {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.photo-item:hover .btn-delete {
  opacity: 1;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.video-item {
  position: relative;
  background: black;
  border-radius: 0.5rem;
  overflow: hidden;
}

.video-item video {
  width: 100%;
  height: 300px;
  -o-object-fit: cover;
     object-fit: cover;
}

.video-item .btn-delete {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 10;
}

.video-item:hover .btn-delete {
  opacity: 1;
}

.empty-state {
  text-align: center;
  padding: 3rem 0;
  color: rgba(255, 255, 255, 0.7);
}

/* Admin Login */
.admin-login {
  max-width: 400px;
  margin: 0 auto;
}

.login-card {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  padding: 2rem;
}

.login-card h2 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.login-card input {
  margin-bottom: 1rem;
}

.login-card p {
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(5px);
  z-index: 1000;
  padding: 1rem;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: linear-gradient(135deg, #334155 0%, #581c87 100%);
  border: 1px solid rgba(167, 139, 250, 0.5);
  border-radius: 0.5rem;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-header h3 {
  font-size: 1.5rem;
}

.modal-body {
  margin-bottom: 1.5rem;
}

.modal-body label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.modal-body input {
  margin-bottom: 1rem;
}

.config-info {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.config-info p {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.config-info ol {
  margin-left: 1.5rem;
}

.config-info li {
  margin-bottom: 0.25rem;
}

/* Footer */
footer {
  background: rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 5rem;
  padding: 2rem 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.footer {
  color: #a78bfa;
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: #c4b5fd;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  .hero-image-container {
    height: 400px;
  }
  
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .photo-grid {
    grid-template-columns: 1fr;
  }
  
  .video-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-image-container {
    height: 300px;
  }
  
  .hero-content h2 {
    font-size: 1.5rem;
  }
  
  .hero-content p {
    font-size: 0.9rem;
  }
}

/* Icons using SVG */
.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-lg {
  width: 80px;
  height: 80px;
}

.icon-md {
  width: 40px;
  height: 40px;
}

.rddev-link::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #a78bfa;
    border-radius: 50%;
    margin-left: 4px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

.footer-bottom {
    background-color: #581c87;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.copyright {
    color: #efefef;
    font-size: 0.9rem;
}

.developer {
    color: #f9f3e3;
    font-size: 0.9rem;
}

/* Estilização do link RDDev */
.rddev-link {
    text-decoration: none;
    color: #efefef;
    font-weight: 700;
    letter-spacing: 1px;
    margin-left: 5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.rddev-link span {
    color: #a78bfa;
    transition: color 0.3s ease;
}

/* Efeito de Hover */
.rddev-link:hover {
    transform: translateY(-2px);
    text-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.rddev-link:hover span {
    color: #5fc3e4; /* Muda o azul levemente no hover */
}

/* Responsivo para celulares */
@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}