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

body {
  font-family: "Arial", sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

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

/* Header Styles */
.header {
  background: linear-gradient(135deg, #004cff, #082977);
  color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-top {
  padding: 15px 0;
}

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

.logo h1 {
  font-size: 2rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.search-bar {
  display: flex;
  align-items: center;
}

.search-input {
  padding: 10px 15px;
  border: none;
  border-radius: 25px 0 0 25px;
  width: 300px;
  font-size: 14px;
  outline: none;
}

.search-btn {
  padding: 10px 15px;
  background: #fff;
  border: none;
  border-radius: 0 25px 25px 0;
  cursor: pointer;
  color: #dc2626;
}

.search-btn:hover {
  background: #f1f1f1;
}

/* Navigation */
.navigation {
  background: rgba(0, 0, 0, 0.2);
  padding: 10px 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: bold;
  transition: background 0.3s;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Main Content */
.main-content {
  padding: 30px 0;
}

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

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
}

.game-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.game-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
}

.game-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.tag {
  background: #dc2626;
  color: white;
  padding: 4px 8px;
  border-radius: 15px;
  font-size: 10px;
  font-weight: bold;
}

.game-content {
  padding: 20px;
}

.game-title {
  margin-bottom: 10px;
}

.game-title a {
  color: #333;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
}

.game-title a:hover {
  color: #dc2626;
}

.game-description {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 12px;
}

.game-category {
  background: #f3f4f6;
  padding: 4px 8px;
  border-radius: 5px;
  font-weight: bold;
  color: #dc2626;
}

.game-date {
  color: #999;
}

.btn-primary {
  background: #0088ff;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.3s;
  display: inline-block;
}

.btn-primary:hover {
  background: #054785;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.pagination-btn {
  padding: 10px 15px;
  background: white;
  color: #dc2626;
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid #dc2626;
  font-weight: bold;
  transition: all 0.3s;
}

.pagination-btn:hover,
.pagination-btn.active {
  background: #dc2626;
  color: white;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-widget {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sidebar-widget h3 {
  color: #dc2626;
  margin-bottom: 15px;
  font-size: 16px;
  border-bottom: 2px solid #dc2626;
  padding-bottom: 5px;
}

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

.btn-sorteo {
  background: #dc2626;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
  transition: background 0.3s;
}

.btn-sorteo:hover {
  background: #b91c1c;
}

.live-widget,
.creator-widget {
  text-align: center;
}

.live-widget img,
.creator-widget img {
  width: 100%;
  max-width: 150px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.btn-contact {
  background: #e91e63;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s;
}

.btn-contact:hover {
  background: #c2185b;
}

/* Footer */
.footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }

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

  .header-content {
    flex-direction: column;
    gap: 15px;
  }

  .search-input {
    width: 250px;
  }

  .nav-menu {
    justify-content: center;
  }

  .nav-link {
    font-size: 11px;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .search-input {
    width: 200px;
  }

  .logo h1 {
    font-size: 1.5rem;
  }

  .games-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .game-card {
    margin: 0 10px;
  }
}
