/* Enhanced Download Page Styles */
.downloads-page-enhanced {
  --primary-color: #667eea;
  --secondary-color: #d4a574;
  --success-color: #4CAF50;
  --text-color: #ffffff;
  --text-light: #b0b0b0;
  --background-light: #2c2c2c;
  --background-dark: #1a1a1a;
  --border-color: #444444;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.4);
  --border-radius: 8px;
}

/* Hero Section */
.download-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.game-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-item {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
}

.info-label {
  font-weight: 600;
  margin-right: 12px;
  min-width: 120px;
}

.info-value {
  color: var(--secondary-color);
  font-weight: 700;
}

.game-preview {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.preview-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-preview:hover .preview-overlay {
  opacity: 1;
}

.game-preview:hover .preview-image {
  transform: scale(1.05);
}

.play-button {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-button:hover {
  background: var(--secondary-color);
  transform: scale(1.1);
}

.play-button i {
  font-size: 2rem;
  color: white;
  margin-left: 4px;
}

/* Downloads Main Section */
.downloads-main {
  padding: 80px 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
  position: relative;
}

.downloads-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(212, 165, 116, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.container {
  position: relative;
  z-index: 2;
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1rem;
}

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

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.download-card {
  background: var(--background-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  border: 2px solid var(--border-color);
  backdrop-filter: blur(10px);
  position: relative;
}

.download-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border-color: var(--primary-color);
}

.download-card.premium {
  border-color: var(--secondary-color);
  position: relative;
}

.download-card.premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.card-header {
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--background-dark);
}

.provider-logo .icon {
  width: 60px;
  height: 60px;
  color: var(--primary-color);
}

.provider-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 4px;
}

.provider-speed {
  color: var(--text-light);
  font-size: 0.9rem;
}

.recommended-badge {
  background: var(--success-color);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 8px;
  display: inline-block;
}

.card-body {
  padding: 30px;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-list li {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  color: var(--text-color);
}

.benefits-list i {
  color: var(--success-color);
  margin-right: 12px;
  font-size: 1.1rem;
}

.card-footer {
  padding: 30px;
  padding-top: 0;
}

.btn-download {
  width: 100%;
  padding: 15px 30px;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
}

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

.btn-secondary {
  background: transparent;
  color: var(--text-color);
  border: 2px solid var(--border-color);
}

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

/* Security Notice */
.security-notice {
  background: var(--background-light);
  border: 2px solid var(--success-color);
  border-radius: var(--border-radius);
  padding: 30px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.notice-icon {
  flex-shrink: 0;
}

.notice-icon i {
  font-size: 2.5rem;
  color: var(--success-color);
}

.notice-content h4 {
  color: var(--text-color);
  margin-bottom: 12px;
  font-weight: 700;
}

.notice-content p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}

.security-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.security-features li {
  display: flex;
  align-items: center;
  color: var(--text-color);
  font-weight: 600;
}

.security-features i {
  color: var(--success-color);
  margin-right: 8px;
}

/* Installation Guide */
.installation-guide {
  padding: 80px 0;
  background: linear-gradient(45deg, #2c2c2c 0%, #1a1a1a 100%);
  position: relative;
}

.installation-guide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/assets/images/patterns/tech-pattern.png'), 
    linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(212, 165, 116, 0.05) 100%);
  background-size: 400px 400px, cover;
  background-repeat: repeat, no-repeat;
  opacity: 0.3;
  pointer-events: none;
}

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

.step-card {
  background: rgba(44, 44, 44, 0.9);
  border-radius: var(--border-radius);
  padding: 30px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  background: rgba(44, 44, 44, 0.95);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
}

.step-content h3 {
  color: var(--text-color);
  margin-bottom: 12px;
  margin-top: 15px;
}

.step-content p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
}

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

/* System Requirements */
.system-requirements {
  padding: 80px 0;
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.system-requirements::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/assets/images/home/gamefeatures_bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  pointer-events: none;
}

