/* Main CSS for iCryptoLetter.com */
:root {
  --primary-color: #2e4fcd;
  --secondary-color: #5cd6b9;
  --accent-color: #fc8a4a;
  --text-color: #333;
  --light-bg: #f7fbff;
  --dark-bg: #1a2542;
  --header-font: 'Montserrat', sans-serif;
  --body-font: 'Open Sans', sans-serif;
}

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

html, body {
  font-family: var(--body-font);
  color: var(--text-color);
  line-height: 1.6;
  scroll-behavior: smooth;
  background-color: var(--light-bg);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

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

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

header {
  background: linear-gradient(135deg, var(--dark-bg), var(--primary-color));
  color: white;
  padding: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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

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

.logo h1 {
  font-size: 1.5rem;
  font-family: var(--header-font);
  font-weight: 700;
}

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

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: white;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 4px;
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.hero {
  background: linear-gradient(rgba(26, 37, 66, 0.7), rgba(26, 37, 66, 0.7)), url('../images/crypto-bg.svg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 160px 20px 80px;
  margin-top: 60px;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-family: var(--header-font);
  font-weight: 800;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

.cta-button {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(252, 138, 74, 0.3);
}

.cta-button:hover {
  background: #ff7a30;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(252, 138, 74, 0.4);
  color: white;
}

section {
  padding: 80px 0;
}

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

.section-header h2 {
  font-size: 2rem;
  color: var(--dark-bg);
  font-family: var(--header-font);
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.section-header h2:after {
  content: '';
  position: absolute;
  width: 60%;
  height: 4px;
  background-color: var(--secondary-color);
  bottom: -10px;
  left: 20%;
}

.features {
  background-color: white;
}

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

.feature-card {
  background: white;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 2rem;
}

.feature-card h3 {
  font-family: var(--header-font);
  margin: 15px 0;
  color: var(--dark-bg);
}

.about {
  background-color: var(--light-bg);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.about-text h2 {
  font-family: var(--header-font);
  color: var(--dark-bg);
  margin-bottom: 20px;
}

.games-section {
  background-color: #fff;
  padding: 60px 0;
}

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

.game-card {
  background: var(--light-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

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

.game-image {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.game-content {
  padding: 20px;
}

.game-content h3 {
  font-family: var(--header-font);
  margin-bottom: 10px;
  color: var(--dark-bg);
}

.game-content p {
  margin-bottom: 15px;
  color: #666;
}

.news-section {
  background-color: var(--light-bg);
}

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

.news-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.news-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.news-content {
  padding: 20px;
}

.news-content h3 {
  font-family: var(--header-font);
  margin-bottom: 10px;
}

.news-content p {
  margin-bottom: 15px;
  color: #666;
}

.news-source {
  font-size: 0.9rem;
  color: var(--primary-color);
}

footer {
  background: var(--dark-bg);
  color: white;
  padding: 60px 0 20px;
}

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

.footer-column h4 {
  font-family: var(--header-font);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

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

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

.footer-column ul li a {
  color: #ccc;
}

.footer-column ul li a:hover {
  color: white;
}

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

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

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

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

.social-links a:hover {
  background: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: #888;
}

/* Responsive styles */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--dark-bg);
    flex-direction: column;
    text-align: center;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  }

  nav ul.active {
    display: flex;
  }

  nav ul li {
    margin: 0;
    padding: 15px;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
  
  .section-header h2 {
    font-size: 1.7rem;
  }
}

@media (max-width: 480px) {
  .logo h1 {
    font-size: 1.2rem;
  }

  .hero h2 {
    font-size: 1.7rem;
  }

  .cta-button {
    padding: 10px 25px;
    font-size: 1rem;
  }
}
