/* ========================================
   LUMINOS MC - STYLE.CSS
   Gaming/Community Dark Theme
   ======================================== */

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
  color: #e0e6ed;
  min-height: 100vh;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.header {
  background: rgba(15, 20, 35, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px 30px;
  border-bottom: 2px solid #00f0ff;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.logo {
  font-size: 2em;
  font-weight: bold;
  color: #00f0ff;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
  cursor: pointer;
  transition: transform 0.3s ease;
}

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

.nav {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-btn {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid #00f0ff;
  color: #00f0ff;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 14px;
}

.nav-btn:hover,
.nav-btn.active {
  background: #00f0ff;
  color: #0a0e27;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 240, 255, 0.3);
}

.user-info {
  color: #00f0ff;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-logout {
  background: rgba(255, 51, 102, 0.1);
  border: 1px solid #ff3366;
  color: #ff3366;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.btn-logout:hover {
  background: #ff3366;
  color: white;
}

/* ========================================
   CONTAINER & PAGES
   ======================================== */

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

.page {
  display: none;
  animation: fadeIn 0.3s ease;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   LOGIN PAGE
   ======================================== */

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.login-card {
  max-width: 400px;
  width: 100%;
}

.login-card h2 {
  color: #00f0ff;
  text-align: center;
  margin-bottom: 30px;
}

.hint {
  text-align: center;
  margin-top: 15px;
  color: #8899aa;
  font-size: 0.9em;
}

.hint a {
  color: #00f0ff;
  text-decoration: none;
  cursor: pointer;
}

.hint a:hover {
  text-decoration: underline;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  background: rgba(0, 0, 0, 0.6);
  padding: 60px 30px;
  text-align: center;
  border-radius: 12px;
  margin-bottom: 40px;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.hero h2 {
  font-size: 2.5em;
  color: #00f0ff;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2em;
  margin: 10px 0;
  line-height: 1.6;
}

/* ========================================
   CARDS
   ======================================== */

.card {
  background: rgba(20, 25, 45, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card h3 {
  color: #00f0ff;
  margin-bottom: 20px;
  font-size: 1.5em;
}

/* ========================================
   FEATURES LIST
   ======================================== */

.features-list {
  list-style: none;
  margin: 20px 0;
}

.features-list li {
  margin: 15px 0;
  padding-left: 30px;
  position: relative;
  font-size: 1.1em;
}

.features-list li:before {
  content: "⚡";
  position: absolute;
  left: 0;
  font-size: 1.2em;
}

/* ========================================
   STORE GRID
   ======================================== */

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.store-card {
  background: rgba(20, 25, 45, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 12px;
  padding: 25px;
  position: relative;
  transition: all 0.3s ease;
}

.store-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.2);
}

.store-card.featured {
  border: 2px solid #00f0ff;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
}

.badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #00f0ff;
  color: #0a0e27;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: bold;
}

.store-card h4 {
  color: #00f0ff;
  font-size: 1.5em;
  margin-bottom: 15px;
}

.store-card ul {
  list-style: none;
  margin: 20px 0;
}

.store-card li {
  margin: 10px 0;
  padding-left: 20px;
  position: relative;
}

.store-card li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #00f0ff;
}

.price {
  font-size: 2em;
  font-weight: bold;
  color: #00f0ff;
  margin: 20px 0;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.btn-primary {
  background: linear-gradient(135deg, #00f0ff 0%, #00c0cc 100%);
  color: #0a0e27;
  width: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 240, 255, 0.4);
}

.btn-warning {
  background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
  color: white;
}

.btn-warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 165, 0, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, #ff3366 0%, #cc0044 100%);
  color: white;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 51, 102, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, #00ff64 0%, #00cc50 100%);
  color: #0a0e27;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 255, 100, 0.4);
}

/* ========================================
   FORMS
   ======================================== */

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #b0c4de;
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  background: rgba(10, 15, 30, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 8px;
  color: #e0e6ed;
  font-size: 14px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #00f0ff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}

/* ========================================
   POSTS
   ======================================== */

.post {
  background: rgba(10, 15, 30, 0.6);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 15px;
  border-left: 4px solid #00f0ff;
  transition: all 0.3s ease;
}

.post:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(0, 240, 255, 0.2);
}

.post h4 {
  color: #00f0ff;
  margin-bottom: 10px;
}

.post-meta {
  color: #8899aa;
  font-size: 0.9em;
  margin-top: 10px;
}

.post-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.post-replies {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 240, 255, 0.2);
}

.reply {
  background: rgba(0, 240, 255, 0.05);
  padding: 15px;
  border-left: 3px solid #00f0ff;
  border-radius: 8px;
  margin: 10px 0;
}

.reply-meta {
  color: #8899aa;
  font-size: 0.85em;
  margin-top: 8px;
}

.post-preview {
  background: rgba(0, 240, 255, 0.05);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 3px solid #00f0ff;
}

/* ========================================
   ADMIN TABS
   ======================================== */

.admin-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.tab-btn {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid #00f0ff;
  color: #00f0ff;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 14px;
}

.tab-btn:hover,
.tab-btn.active {
  background: #00f0ff;
  color: #0a0e27;
}

.admin-tab {
  display: none;
  animation: fadeIn 0.3s ease;
}

.admin-tab.active {
  display: block;
}

/* ========================================
   ADMIN STATS
   ======================================== */

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

.stat-card {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1) 0%, rgba(0, 192, 204, 0.1) 100%);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  text-align: center;
}

