/* ============================
   Common Navigation & Global Styles
   Baseado no padrão FutPontos
============================ */

:root {
  --primary-color: #D62828;
  --primary-gradient: linear-gradient(to right, #000000, #D62828);
  --secondary-bg: #0f0f0f;
  --accent-color: #ffffff;
  --text-color: #ffffff;
  --hover-color: #D62828;
  --highlight-color: #ffcc00;
  --app-gradient: linear-gradient(135deg, #0041A8, #000000, #D62828);
  --font-family: "Oswald", sans-serif;
}

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

body {
  font-family: var(--font-family);
  background: var(--secondary-bg);
  color: var(--text-color);
  line-height: 1.4;
  min-height: 100vh;
  background-attachment: fixed;
}

/* Header & Nav */
.app-header {
  background: var(--primary-gradient);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--accent-color);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.brand h1 {
  font-size: 1.5rem;
  color: var(--highlight-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.app-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.app-nav a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s, opacity 0.3s;
  opacity: 0.8;
}

.app-nav a:hover, .app-nav a.active {
  opacity: 1;
  color: var(--highlight-color);
}

/* Feedback UI */
.feedback {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 24px;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  z-index: 2000;
  animation: slideInRight 0.3s ease-out;
}

.feedback.success { background-color: #2ecc71; }
.feedback.error { background-color: #e74c3c; }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Footer */
.app-footer {
  text-align: center;
  padding: 2rem;
  opacity: 0.6;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .app-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #000;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  }

  .app-nav.active {
    display: block;
  }

  .app-nav ul {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
}
