/* Importar Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Creepster&display=swap');

/* Reset e Estilos Básicos */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Cores do tema vampírico */
  --bg-primary: #0c080d;
  --bg-secondary: #1f1823;
  --bg-tertiary: #382b3f;
  --color-primary: #7a6284;
  --color-secondary: #52425c;
  --border-color: rgba(82, 66, 92, 0.5);
  --shadow-color: rgba(122, 98, 132, 0.3);
  
  /* Fontes */
  --font-cinzel: 'Cinzel Decorative', serif;
  --font-creepster: 'Creepster', cursive;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

body {
  font-family: var(--font-sans);
  background: linear-gradient(to bottom, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
  color: #e5e5e5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  position: relative;
  background: linear-gradient(
    to bottom,
    rgba(12, 8, 13, 0.85),
    rgba(31, 24, 35, 0.95)
  ), url('../images/gothic-castle-silhouette.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  border-bottom: 2px solid var(--border-color);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  padding: 2.5rem 1rem;
}

header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(82, 66, 92, 0.3) 100%);
  pointer-events: none;
}

.header-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 10;
}

.header-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-primary);
  font-family: var(--font-cinzel);
}

.user-name {
  color: var(--color-secondary);
  font-weight: bold;
}

.header-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.header-title h1 {
  font-family: var(--font-cinzel);
  font-size: clamp(3rem, 10vw, 7rem);
  color: var(--color-primary);
  font-weight: 900;
  letter-spacing: 0.15em;
  text-shadow: 
    0 0 15px rgba(122, 98, 132, 0.9),
    0 0 30px rgba(122, 98, 132, 0.7),
    0 0 45px rgba(122, 98, 132, 0.5);
}

/* Navigation */
nav {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 3.5rem);
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  font-family: var(--font-cinzel);
  font-size: 1rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(to right, var(--color-secondary), var(--bg-tertiary));
  color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  box-shadow: 0 4px 25px var(--shadow-color);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-secondary);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(31, 24, 35, 0.8);
  border-color: var(--color-primary);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid transparent;
  backdrop-filter: blur(10px);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  padding: 1rem 1.5rem;
}

.btn-ghost:hover {
  background: rgba(82, 66, 92, 0.6);
  border-color: var(--color-secondary);
  color: white;
}

.btn-lg {
  font-size: 1.25rem;
  padding: 1.75rem 3rem;
}

/* Main Content */
main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1rem;
  width: 100%;
}

.hero-section {
  text-align: center;
  margin-bottom: 6rem;
}

.hero-title {
  font-family: var(--font-cinzel);
  font-size: clamp(2rem, 5vw, 4.5rem);
  color: var(--color-primary);
  margin-bottom: 2rem;
  line-height: 1.2;
}

.hero-description {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--color-secondary);
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 6rem;
}

.card {
  background: linear-gradient(135deg, rgba(56, 43, 63, 0.6), rgba(31, 24, 35, 0.8));
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(122, 98, 132, 0.7);
  box-shadow: 0 20px 60px rgba(122, 98, 132, 0.2);
  transform: scale(1.05);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.card-title {
  font-family: var(--font-cinzel);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.card-text {
  color: var(--color-secondary);
  line-height: 1.6;
}

/* Social Section */
.social-section {
  text-align: center;
}

.social-title {
  font-family: var(--font-cinzel);
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 2.5rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.social-link {
  color: var(--color-secondary);
  text-decoration: none;
  font-family: var(--font-cinzel);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: var(--color-primary);
}

/* Footer */
footer {
  background: linear-gradient(to top, var(--bg-primary), var(--bg-secondary));
  border-top: 1px solid rgba(82, 66, 92, 0.4);
  padding: 2.5rem 1rem;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-primary);
  font-family: var(--font-cinzel);
}

/* Form Styles */
.form-container {
  max-width: 500px;
  margin: 0 auto;
}

.form-card {
  background: linear-gradient(135deg, rgba(56, 43, 63, 0.3), rgba(12, 8, 13, 0.8));
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 3rem 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

.form-description {
  color: var(--color-secondary);
  text-align: center;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  color: var(--color-primary);
  font-family: var(--font-cinzel);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(56, 43, 63, 0.3);
  border: 1px solid rgba(82, 66, 92, 0.5);
  border-radius: 0.5rem;
  color: var(--color-primary);
  font-size: 1rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(122, 98, 132, 0.2);
}

.form-input::placeholder {
  color: rgba(82, 66, 92, 0.6);
}

.form-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--color-secondary);
}

.form-link {
  color: var(--color-primary);
  text-decoration: underline;
  font-family: var(--font-cinzel);
}

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

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toast {
  background: rgba(56, 43, 63, 0.95);
  border: 1px solid var(--color-secondary);
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  min-width: 300px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.3s ease;
}

.toast.success {
  border-color: #4ade80;
}

.toast.error {
  border-color: #ef4444;
}

.toast-title {
  font-family: var(--font-cinzel);
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.toast-message {
  color: var(--color-secondary);
  font-size: 0.9rem;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Utility Classes */
.hidden {
  display: none !important;
}

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

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

/* Responsive */
@media (max-width: 768px) {
  .header-top {
    justify-content: center;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  nav {
    gap: 1rem;
  }
  
  .social-links {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* Loading State */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
