/* 
 * Marsalus Website Styles
 * Modern, responsive design for Brazilian entertainment platform
 */

/* Base Styles & CSS Reset */
:root {
  --primary-color: #4472CA;
  --secondary-color: #FF6B6B;
  --accent-color: #FFBE0B;
  --text-color: #333;
  --light-text: #f8f9fa;
  --background: #ffffff;
  --light-bg: #f5f7fa;
  --dark-bg: #2d3142;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

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

a:hover {
  color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  line-height: 1.2;
  font-weight: 700;
}

p {
  margin-bottom: 1.5rem;
}

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

section {
  padding: 5rem 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

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

.primary-btn:hover {
  background-color: #3a61b3;
  color: var(--light-text);
  transform: translateY(-2px);
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 1rem 0;
  backdrop-filter: blur(10px);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo h1 {
  font-size: 1.5rem;
  margin-left: 10px;
  margin-bottom: 0;
  font-weight: 800;
  color: var(--primary-color);
}

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

nav ul.menu {
  display: flex;
  list-style: none;
}

nav ul.menu li {
  margin-left: 1.5rem;
}

nav ul.menu li a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
}

nav ul.menu li a:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

nav ul.menu li a:hover:after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 20px;
  position: relative;
}

.menu-toggle span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--primary-color);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: var(--transition);
}

.menu-toggle span:nth-child(1) {
  top: 0;
}
.menu-toggle span:nth-child(2) {
  top: 8px;
}
.menu-toggle span:nth-child(3) {
  top: 16px;
}

.menu-toggle.active span:nth-child(1) {
  top: 8px;
  transform: rotate(135deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  left: -60px;
}
.menu-toggle.active span:nth-child(3) {
  top: 8px;
  transform: rotate(-135deg);
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  background-image: linear-gradient(135deg, rgba(68, 114, 202, 0.8), rgba(255, 107, 107, 0.8));
  color: var(--light-text);
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 80px;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Games Section */
.games {
  background-color: var(--light-bg);
}

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

.games h2:after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 3rem;
}

.game-card {
  background-color: var(--background);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  color: var(--primary-color);
}

.card-content p {
  margin-bottom: 1rem;
}

.card-content a {
  display: inline-block;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 4px;
  background-color: rgba(68, 114, 202, 0.1);
  color: var(--primary-color);
}

.card-content a:hover {
  background-color: var(--primary-color);
  color: var(--light-text);
}

.news-sources {
  background-color: var(--background);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
}

.news-sources h3 {
  margin-bottom: 1rem;
}

.news-sources ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 15px;
}

.news-sources ul li a {
  display: inline-block;
  padding: 8px 15px;
  background-color: rgba(68, 114, 202, 0.1);
  border-radius: 20px;
  font-weight: 500;
}

.news-sources ul li a:hover {
  background-color: var(--primary-color);
  color: var(--light-text);
}

/* About Section */
.about {
  background-color: var(--background);
}

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

.about h2:after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

/* News Section */
.news {
  background-color: var(--light-bg);
}

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

.news h2:after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.news-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.news-item {
  background-color: var(--background);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.news-item h3 {
  color: var(--primary-color);
}

.news-item .date {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: var(--light-text);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo h3 {
  margin-top: 15px;
  margin-bottom: 5px;
}

.footer-links {
  display: flex;
  flex: 1;
  justify-content: space-around;
}

.footer-nav h4,
.footer-social h4 {
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-nav h4:after,
.footer-social h4:after {
  content: '';
  position: absolute;
  width: 40px;
  height: 3px;
  background-color: var(--secondary-color);
  bottom: -8px;
  left: 0;
  border-radius: 1.5px;
}

.footer-nav ul,
.footer-social ul {
  list-style: none;
}

.footer-nav ul li,
.footer-social ul li {
  margin-bottom: 0.8rem;
}

.footer-nav ul li a,
.footer-social ul li a {
  color: rgba(248, 249, 250, 0.8);
}

.footer-nav ul li a:hover,
.footer-social ul li a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(248, 249, 250, 0.7);
}

.footer-bottom a {
  color: rgba(248, 249, 250, 0.7);
}

.footer-bottom a:hover {
  color: var(--secondary-color);
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
  }
  
  .hero h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  nav ul.menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--background);
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  nav ul.menu.active {
    max-height: 300px;
  }
  
  nav ul.menu li {
    margin: 1rem 0;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .footer-links {
    width: 100%;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

@media (max-width: 576px) {
  section {
    padding: 3rem 0;
  }
  
  .hero {
    min-height: 500px;
  }
  
  .hero h2 {
    font-size: 1.7rem;
  }
  
  h2 {
    font-size: 2rem !important;
  }
  
  .news-items,
  .game-cards {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    flex-direction: column;
  }
}
