/* Base Styles */
:root {
  --primary-color: #1e1e1e;
  --secondary-color: #f5f5f7;
  --accent-color: #0071e3;
  --text-color: #1d1d1f;
  --text-light: #86868b;
  --border-color: #d2d2d7;
  --card-bg: #ffffff;
  --success-color: #4cd964;
  --error-color: #ff3b30;
  --warning-color: #ff9500;
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
  --border-radius: 12px;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--secondary-color);
  line-height: 1.5;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
}

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

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

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

.btn {
  font-weight: 500;
  padding: 0.625rem 1.5rem;
  border-radius: 8px;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: white;
}

.btn-primary:hover {
  background-color: #0058b1;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
}

.btn-outline:hover {
  background-color: var(--accent-color);
  color: white;
  transform: translateY(-2px);
}

.btn-outline-dark {
  border: 1px solid var(--text-color);
  color: var(--text-color);
  background: transparent;
}

.btn-outline-dark:hover {
  background-color: var(--text-color);
  color: white;
  transform: translateY(-2px);
}

/* Navbar Styles */
.navbar {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
}

/* Page Header & Spacing for Fixed Navbar */
.page-header,
.account-detail-header {
  padding-top: 8rem !important;
  padding-bottom: 4rem !important;
}

@media (max-width: 992px) {
  .page-header,
  .account-detail-header {
    padding-top: 7rem !important;
    padding-bottom: 3rem !important;
  }
}

@media (max-width: 768px) {
  .page-header,
  .account-detail-header {
    padding-top: 6.5rem !important;
    padding-bottom: 2.5rem !important;
  }
}

@media (max-width: 576px) {
  .page-header,
  .account-detail-header {
    padding-top: 6rem !important;
    padding-bottom: 2rem !important;
  }
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.brand-text {
  background: linear-gradient(135deg, #0071e3, #00c7e3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.nav-link {
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-color);
}

.nav-link:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.nav-link:hover:after,
.nav-link.active:after {
  width: 80%;
  left: 10%;
}

.btn-login {
  background-color: var(--primary-color);
  color: white;
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  transition: var(--transition);
}

.btn-login:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
  color: white;
}

/* Hero Section Styles */
.hero-section {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, #f9f9f9 0%, #f1f1f1 100%);
  overflow: hidden;
}

.hero-content {
  padding-right: 2rem;
}

.hero-content .subtitle {
  color: var(--accent-color);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-block;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #1e1e1e 0%, #434343 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.hero-image:hover img {
  transform: scale(1.02);
}

/* Section Styles */
section {
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 3rem;
}

.section-tag {
  color: var(--accent-color);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Game Cards Styles */
.game-cards,
.account-cards {
  margin-bottom: 2rem;
}

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

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.card-image {
  position: relative;
  overflow: hidden;
}

.card-img-top {
  transition: var(--transition);
  height: 200px;
  object-fit: cover;
}

.game-card:hover .card-img-top {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: var(--accent-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.price {
  font-weight: 600;
  color: var(--accent-color);
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--warning-color);
  font-weight: 500;
}

/* Account Cards Styles */
.account-card {
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background-color: var(--card-bg);
  transition: var(--transition);
  height: 100%;
  margin-bottom: 2rem;
}

.account-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.account-card .card-badge.verified {
  background-color: var(--success-color);
}

.account-card .card-subtitle {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.account-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.account-features li {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.account-features li i {
  color: var(--success-color);
  margin-right: 0.5rem;
}

.account-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.current-price {
  font-weight: 600;
  color: var(--accent-color);
}

.btn-view {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  background-color: var(--primary-color);
  color: white;
}

.btn-view:hover {
  background-color: var(--accent-color);
  color: white;
}

/* Why Us Section */
.why-us-section {
  background-color: var(--secondary-color);
  position: relative;
}

.feature-item {
  text-align: center;
  padding: 2rem;
  border-radius: var(--border-radius);
  background-color: var(--card-bg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

.feature-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(0, 113, 227, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-icon i {
  font-size: 2rem;
  color: var(--accent-color);
}

.feature-item h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-item p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Footer Styles */
.footer {
  background-color: var(--primary-color);
  color: white;
  padding: 4rem 0 1rem;
}

.footer-brand {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #0071e3, #00c7e3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.footer-about p {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

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

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

.footer h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  padding-left: 0.25rem;
}

.footer-newsletter p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.footer-newsletter .input-group {
  margin-bottom: 1rem;
}

.footer-newsletter .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border: none;
  padding: 0.75rem 1rem;
}

.footer-newsletter .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.footer-bottom-links a:hover {
  color: white;
}

/* Login Modal */
.modal-content {
  border-radius: var(--border-radius);
  border: none;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-weight: 600;
}

.register-link,
.forgot-password {
  color: var(--accent-color);
  font-weight: 500;
}

/* Game Detail Page (we'll create this file separately) */
/* Coming soon */

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .hero-content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 992px) {
  .hero-section {
    padding: 7rem 0 3rem;
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 3rem;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.75rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .feature-item {
    margin-bottom: 2rem;
  }

  .footer {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-about,
  .footer-links,
  .footer-newsletter {
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    margin-top: 1rem;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  /* Responsif */
  @media (max-width: 768px) {
    .page-header {
      padding: 80px 0 40px;
    }
    .account-details {
      padding: 10px;
    }
  }
}
