/* ===========================
   RBNPp - Layout Melhorado
   =========================== */

:root {
  --primary: #1a5276;
  --primary-light: #2980b9;
  --primary-dark: #0e2f44;
  --accent: #27ae60;
  --accent-hover: #219a52;
  --bg: #f8f9fa;
  --bg-white: #ffffff;
  --text: #2c3e50;
  --text-light: #6c757d;
  --border: #dee2e6;
  --shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 25px rgba(0, 0, 0, 0.12);
  --radius: 10px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ===== HEADER ===== */
.site-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
}

.header-top .logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: #fff;
}

.header-top .logo:hover {
  text-decoration: none;
  color: #fff;
}

.header-top .logo-icon {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.header-top .logo-text h1 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.header-top .logo-text span {
  font-size: 0.75rem;
  opacity: 0.8;
  font-weight: 300;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
}

/* NAV */
.main-nav {
  background: rgba(0, 0, 0, 0.15);
}

.main-nav ul {
  display: flex;
  list-style: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-nav ul li a {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  padding: 12px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* ===== BANNER IMAGE ===== */
.banner-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== HERO / BANNER ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}

.hero h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 15px;
  position: relative;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.hero .badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  position: absolute;
  top: 10px;
  right: -10px;
  z-index: 2;
}

.hero-image-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 25px;
}

.hero-image {
  max-width: 320px;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  border: 3px solid rgba(255,255,255,0.2);
  position: relative;
  display: block;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  align-items: start;
}

.main-content {
  min-width: 0;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  margin-bottom: 25px;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

.card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg);
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 20px;
  margin-bottom: 10px;
}

.card p, .card li {
  color: var(--text);
  margin-bottom: 10px;
}

.card ul, .card ol {
  padding-left: 20px;
  margin-bottom: 15px;
}

.card li {
  margin-bottom: 6px;
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.sidebar-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
}

.sidebar-card ul {
  list-style: none;
}

.sidebar-card ul li {
  margin-bottom: 8px;
}

.sidebar-card ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text);
  font-size: 0.9rem;
  transition: var(--transition);
}

.sidebar-card ul li a:hover {
  background: var(--bg);
  color: var(--primary-light);
  text-decoration: none;
}

.sidebar-card ul li a::before {
  content: '→';
  color: var(--primary-light);
  font-weight: 600;
}

/* ===== EQUIPE EDITORIAL ===== */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.team-member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: 8px;
  transition: var(--transition);
}

.team-member:hover {
  background: #e8f4fd;
}

.team-avatar {
  width: 42px;
  height: 42px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.team-member .info {
  min-width: 0;
}

.team-member .name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.team-member .role {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Section headers within team */
.team-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 20px;
  margin-bottom: 12px;
  padding: 8px 0;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}

.team-section-title:first-child {
  margin-top: 0;
}

/* ===== SUBMISSION GUIDELINES ===== */
.guidelines-list {
  counter-reset: guidelines;
}

.guidelines-list > li {
  counter-increment: guidelines;
  position: relative;
  padding-left: 35px;
  margin-bottom: 15px;
}

.guidelines-list > li::before {
  content: counter(guidelines);
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  background: var(--primary-light);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Checklist style */
.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  list-style: none;
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0px;
  width: 20px;
  height: 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ===== INFO BOXES ===== */
.info-box {
  background: #e8f4fd;
  border-left: 4px solid var(--primary-light);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}

.info-box.warning {
  background: #fef9e7;
  border-left-color: #f39c12;
}

.info-box.success {
  background: #eafaf1;
  border-left-color: var(--accent);
}

.info-box p {
  margin: 0;
  font-size: 0.95rem;
}

.info-box strong {
  color: var(--primary);
}

/* ===== CONTACT ===== */
.contact-card {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--bg);
  border-radius: 8px;
  margin-bottom: 15px;
  align-items: flex-start;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-card .details h4 {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.contact-card .details p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 2px;
}

.contact-card .details a {
  font-weight: 500;
}

/* ===== BTN ===== */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary-light);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary);
  color: #fff;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border: 2px solid var(--primary-light);
}

.btn-outline:hover {
  background: var(--primary-light);
  color: #fff;
}

.btn-disabled {
  background: #d5d8dc;
  color: #8e9299;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.7;
  position: relative;
}

.btn-disabled .lock-icon {
  margin-left: 6px;
  font-size: 0.8em;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 40px 20px 20px;
  margin-top: 50px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-section h4 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-section p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-section a:hover {
  color: #fff;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 6px;
}

.footer-section ul li a {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-section ul li a::before {
  content: '›';
  font-weight: 700;
}

.footer-bottom {
  max-width: 1200px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ===== REFERENCES BLOCK ===== */
.ref-block {
  background: var(--bg);
  padding: 15px 18px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  line-height: 1.5;
}

/* ===== NO CONTENT STATE ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.empty-state h3 {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== MANUSCRIPT ELEMENTS ===== */
.manuscript-elements {
  counter-reset: manuscript;
}

.manuscript-elements > li {
  counter-increment: manuscript;
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
}

.manuscript-elements > li::before {
  content: counter(manuscript) ".";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--primary-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .hero h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 650px) {
  .hamburger {
    display: block;
  }

  .main-nav ul {
    display: none;
    flex-direction: column;
  }

  .main-nav.open ul {
    display: flex;
  }

  .main-nav ul li a {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .header-top .logo-text h1 {
    font-size: 1rem;
  }

  .hero {
    padding: 40px 15px;
  }

  .hero h2 {
    font-size: 1.3rem;
  }

  .card {
    padding: 20px;
  }
}