.stat-card h3 {
  color: #00f0ff;
  font-size: 3em;
  margin-bottom: 10px;
}

.stat-card p {
  color: #b0c4de;
  font-size: 1.1em;
}

/* ========================================
   LISTS (Roles/Users/Products)
   ======================================== */

.list-item {
  background: rgba(10, 15, 30, 0.6);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 15px;
  border-left: 4px solid #00f0ff;
  transition: all 0.3s ease;
}

.list-item:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(0, 240, 255, 0.2);
}

.list-item h4 {
  color: #00f0ff;
  margin-bottom: 8px;
}

.list-item-meta {
  color: #8899aa;
  font-size: 0.9em;
  margin: 5px 0;
}

.list-item-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.role-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 600;
  margin: 5px 0;
  background: linear-gradient(135deg, #00f0ff 0%, #00c0cc 100%);
  color: #0a0e27;
}

.permission-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 0.75em;
  font-weight: 600;
  margin: 3px;
  background: rgba(0, 240, 255, 0.2);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

/* ========================================
   MODAL
   ======================================== */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: rgba(20, 25, 45, 0.98);
  border: 2px solid #00f0ff;
  border-radius: 12px;
  padding: 30px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h3 {
  color: #00f0ff;
  font-size: 1.5em;
}

.close-btn {
  background: transparent;
  border: none;
  color: #00f0ff;
  cursor: pointer;
  font-size: 2em;
  line-height: 1;
  transition: transform 0.2s ease;
}

.close-btn:hover {
  transform: scale(1.2);
}

/* ========================================
   ALERT
   ======================================== */

.alert {
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid;
  display: none;
  animation: slideDown 0.3s ease;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 3000;
  min-width: 300px;
  max-width: 500px;
}

.alert.active {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background: rgba(0, 255, 100, 0.1);
  border-color: #00ff64;
  color: #00ff64;
}

.alert-error {
  background: rgba(255, 51, 102, 0.1);
  border-color: #ff3366;
  color: #ff3366;
}

.alert-warning {
  background: rgba(255, 165, 0, 0.1);
  border-color: #ffa500;
  color: #ffa500;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: rgba(15, 20, 35, 0.95);
  border-top: 2px solid #00f0ff;
  padding: 30px 20px;
  text-align: center;
  margin-top: 60px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: center;
  }

  .hero h2 {
    font-size: 1.8em;
  }

  .store-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-tabs {
    flex-direction: column;
  }

  .tab-btn {
    width: 100%;
  }

  .alert {
    right: 10px;
    left: 10px;
    min-width: auto;
  }
}