/* ============================================
   DUDE THEFT WARS MOD APK - MOBILE FIRST CSS
   ============================================ */

/* CSS Variables */
:root {
  --primary: #ff6b35;
  --primary-dark: #e55a2b;
  --secondary: #1a1a2e;
  --accent: #ffd700;
  --text: #333333;
  --text-light: #666666;
  --bg: #ffffff;
  --bg-light: #f8f9fa;
  --border: #e0e0e0;
  --success: #28a745;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.15em;
}

.icon-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--secondary);
  z-index: 1000;
  box-shadow: var(--shadow);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

.nav-menu {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--secondary);
  padding: 16px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.nav-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav-menu a {
  display: block;
  color: white;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  padding: 100px 0 60px;
  background: linear-gradient(135deg, var(--secondary) 0%, #16213e 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(600px 200px at 15% 10%, rgba(255, 214, 102, 0.25), transparent 70%),
    radial-gradient(500px 240px at 85% 20%, rgba(255, 107, 53, 0.2), transparent 70%),
    url("data:image/svg+xml,%3Csvg width='160' height='160' viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.08'%3E%3Cpath d='M20 20h40v40H20zM100 20h40v40h-40zM20 100h40v40H20zM100 100h40v40h-40z'/%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Ccircle cx='80' cy='80' r='18'/%3E%3Ccircle cx='80' cy='80' r='4'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 53, 0.2);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 107, 53, 0.3);
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-title span {
  color: var(--primary);
}

.hero-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
  max-width: 600px;
}

.hero-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.stat-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-image {
  margin-top: 40px;
  position: relative;
}

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

.app-icon-wrapper {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid white;
}

.app-icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 60px 0;
}

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

.section-label {
  display: inline-block;
  background: rgba(255, 107, 53, 0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 12px;
}

.section-description {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

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

/* ============================================
   FEATURES GRID
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.feature-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: white;
  background:
    radial-gradient(120% 120% at 20% 20%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow:
    0 8px 18px rgba(255, 107, 53, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.feature-icon .icon {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.feature-card:hover .feature-icon {
  transform: translateY(-1px) scale(1.02);
  box-shadow:
    0 12px 24px rgba(255, 107, 53, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
}

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

/* ============================================
   INFO TABLE
   ============================================ */
.info-table-wrapper {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.info-table th {
  background: var(--bg-light);
  font-weight: 600;
  color: var(--secondary);
  width: 40%;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

.info-table td {
  color: var(--text-light);
}

/* ============================================
   SCREENSHOTS
   ============================================ */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.screenshot-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.screenshot-item:hover {
  transform: scale(1.02);
}

.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   DOWNLOAD SECTION
   ============================================ */
.download-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  text-align: center;
  padding: 60px 0;
}

.download-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.download-text {
  opacity: 0.9;
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.download-btn-large {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: white;
  color: var(--primary);
  padding: 18px 40px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.download-btn-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.download-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--bg-light);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 20px 20px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================
   CONTENT SECTION
   ============================================ */
.content-block {
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.content-block h3 {
  font-size: 1.25rem;
  color: var(--secondary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.content-block ul {
  padding-left: 20px;
  list-style: disc;
}

.content-block li {
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.7;
}

.keyword-highlight {
  background: rgba(255, 107, 53, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--primary);
  font-weight: 500;
}

/* ============================================
   DOWNLOAD PAGE SPECIFIC
   ============================================ */
.download-page {
  padding-top: 80px;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--secondary) 0%, #16213e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 40px;
}

.download-card {
  background: white;
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: var(--shadow-lg);
}

.download-card-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.download-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.download-card h1 {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 8px;
}

.download-card .version {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.download-progress {
  margin: 24px 0;
}

.progress-bar {
  height: 8px;
  background: var(--bg-light);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.85rem;
  color: var(--text-light);
}

.download-timer {
  background: var(--bg-light);
  padding: 16px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
}

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

.timer-count {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

/* ============================================
   MODAL / POPUP STYLES
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: var(--radius);
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  transition: var(--transition);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--border);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-body h4 {
  color: var(--secondary);
  margin: 20px 0 10px;
  font-size: 1rem;
}

.modal-body h4:first-child {
  margin-top: 0;
}

.modal-body p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

.modal-body ul {
  padding-left: 20px;
  list-style: disc;
  margin-bottom: 16px;
}

.modal-body li {
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.6;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

.btn-acknowledge {
  background: var(--primary);
  color: white;
  padding: 12px 32px;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-acknowledge:hover {
  background: var(--primary-dark);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--secondary);
  color: white;
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: white;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 0;
  transition: var(--transition);
  font-size: 0.9rem;
}

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

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

/* ============================================
   TABLET & DESKTOP STYLES
   ============================================ */
@media (min-width: 640px) {
  .container {
    padding: 0 24px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .screenshots-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    padding: 0;
    display: flex;
    gap: 8px;
  }

  .nav-menu a {
    padding: 8px 16px;
  }

  .hero {
    padding: 140px 0 80px;
  }

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

  .hero-image {
    margin-top: 0;
  }

  .section {
    padding: 80px 0;
  }

  .download-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .screenshots-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 24px;
}

.mb-4 {
  margin-bottom: 24px;
}