.system-requirements::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(118, 75, 162, 0.8) 0%, rgba(102, 126, 234, 0.8) 100%);
  pointer-events: none;
}

.system-requirements .section-title,
.system-requirements .section-subtitle {
  color: white;
}

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

.requirements-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 30px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  transition: all 0.3s ease;
  z-index: 1;
}

.requirements-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.requirements-card.recommended {
  border-color: var(--secondary-color);
}

.requirements-card .card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: white;
}

.requirements-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.requirements-list li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.requirements-list li:last-child {
  border-bottom: none;
}

.req-label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.req-value {
  color: white;
  font-weight: 700;
}

.recommended .recommended-badge {
  position: absolute;
  top: -15px;
  right: 20px;
  background: var(--secondary-color);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Game Features */
.game-features {
  padding: 80px 0;
  background: linear-gradient(-45deg, #1a1a1a 0%, #2c2c2c 50%, #1a1a1a 100%);
  position: relative;
}

.game-features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 70% 30%, rgba(212, 165, 116, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

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

.feature-card {
  text-align: center;
  padding: 40px 20px;
  background: rgba(44, 44, 44, 0.9);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  background: rgba(44, 44, 44, 0.95);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--secondary-color);
  transform: scale(1.1);
}

.feature-icon i {
  font-size: 2rem;
  color: white;
}

.feature-card h3 {
  color: var(--text-color);
  margin-bottom: 12px;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* FAQ Section */
.download-faq {
  padding: 80px 0;
  background: linear-gradient(180deg, #2c2c2c 0%, #1a1a1a 100%);
  position: relative;
}

.download-faq::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(45deg, transparent 30%, rgba(102, 126, 234, 0.03) 50%, transparent 70%),
    linear-gradient(-45deg, transparent 30%, rgba(212, 165, 116, 0.03) 50%, transparent 70%);
  pointer-events: none;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--background-light);
  border-radius: var(--border-radius);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-hover);
}

.faq-question {
  width: 100%;
  padding: 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
}

.faq-question:hover {
  background: var(--background-dark);
  color: var(--primary-color);
}

.faq-question:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.faq-question i {
  transition: transform 0.3s ease;
  color: var(--primary-color);
  font-size: 1rem;
}

.faq-question[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.faq-question[aria-expanded="true"] {
  background: var(--background-dark);
  color: var(--primary-color);
}

/* Bootstrap Collapse Classes */
.collapse {
  display: none;
}

.collapse.show {
  display: block;
}

.collapsing {
  position: relative;
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
}

.faq-answer {
  border-top: 1px solid var(--border-color);
  background: var(--background-dark);
}

.faq-content {
  padding: 24px;
  color: var(--text-light);
  line-height: 1.6;
}

.faq-content p {
  margin-bottom: 16px;
}

.faq-content p:last-child {
  margin-bottom: 0;
}

.faq-content strong {
  color: var(--text-color);
}

.faq-content a {
  color: var(--primary-color);
  text-decoration: none;
}

.faq-content a:hover {
  text-decoration: underline;
}

/* Video Modal */
.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .download-grid {
    grid-template-columns: 1fr;
  }
  
  .requirements-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .security-notice {
    flex-direction: column;
    text-align: center;
  }
  
  .security-features {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .card-header,
  .card-body,
  .card-footer {
    padding: 20px;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.scale-in {
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.5s ease;
}

.scale-in.visible {
  transform: scale(1);
  opacity: 1;
}

/* Animated Background Elements */
@keyframes float {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg); 
  }
  50% { 
    transform: translateY(-20px) rotate(5deg); 
  }
}

@keyframes pulse-glow {
  0%, 100% { 
    opacity: 0.5; 
  }
  50% { 
    opacity: 0.8; 
  }
}

.downloads-main::before {
  animation: pulse-glow 4s ease-in-out infinite;
}

.game-features::before {
  animation: pulse-glow 6s ease-in-out infinite reverse;
}
