/* ============================================
   TUTORIAL MODAL
   App guide and feature explanations
   ============================================ */

/* Tutorial Button in Header */
.tutorial-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  padding: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 8px;
}

.tutorial-btn:hover {
  color: #00f0ff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  transform: scale(1.1);
}

/* Tutorial Modal Overlay */
.tutorial-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

/* Modal Content */
.tutorial-content {
  background: linear-gradient(135deg, #161b22 0%, #0d1117 100%);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 20px;
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 
    0 0 30px rgba(0, 240, 255, 0.1),
    0 20px 60px rgba(0, 0, 0, 0.5);
  animation: tutorialSlideIn 0.4s ease;
}

@keyframes tutorialSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Modal Header */
.tutorial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tutorial-header h2 {
  font-size: 1.5rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tutorial-header h2 i {
  color: #00f0ff;
}

.tutorial-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tutorial-close-btn:hover {
  background: rgba(255, 68, 68, 0.2);
  border-color: #ff4444;
  color: #ff4444;
}

/* Tutorial Body */
.tutorial-body {
  color: var(--text-secondary);
  line-height: 1.7;
}

.tutorial-intro {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(0, 240, 255, 0.05);
  border-left: 3px solid #00f0ff;
  border-radius: 0 8px 8px 0;
}

.tutorial-section {
  margin-bottom: 1.5rem;
}

.tutorial-section h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tutorial-section h3 i {
  color: #00f0ff;
  font-size: 1rem;
}

.tutorial-section h3 .badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff0055, #d600ff);
  color: #fff;
  font-weight: 600;
}

.tutorial-section p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

/* Hint text for tool section (replaces inline style) */
.tutorial-hint {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
  background: rgba(0, 240, 255, 0.05);
}

.feature-card h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-card h4 i {
  color: #00f0ff;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Why Use Section */
.why-use-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.why-use-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.why-use-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #00ff9d;
  font-weight: bold;
}

/* Scrollbar Styling */
.tutorial-content::-webkit-scrollbar {
  width: 6px;
}

.tutorial-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.tutorial-content::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.3);
  border-radius: 3px;
}

.tutorial-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .tutorial-content {
    padding: 1.5rem;
    margin: 1rem;
    max-height: 90vh;
  }
  
  .tutorial-header h2 {
    font-size: 1.2rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   TOOL SUB-MODAL (Detailed Tutorial)
   ============================================ */

/* Make feature cards clickable */
.feature-card {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '→';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(0, 240, 255, 0.4);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.feature-card:hover::after {
  color: #00f0ff;
  transform: translateY(-50%) translateX(3px);
}

/* Tool Sub-Modal Overlay */
.tool-submodal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.tool-submodal.active {
  opacity: 1;
  visibility: visible;
}

/* Sub-Modal Content */
.submodal-content {
  background: linear-gradient(135deg, #161b22 0%, #0d1117 100%);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 20px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem;
  animation: submodalSlideIn 0.3s ease;
}

@keyframes submodalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Sub-Modal Header */
.submodal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.submodal-header h3 {
  font-size: 1.4rem;
  color: #00f0ff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.submodal-back-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.85rem;
}

.submodal-back-btn:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: #00f0ff;
  color: #00f0ff;
}

/* Tutorial Steps */
.tutorial-steps {
  counter-reset: step;
}

.tutorial-step {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border-left: 3px solid rgba(0, 240, 255, 0.3);
  transition: all 0.3s ease;
}

.tutorial-step:hover {
  background: rgba(0, 240, 255, 0.05);
  border-left-color: #00f0ff;
}

.step-number {
  background: linear-gradient(135deg, #00f0ff, #0099ff);
  color: #000;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.step-content h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Tips Section */
.submodal-tips {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(0, 240, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.submodal-tips h4 {
  color: #00f0ff;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.submodal-tips p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}
