
/*global.css*/

:root {
  --first-color: #5E009E;
  --second-color: #9267F3;
  --search-color: #9267F3;
  --dark-color: #5E009E;
  --light-color: #F2E4E4;
  --login-color: #ffffff;
  --text-color: #2b003f;
  --text-light: #ffffff;
  --navbar-color: #9267F3;

  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Open Sans', sans-serif;

  --box-shadow: 0 4px 10px rgba(94, 0, 158, 0.15);
  --transition: all 0.3s ease;
}

/* General header home */
.header-container {
  font-family: Arial, sans-serif;
  color: var(--text-light);
}

.top-bar {
  background-color: var(--first-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.event-info-carousel,
.social-media {
  height: 2.6vw;
  padding: 15px 20px;
  width: 42vw;
}

.event-info-carousel {
  clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
  padding: 0.4vw 6vw;
  position: relative;
  overflow: hidden;
  background-color: var(--second-color);
}

.social-media {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 10% 100%);
  display: flex;
  justify-content: right;
  align-items: center;
  /* Adjust to fit text length */
  background-color: var(--second-color);
  padding-right: 4vw;
}

.social-media a {
  margin-right: 2.5vw;
  margin-left: 15px;
}

.social-media img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}

.middle-bar {
  background-color: var(--first-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  position: relative;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
}

/* Mobile Sidebar */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 32vw;
  height: 100vh;
  background-color: var(--first-color);
  transform: translateX(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
  z-index: 1000;
}

.mobile-sidebar.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  transition: all 0.3s ease-in-out;
}

.mobile-sidebar-header {
  padding: 23.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.close-sidebar-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.mobile-sidebar-content {
  padding: 0 4vw;
}

.mobile-sidebar-content a {
  font-weight: bold;
  display: block;
  color: white;
  text-decoration: none;
  padding: 3vw 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.3s ease;
  font-size: 3vw;
}

.brand-logos {
  padding: 0 2.5vw;
  width: 30vw;
}

.brand-logos img {
  margin-left: 15px;
  height: 3.7vw;
}

.brand-logos,
.search-login-bar {
  display: flex;
  gap: 20px;
}

.search-login-bar {
  width: 29.85vw;
  justify-content: right;
  padding-right: 4vw;
}

.search-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--search-color);
  /* Cor de fundo da barra */
  border-radius: 8px;
  width: 18vw;
  height: 40px;
}

.search-bar button {
  background-color: transparent;
  border-color: transparent transparent transparent var(--first-color);
  border-width: 2px;
  width: 45px;
}

.search-bar img {
  scale: 0.75;
}

.search-bar input {
  border: none;
  background-color: transparent;
  color: var(--text-light);
  font-size: 16px;
  padding: 8px;
  width: 86%;
}

.login-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  color: var(--login-color);
  background-color: var(--search-color);
  border-color: transparent;
  border-radius: 8px;
  height: 40px;
  width: 95px;
}

.login-button:hover {
  opacity: 0.75;
}

.login-button i {
  font-size: 22px;
}

.event-logo img {
  margin-top: -3rem;
  width: 13.6vw;
}

.navbar {
  display: flex;
  justify-content: center;
  background-color: var(--navbar-color);
  padding: 10px 0;
}

.navbar a {
  color: #fff;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
}

.mobile-menu-btn {
  display: none;
}

.mobile-sidebar {
  display: none;
}








/* Event Info Carousel */
.event-info-carousel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  color: white;
}

.carousel-button {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s ease;
}

.carousel-button:hover {
  color: var(--accent-color);
}

.event-info {
  display: flex;
  flex-direction: row;
  gap: 0.3rem;
  flex-grow: 1;
}

.event-info span {
  font-size: 0.8vw;
  font-weight: 500;
  transition: opacity 0.5s ease-in;
}

.event-info span.fade-out {
  opacity: 0;
}

.event-info span.fade-in {
  opacity: 0;
}

.event-info span.fade-in.active {
  opacity: 1;
}

.registration-deadline {
  color: var(--accent-color);
}

.event-description {
  font-weight: 600;
}

