/* Custom styles for Rei do Pitaco */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "DMSans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #ffffff;
  color: #1f2937;
}

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

/* Header Styles */
header {
  background: #ffffff;
  padding: 20px 0;
  border-bottom: 1px solid #e5e7eb;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: bold;
  color: #10b981;
}

.nav-menu {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-btn {
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  border-radius: 20px;
  background: #ffffff;
  color: #374151;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-btn:hover {
  background: #f9fafb;
  border-color: #10b981;
}

.login-btn {
  padding: 10px 24px;
  border: 1px solid #10b981;
  border-radius: 20px;
  background: #ffffff;
  color: #10b981;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.login-btn:hover {
  background: #10b981;
  color: #ffffff;
}

/* Added authenticated header styles */
.user-profile-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.user-profile-btn:hover {
  background: #059669;
  border-color: #059669;
  transform: scale(1.05);
}

.user-initial {
  color: white;
  font-size: 16px;
  font-weight: 600;
}

.hamburger-menu-btn {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
}

.hamburger-menu-btn:hover {
  color: #1f2937;
}

.profile-dropdown {
  position: absolute;
  top: 64px;
  right: 20px;
  z-index: 1000;
  animation: fadeIn 0.2s ease-in-out;
}

.profile-dropdown-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  min-width: 240px;
  overflow: hidden;
}

.profile-dropdown-header {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f9fafb;
}

.user-profile-large {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-initial-large {
  color: white;
  font-size: 20px;
  font-weight: 600;
}

.profile-dropdown-divider {
  height: 1px;
  background: #e5e7eb;
}

.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #374151;
  text-decoration: none;
  transition: background 0.2s;
  font-size: 14px;
}

.profile-dropdown-item:hover {
  background: #f9fafb;
}

.profile-dropdown-item svg {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .profile-dropdown {
    right: 10px;
  }

  .profile-dropdown-content {
    min-width: 200px;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  padding: 60px 20px;
  text-align: center;
  margin: 20px 0;
}

.hero h1 {
  font-size: 48px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 16px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero p {
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 24px;
  opacity: 0.95;
}

.hero-btn {
  padding: 12px 32px;
  background: #fbbf24;
  color: #1f2937;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.hero-btn:hover {
  background: #f59e0b;
  transform: translateY(-2px);
}

.hero-link {
  display: inline-block;
  margin-top: 12px;
  color: #ffffff;
  text-decoration: underline;
  font-size: 14px;
}

/* Section Styles */
.section {
  margin: 40px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-title {
  font-size: 20px;
  font-weight: bold;
  color: #1f2937;
}

.section-link {
  font-size: 14px;
  color: #6b7280;
  text-decoration: none;
}

/* Game Card Styles */
.game-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.2s;
}

.game-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #d1d5db;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.card-league {
  font-size: 14px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-date {
  font-size: 12px;
  color: #9ca3af;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 16px;
}

.card-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.odds-section {
  flex: 1;
}

.team-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.team-name {
  font-size: 14px;
  color: #374151;
}

.team-label {
  font-size: 12px;
  color: #6b7280;
  margin-left: 8px;
}

.odds-value {
  font-size: 16px;
  font-weight: bold;
  color: #1f2937;
}

.bet-btn {
  padding: 10px 24px;
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.bet-btn:hover {
  background: #059669;
  transform: translateY(-2px);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  font-size: 12px;
  color: #6b7280;
}

.badge {
  padding: 4px 8px;
  background: #f3f4f6;
  border-radius: 4px;
  font-size: 11px;
  color: #6b7280;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Ligas Limitadas Scroll */
.ligas-limitadas-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 8px;
}

.ligas-limitadas-scroll::-webkit-scrollbar {
  display: none;
}

.ligas-limitadas-card {
  flex: 0 0 300px;
  min-width: 300px;
}

/* Ligas Gratuitas Scroll */
.ligas-gratuitas-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 8px;
}

.ligas-gratuitas-scroll::-webkit-scrollbar {
  display: none;
}

.ligas-gratuitas-card {
  flex: 0 0 300px;
  min-width: 300px;
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ligas-limitadas-card {
    flex: 0 0 280px;
    min-width: 280px;
  }
  
  .ligas-gratuitas-card {
    flex: 0 0 280px;
    min-width: 280px;
  }
}

@media (max-width: 640px) {
  .grid-4 {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 12px;
    grid-template-columns: unset;
  }

  .grid-4::-webkit-scrollbar {
    display: none;
  }

  .grid-4 > .game-card {
    flex: 0 0 280px;
    min-width: 280px;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .nav-menu {
    display: none;
  }

  .hero h1 {
    font-size: 32px;
  }
  
  .ligas-limitadas-card {
    flex: 0 0 260px;
    min-width: 260px;
  }
  
  .ligas-gratuitas-card {
    flex: 0 0 260px;
    min-width: 260px;
  }
}

/* Added styles for game lineup page */
.field-position-btn {
  width: 48px;
  height: 48px;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: #10b981;
}

.field-position-btn:hover {
  background: #f0fdf4;
  border-color: #10b981;
  transform: scale(1.05);
}

/* Added authentication modal styles */
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.auth-modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.auth-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.auth-back-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #6b7280;
  transition: color 0.2s;
}

.auth-back-btn:hover {
  color: #1f2937;
}

.auth-logo {
  width: 40px;
  height: 40px;
}

.auth-form {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 24px;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: #374151;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.input-with-icon {
  position: relative;
}

.input-with-icon .form-input {
  padding-right: 48px;
}

.input-icon,
.input-icon-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}

.input-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.input-icon-btn:hover {
  color: #6b7280;
}

.auth-terms {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 24px;
}

.auth-link {
  color: #10b981;
  text-decoration: none;
  font-weight: 500;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-submit-btn {
  width: 100%;
  padding: 14px;
  background: #a7f3d0;
  color: #065f46;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-submit-btn:hover {
  background: #6ee7b7;
}

.auth-switch {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: #6b7280;
}

@media (max-width: 640px) {
  .auth-modal-content {
    padding: 20px;
    max-height: 95vh;
  }

  .auth-title {
    font-size: 16px;
  }
}

/* Deposit Modal Styles */
.deposit-modal-content {
  max-width: 900px;
}

.deposit-payment-method {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #374151;
  font-weight: 500;
}

.deposit-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
}

.deposit-left {
  flex: 1;
}

.deposit-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 16px;
}

