/* 
* Galeria de Sonhos - Main Stylesheet
* A dream inspiration gallery website
*/

/* Base Styles & Variables */
:root {
  --primary: #8e44ad;
  --primary-light: #9b59b6;
  --primary-dark: #6c3483;
  --secondary: #c0392b;
  --secondary-light: #e74c3c;
  --accent: #2ecc71;
  --dark: #2c3e50;
  --light: #ecf0f1;
  --gray: #95a5a6;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Quicksand', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background-color: #fff;
  overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
  line-height: 1.3;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1.5rem;
  font-weight: 400;
}

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

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

.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 12px 30px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--secondary);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--secondary);
}

.btn-secondary:hover {
  background: var(--primary);
}

.text-center {
  text-align: center;
}

/* Header */
header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

header.scroll {
  padding: 5px 0;
}

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

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

.logo img {
  height: 40px;
  margin-right: 10px;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

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

.main-nav li {
  margin-left: 30px;
}

.main-nav a {
  color: var(--dark);
  font-weight: 600;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.main-nav a:hover {
  color: var(--primary);
}

.main-nav a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary);
}

/* Hero Section */
.hero {
  background: var(--gradient);
  color: white;
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('hero-bg.svg');
  background-size: cover;
  opacity: 0.3;
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  color: white;
  font-size: 3.5rem;
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Gallery Section */
.gallery {
  padding: 100px 0;
  background-color: white;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title p {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.dream-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.dream-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.dream-image {
  height: 200px;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  overflow: hidden;
}

.dream-content {
  padding: 25px;
}

.dream-content h3 {
  margin-bottom: 10px;
}

/* Games Section */
.games {
  padding: 100px 0;
  background-color: var(--light);
}

.games-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.game-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.game-content {
  padding: 25px 25px 15px;
}

.game-links {
  padding: 0 25px 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.game-links a {
  display: inline-block;
  background: rgba(142, 68, 173, 0.1);
  padding: 8px 15px;
  border-radius: 50px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.game-links a:hover {
  background: var(--primary);
  color: white;
}

/* About Section */
.about {
  padding: 100px 0;
  background: linear-gradient(to bottom right, #fff 50%, var(--light) 50%);
}

.about-container {
  display: flex;
  gap: 40px;
  align-items: center;
}

.about-image {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-content {
  flex: 1;
}

.about-content h2 {
  margin-bottom: 20px;
}

/* Newsletter */
.newsletter {
  padding: 80px 0;
  background: var(--primary);
  color: white;
  text-align: center;
}

.newsletter h2 {
  color: white;
  margin-bottom: 20px;
}

.newsletter p {
  max-width: 600px;
  margin: 0 auto 30px;
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
}

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

.newsletter-form button {
  padding: 0 25px;
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: var(--dark);
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  padding: 60px 0 30px;
}

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

.footer-column h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 40px;
  margin-right: 10px;
}

.footer-logo span {
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

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

.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

.copyright {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  h1 {
    font-size: 2.8rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .about-container {
    flex-direction: column;
  }
  
  .about-image {
    width: 100%;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .main-nav {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
  }
  
  .main-nav.active {
    max-height: 300px;
  }
  
  .main-nav ul {
    flex-direction: column;
    padding: 20px;
  }
  
  .main-nav li {
    margin: 0 0 15px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero {
    padding: 150px 0 80px;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    border-radius: 4px;
    margin-bottom: 10px;
  }
  
  .newsletter-form button {
    border-radius: 4px;
    width: 100%;
    padding: 15px;
  }
}
