/* Harad Games - Shared Styles */

/* ============================================
   Reset & Base
   ============================================ */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 100%);
  min-height: 100vh;
  color: white;
}

/* ============================================
   Layout
   ============================================ */

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

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

/* ============================================
   Typography
   ============================================ */

.title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #f39c12, #e74c3c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-green {
  background: linear-gradient(90deg, #00d26a, #00a854);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-rainbow {
  background: linear-gradient(90deg, #f39c12, #e74c3c, #9b59b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: #888;
  font-size: 1.1rem;
  text-align: center;
}

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

.text-muted {
  color: #888;
}

/* ============================================
   Cards
   ============================================ */

.card {
  background: linear-gradient(145deg, #252550, #1a1a3e);
  border-radius: 16px;
  padding: 25px;
  border: 1px solid #333;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.card:hover {
  border-color: #f39c12;
}

.card-highlight {
  border-color: #00d26a;
  background: linear-gradient(145deg, #1a3a2a, #152520);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
}

.btn-success {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: white;
}

.btn-danger {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid #444;
  color: white;
}

.btn-outline:hover {
  border-color: #00d26a;
  background: rgba(0, 210, 106, 0.1);
}

.btn-outline-danger {
  background: transparent;
  border: 2px solid #ff6b6b;
  color: #ff6b6b;
}

.btn-outline-danger:hover {
  background: #ff6b6b;
  color: white;
}

.btn-small {
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 1.2rem;
  border-radius: 8px;
}

/* ============================================
   Overlay & Modal
   ============================================ */

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.3s ease;
}

.modal {
  background: linear-gradient(145deg, #2c3e50, #1a252f);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes flashIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================
   Progress Bar
   ============================================ */

.progress-bar {
  width: 100%;
  height: 12px;
  background: #333;
  border-radius: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.3s ease;
  background: linear-gradient(90deg, #00d26a, #ff6b6b);
}

/* ============================================
   Grid
   ============================================ */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* ============================================
   Utility Colors
   ============================================ */

.color-green { color: #00d26a; }
.color-red { color: #ff6b6b; }
.color-yellow { color: #ffd93d; }
.color-blue { color: #3498db; }
.color-purple { color: #9b59b6; }

/* ============================================
   Home Button
   ============================================ */

.home-btn {
  position: fixed;
  top: 15px;
  left: 15px;
  padding: 10px 16px;
  background: rgba(30, 30, 60, 0.9);
  border: 2px solid #444;
  border-radius: 10px;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  z-index: 50;
  transition: all 0.2s;
}

.home-btn:hover {
  border-color: #f39c12;
  background: rgba(50, 50, 80, 0.95);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 600px) {
  .title {
    font-size: 1.8rem;
  }

  .container {
    padding: 15px;
  }

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

  .modal {
    padding: 25px;
  }

  .btn {
    padding: 12px 20px;
  }
}