/* Mobile Header Adjustments */
@media (max-width: 1200px) {
  .main-logo {
    position: static;
    transform: none;
    height: 80px;
    margin: 10px auto;
    display: block;
  }

  .main-header {
    flex-direction: column;
    padding-bottom: 10px;
  }

  .user-actions {
    order: 3;
    margin-top: 20px;
  }

  .event-info-carousel {
    display: none;
  }

  .login-button span {
    display: none;
  }

  .search-bar,
  .brand-logos {
    display: none;
    margin: 0;
    padding: 0;
  }

  .top-bar {
    display: none;
  }

  .navbar {
    display: none;
  }

  .carousel-caption {
    bottom: 20px;
    transform: none;
    left: 0;
    right: 0;
    max-width: none;
    text-align: center;
    padding: 20px;
  }

  .carousel-caption h2 {
    font-size: 1.8rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }

  .mobile-menu-btn {
    display: block;
  }

  .mobile-sidebar {
    display: block;
  }

  .middle-bar {
    flex-direction: row;
    gap: 15px;
    padding: 0 1.25rem;
    height: 10vh;
  }

  .event-logo img {
    margin: 0;
    width: 100%;
    height: 10vh;
  }

  .mobile-menu-btn {
    display: block;
  }

  .main-nav ul {
    flex-wrap: wrap;
  }

  .main-nav li {
    flex: 1 0 50%;
    text-align: center;
  }

  .game-card {
    flex-direction: column;
  }

  .game-date {
    flex-direction: row;
    justify-content: space-around;
    padding: 10px;
  }

  .game-date .day,
  .game-date .month {
    font-size: 1.2rem;
  }

  .game-info {
    padding: 15px;
  }

  .game-details {
    flex-direction: column;
    gap: 5px;
  }

  .game-link {
    padding: 10px;
  }

  .top-bar {
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }

  .event-info-carousel,
  .social-media {
    width: 100%;
    padding: 10px;
  }

  .search-login-bar {
    padding: 0;
    width: 2.5rem;
  }

  .login-button {
    width: 40px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.8rem;
  }

  .carousel-item {
    height: 350px;
  }

  .partner-logo {
    height: 40px;
  }

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






/* Footer */
.main-footer {
  background-color: var(--dark-color);
  color: var(--text-light);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo img {
  max-height: 100px;
  margin-bottom: 15px;
}

.footer-logo p {
  margin-bottom: 20px;
  opacity: 0.8;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  color: var(--text-light);
  font-size: 1.2rem;
  transition: var(--transition);
}

.footer-social a:hover {
  color: var(--text-light);
}

.footer-links h3,
.footer-contact h3,
.footer-newsletter h3 {
  color: var(--text-light);
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  margin-left: 1rem;
}

.footer-links h3::after,
.footer-contact h3::after,
.footer-newsletter h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--text-light);
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-light);
  opacity: 0.8;
  transition: var(--transition);
  text-decoration: none;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--text-light);
  padding-left: 5px;
}

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

.footer-contact li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact i {
  color: var(--text-light);
  margin-top: 3px;
}

.newsletter-form {
  display: flex;
  margin-top: 20px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 4px 0 0 4px;
}

.newsletter-form button {
  background-color: var(--second-color);
  color: var(--text-light);
  border: none;
  padding: 0 15px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background-color: #c0392b;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
}

.footer-bottom p {
  opacity: 0.7;
  font-size: 0.9rem;
}

.footer-partners {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-partners img {
  height: 30px;
  opacity: 0.7;
  transition: var(--transition);
}

.footer-partners img:hover {
  opacity: 1;
}











.loading {
  background: rgba(0, 0, 0, 0.6);
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  z-index: 1055;
}

.loading i {
  font-size: 3vw;
  color: white;
}

.centralize {
  display: flex;
  justify-content: center;
  align-items: center;
}

.error {
  color: #ff4e50;
  text-align: left;
  margin-top: -0.6rem;
  display: none;
}





















.swal2-container {
  z-index: 99999 !important;
}

.swal2-popup {
  z-index: 99999 !important;
}

.swal-high-zindex {
  z-index: 99999 !important;
}
