@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --color-primary: #6b68b0;
  --color-secondary: #e67e22;
  --color-accent: #06b6d4;
  --color-success: #10b981;
  --color-danger: #ef4444;

  --color-bg: #fafaf9;
  --color-card: #ffffff;
  --color-text: #1c1917;
  --color-text-light: #78716c;
  --color-border: #e7e5e4;
  --color-over: #F4F4F4;
}

[data-theme="dark"] {
  --color-bg: #0c0a09;
  --color-card: #1c1917;
  --color-text: #f5f5f4;
  --color-text-light: #a8a29e;
  --color-border: #44403c;

  --color-primary: #e67e22;
}

.theme-btn {
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

[data-theme="dark"] .sun { display: block; }
[data-theme="dark"] .moon { display: none; }
.sun { display: none; }
.moon { display: block; }

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
}

.hero {
  max-width: 1200px;
  margin: 50px auto 40px;
  padding: 0 20px;
  text-align: center;
}

.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-text);
  background: none;
  box-shadow: none;
  padding: 0;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero .subtitle {
  background: var(--color-card);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid var(--color-border);
  border-top: 5px solid var(--color-secondary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  color: var(--color-text-light);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 40px;
}

.search-form {
  background: var(--color-card);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.search-form input,
.search-form select {
  padding: 0.6rem 0.8rem;
  font-size: 1rem;
  min-width: 220px;
}

.search-form button {
  background: var(--color-secondary);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.index-container {
  max-width: 1400px;
  margin: 60px auto;
  padding: 0 40px;
}

h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  text-align: center;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--color-secondary) 0%, #0a83b7 100%);
  border-radius: 16px;
  padding: 60px 50px;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.15);
  margin-bottom: 50px;
}

ul {
  list-style: none;
}

form {
  background: var(--color-card);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-border);
  margin-bottom: 50px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}

input[type="text"] {
  flex: 1;
  min-width: 250px;
  padding: 12px 18px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  border: 1px solid #e67e22;
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text);
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--color-secondary);
  background: white;
}

.search-form button:hover {
  background: #5a5799;
  transform: translateY(-2px);
}

.search-form input[type="text"]:focus,
.search-form select:focus {
  border-color: var(--color-secondary);
  background: white;
  outline: none;
}

input[type="text"]::placeholder {
  color: var(--color-text-light);
}

select {
  min-width: 200px;
  padding: 12px 18px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2378716c' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}



button[type="submit"] {
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  background: var(--color-secondary);
  border: 3px solid var(--color-secondary);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(107, 104, 176, 0.2);
}

button[type="submit"]:hover {
  color: var(--color-secondary);
  background: white;
  border: 3px solid var(--color-secondary);
  font-weight: 700;
}

hr {
  max-width: 900px;
  margin: 60px auto;
  border: none;
  height: 2px;
  background: radial-gradient(circle, var(--color-border) 0%, transparent 100%);
}

.games-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 40px;
}

.games-list li {
  position: relative;
  cursor: pointer;
}

.games-list li a {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.games-list li:hover .game-image img {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.games-list li a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  background: var(--color-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.08);
  border: 2px solid var(--color-border);
}

.games-list li:hover a {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
  border-color: var(--color-secondary);
}

.games-list li img {
  width: 100%;
  object-fit: cover;
  display: block;
  background: var(--color-hover);
}

.games-list li span {
  background: white;
  color: #1c1917;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  padding: 15px;
  text-align: center;
}

.game-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--color-hover);
  overflow: hidden;
}

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

.logo-img {
  height: 100px;
  transition: all 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

.nav-premium {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 25px 0 20px 0;
  transition: all 0.3s ease;
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
}

.nav-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #64748b;
  font-weight: 600;
  transition: all 0.3s;
  position: relative;
}

.nav-links a:hover {
  color: #e67e22;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #e67e22;
  transition: width 0.3s;
}

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

.navbar.scrolled {
  padding: 12px 0 7px 0px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.navbar.scrolled .logo-img {
  height: 55px;
}

.footer {
  background: linear-gradient(180deg, #1c1917 0%, #0c0a09 100%);
  color: #a8a29e;
  padding: 60px 20px 40px;
  margin-top: 50px;
  border-top: 4px solid #e67e22;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.footer-links a {
  color: #d6d3d1;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a span {
  font-size: 1.1rem;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.footer-links a:hover {
  color: #fafaf9;
  background: rgba(230, 126, 34, 0.15);
  border-color: #e67e22;
  transform: translateY(-3px);
}

.footer-links a:hover span {
  filter: grayscale(0%);
}

.footer-divider {
  height: 2px;
  background: radial-gradient(circle, #44403c 0%, transparent 100%);
  margin: 10px 0;
}

.footer-text {
  text-align: center;
  font-size: 0.9rem;
  color: #78716c;
}

.footer-brand {
  color: #fafaf9;
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 10px !important;
  letter-spacing: 1px;
}

.footer-text strong {
  color: #d6d3d1;
}

@media (max-width: 1024px) {
  .games-list {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .index-container {
    padding: 0 20px;
    margin: 30px auto;
  }

  h1 {
    font-size: 2.5rem;
    padding: 40px 30px;
    margin-bottom: 30px;
  }

  form {
    padding: 25px 20px;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 30px;
  }

  input[type="text"],
  select {
    width: 100%;
    min-width: 0;
  }

  button[type="submit"] {
    width: 100%;
  }

  .games-list {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
  }

  .games-list li span {
    font-size: 1rem;
    padding: 15px 10px;
    min-height: 70px;
  }

  .footer {
    padding: 40px 15px 30px;
  }

  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .footer-links a {
    justify-content: center;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .games-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .games-list li span {
    font-size: 0.95rem;
    padding: 12px 8px;
    min-height: 65px;
  }
}
