/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #f4f4f4;
  color: #222;
}

/* HEADER */
.site-header {
  background: linear-gradient(90deg, #1b1b1b, #333);
  color: white;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
}

.logo {
  font-size: 1.2rem;
  font-weight: 600;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 10px;
}

.main-nav a {
  background: #007bff;
  padding: 6px 8px;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.3s, transform 0.2s;
}

.main-nav a:hover {
  background: #0056b3;
  transform: scale(1.1);
}

/* LAYOUT */
#main-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
}

#sidebar {
  flex: 0 0 240px;
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  height: fit-content;
}

#sidebar h2 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #333;
  text-align: center;
}

#sidebar ol {
  list-style: decimal inside;
}

#sidebar li {
  margin: 8px 0;
}

#sidebar a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

#sidebar a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* CONTEÚDO PRINCIPAL */
#main-content {
  flex: 1;
  min-width: 300px;
}

.movie-ranking {
  background: white;
  padding: 16px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.movie-poster {
  width: 100%;
  max-width: 320px;
  display: block;
  margin: 10px auto;
  border-radius: 6px;
}

.locadora-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.action-btn {
  display: inline-block;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  color: white;
  font-weight: 600;
  transition: transform 0.15s, opacity 0.15s;
}

.emprestar-btn { background: #28a745; }
.vender-btn { background: #dc3545; }
.trailer-btn { background: #007bff; }

.action-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 18px;
  background: #111;
  color: white;
  border-radius: 6px;
  margin-top: 20px;
}
