/* Root Variables */
:root {
  --primary-color: var(--env-primary-color, #fe2c55);
  --secondary-color: var(--env-secondary-color, #ff4b2b);
  --dark-color: #333;
  --light-color: #fff;
  --gray-color: #f0f2f5;
  --border-color: #ddd;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
}

/* Navigation Bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: var(--light-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

.login-btn {
  background: var(--primary-color);
  color: var(--light-color) !important;
  padding: 0.5rem 1.5rem;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.login-btn:hover {
  background: #e62548;
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 5px;
}

.menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--dark-color);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  padding: 8rem 5% 4rem;
  text-align: center;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--light-color);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--light-color);
  max-width: 600px;
}

.cta-btn {
  background: var(--light-color);
  color: var(--primary-color);
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.cta-btn:hover {
  background: #f0f0f0;
}

/* Features Section */
.features {
  padding: 4rem 5%;
  background: var(--light-color);
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* How It Works Section */
.how-it-works {
  padding: 4rem 5%;
  background: var(--light-color);
}

.how-it-works h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--dark-color);
}

.steps {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.step {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  flex: 1 1 30%;
  margin: 1rem;
  transition: transform 0.3s;
}

.step:hover {
  transform: translateY(-5px);
}

.step-number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.step h3 {
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.step p {
  color: #666;
}

/* Contact Section */
.contact {
  padding: 4rem 5%;
  background: var(--gray-color);
}

.contact h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.contact form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact input,
.contact textarea {
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
}

.contact button {
  padding: 1rem;
  background: var(--primary-color);
  color: var(--light-color);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact button:hover {
  background: #e62548;
}

/* Footer */
.footer {
  padding: 2rem 5%;
  background: var(--light-color);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-links a {
  margin: 0 1rem;
  text-decoration: none;
  color: var(--dark-color);
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Login Page */
.login-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: var(--gray-color);
  padding-top: 5rem;
}

.login-box {
  background: var(--light-color);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}

.login-box h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--dark-color);
}

.tab-buttons {
  display: flex;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
}

.tab-btn {
  flex: 1;
  padding: 1rem;
  border: none;
  background: none;
  font-size: 1.1rem;
  color: var(--dark-color);
  cursor: pointer;
  transition: all 0.3s;
  opacity: 0.6;
}

.tab-btn.active {
  opacity: 1;
  border-bottom: 2px solid var(--primary-color);
  margin-bottom: -2px;
}

.tab-btn:hover {
  opacity: 1;
}

.form-container {
  display: none;
}

.form-container.active {
  display: block;
}

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

.form-group input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.login-submit-btn {
  width: 100%;
  padding: 0.8rem;
  background: var(--primary-color);
  color: var(--light-color);
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.login-submit-btn:hover {
  background: #e62548;
}

/* Alert Styles */
.alert-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 1rem;
}

.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  display: block;
}

.alert-success {
  background-color: #dcfce7;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.alert-error {
  background-color: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.alert-warning {
  background-color: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.alert-info {
  background-color: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem 5%;
  }

  .menu-btn {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--light-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1rem;
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
  }

  /* Remover estilos que podem estar causando conflito */
  .navbar {
    flex-direction: row; /* Manter direção em linha */
    align-items: center; /* Manter alinhamento central */
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .contact form {
    padding: 1rem;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step {
    flex: 1 1 80%;
  }

  .login-container {
    padding: 2rem 1rem;
  }

  .login-box {
    width: 90%;
  }

  /* Menu button animation */
  .menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  /* Adjust other elements for mobile */
  .dashboard-container {
    padding-top: 6rem;
  }

  .hero {
    padding-top: 6rem;
  }

  .post-form-container,
  .scheduled-posts-container {
    margin: 1rem;
    padding: 1rem;
  }

  .alert-container {
    width: 95%;
    top: 10px;
  }

  .alert {
    font-size: 0.9rem;
    padding: 0.8rem;
  }
}

/* Adicionar ao final do arquivo */
.content-container {
    padding: 8rem 5% 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.content-container h1 {
    color: var(--dark-color);
    margin-bottom: 2rem;
    text-align: center;
}

.footer-credit {
    font-size: 0.75rem;
    color: #666;
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.3s ease;
    margin-top: 0.5rem;
    display: block;
}

.footer-credit:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* Ajuste dos estilos do footer */
.footer-credit {
    font-size: 0.75rem;
    color: #666;
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.3s ease;
    margin-top: 0.5rem;
    display: block;
}

.footer-links a {
    text-decoration: none;
    color: #666;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-credit:hover {
    opacity: 1;
    color: var(--primary-color);
}