.deposit-amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.deposit-amount-btn {
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: white;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.deposit-amount-btn:hover {
  border-color: #10b981;
  background: #f0fdf4;
}

.deposit-amount-btn.selected {
  border-color: #10b981;
  background: #d1fae5;
  color: #065f46;
}

.deposit-summary {
  background: #f9fafb;
  border-radius: 12px;
  padding: 20px;
  height: fit-content;
}

.deposit-summary-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 16px;
}

.deposit-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.deposit-summary-label {
  font-size: 14px;
  color: #6b7280;
}

.deposit-summary-value {
  font-size: 14px;
  color: #374151;
  font-weight: 500;
}

.deposit-summary-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 16px 0;
}

.deposit-summary-total {
  margin-bottom: 0;
}

.deposit-summary-value-total {
  font-size: 16px;
  color: #10b981;
  font-weight: 600;
}

@media (max-width: 768px) {
  .deposit-content-wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .deposit-amount-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .deposit-summary {
    order: -1;
  }
}

/* Added green glow effect for Jogar Agora button */
.jogar-agora-btn {
  padding: 10px 24px;
  border: 2px solid #10b981;
  border-radius: 24px;
  background: #ffffff;
  color: #10b981;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4), 0 0 40px rgba(16, 185, 129, 0.2), inset 0 0 10px rgba(16, 185, 129, 0.1);
  animation: pulse-glow 2s ease-in-out infinite;
}

.jogar-agora-btn:hover {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.6), 0 0 60px rgba(16, 185, 129, 0.3), inset 0 0 15px
    rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4), 0 0 40px rgba(16, 185, 129, 0.2), inset 0 0 10px
      rgba(16, 185, 129, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.6), 0 0 60px rgba(16, 185, 129, 0.3), inset 0 0 15px
      rgba(16, 185, 129, 0.15);
  }
}

/* Menu Popup Styles */
.menu-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  animation: fadeIn 0.2s ease-in-out;
}

.menu-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.menu-popup-content {
  position: relative;
  background: white;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  animation: slideInRight 0.3s ease-out;
}

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

.menu-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.menu-popup-greeting {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.menu-popup-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #6b7280;
  transition: color 0.2s;
}

.menu-popup-close:hover {
  color: #1f2937;
}

.menu-balance-section {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  padding: 24px 20px;
  margin: 0;
}

.menu-balance-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.menu-balance-label {
  font-size: 14px;
  color: #065f46;
  margin-bottom: 4px;
}

.menu-balance-amount {
  font-size: 28px;
  font-weight: 700;
  color: #065f46;
}

.menu-balance-toggle {
  background: rgba(255, 255, 255, 0.5);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #065f46;
  transition: all 0.2s;
}

.menu-balance-toggle:hover {
  background: rgba(255, 255, 255, 0.8);
}

.menu-balance-breakdown {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}

.menu-balance-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-balance-item-label {
  font-size: 12px;
  color: #065f46;
  opacity: 0.8;
}

.menu-balance-item-value {
  font-size: 14px;
  font-weight: 600;
  color: #065f46;
}

.menu-deposit-btn {
  width: 100%;
  padding: 12px;
  background: #10b981;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.menu-deposit-btn:hover {
  background: #059669;
  transform: translateY(-1px);
}

.menu-items {
  padding: 8px 0;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  color: #374151;
  text-decoration: none;
  transition: background 0.2s;
  font-size: 15px;
  border-bottom: 1px solid #f3f4f6;
}

.menu-item:hover {
  background: #f9fafb;
}

.menu-item svg {
  flex-shrink: 0;
  color: #6b7280;
}

.menu-item-danger {
  color: #dc2626;
}

.menu-item-danger svg {
  color: #dc2626;
}

@media (max-width: 640px) {
  .menu-popup-content {
    max-width: 100%;
  }

  /* Hide hamburger menu button on mobile devices */
  .hidden-mobile {
    display: none !important;
  }
}
