/* ============================================
   ANTIROTE DESIGN SYSTEM - COMPONENTS
   ============================================ */

/* ============================================
   BUTTONS (CTA Hierarchy)
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: inherit;
  white-space: nowrap;
}

/* Primary Button - Main CTA */
.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

/* Secondary Button - Alternative Actions */
.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.btn-secondary:active:not(:disabled) {
  transform: translateY(0);
}

/* Tertiary Button - Text Link Style */
.btn-tertiary {
  background-color: transparent;
  color: var(--primary);
  border: none;
  padding: 8px 16px;
  box-shadow: none;
}

.btn-tertiary:hover:not(:disabled) {
  background-color: rgba(220, 38, 38, 0.1);
  color: var(--primary-dark);
  transform: none;
  box-shadow: none;
}

/* Ghost Button - Cancel/Dismiss */
.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover:not(:disabled) {
  background-color: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-light);
}

/* Button Sizes */
.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
}

.btn-full {
  width: 100%;
}

/* Disabled State */
.btn:disabled,
.btn-disabled {
  background-color: var(--disabled);
  color: var(--text-muted);
  border-color: var(--border);
  cursor: not-allowed;
  opacity: 0.6;
  transform: none !important;
  box-shadow: none !important;
}

/* ============================================
   CARDS (Unified System)
   ============================================ */

.card {
  background-color: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.2s ease;
}

/* Standard Card - Default */
.card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* Elevated Card - Important Content */
.card-elevated {
  background-color: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.card-elevated:hover {
  box-shadow: var(--shadow-md);
}

/* Session Card - Special Red Gradient */
.card-session {
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  color: white;
  border: none;
  box-shadow: var(--shadow-md);
}

.card-session:hover {
  transform: none;
  box-shadow: var(--shadow-lg);
}

.card-session h1,
.card-session h2,
.card-session h3,
.card-session h4,
.card-session p {
  color: white;
}

.card-session .text-secondary {
  color: rgba(255, 255, 255, 0.9);
}

/* Coach Card - Selection Cards */
.card-coach {
  text-align: center;
  cursor: pointer;
  padding: 32px 24px;
}

.card-coach:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.card-coach.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.card-coach.disabled:hover {
  transform: none;
  border-color: var(--border);
}

/* Compact Card - Less Padding */
.card-compact {
  padding: 16px;
}

/* ============================================
   INPUTS (Unified System)
   ============================================ */

.input-group {
  margin-bottom: 24px;
}

.input-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  line-height: 1.5;
}

.input-field {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 16px;
  font-family: inherit;
  line-height: 1.5;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.input-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.input-field::placeholder {
  color: var(--text-muted);
}

.input-field:disabled {
  background-color: var(--bg-elevated);
  color: var(--text-muted);
  cursor: not-allowed;
}

select.input-field {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.input-help {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1.5;
}

/* ============================================
   AVATARS
   ============================================ */

.coach-avatar {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.coach-avatar-img {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  margin: 0 auto 16px;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-coach:hover .coach-avatar-img {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

.coach-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.coach-domain {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* ============================================
   BADGES & STATUS
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.badge-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.badge-primary {
  background-color: rgba(220, 38, 38, 0.1);
  color: var(--primary);
}

.badge-muted {
  background-color: var(--bg-elevated);
  color: var(--text-secondary);
}

.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--accent);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* ============================================
   SESSION ITEMS
   ============================================ */

.session-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  background-color: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

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

.session-item-completed {
  background-color: rgba(16, 185, 129, 0.03);
  border-left: 3px solid var(--success);
}

.session-item-upcoming {
  border-left: 3px solid var(--primary);
}

.session-item-content {
  flex: 1;
}

.session-item-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.session-item-meta {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.session-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ============================================
   CURRICULUM ITEMS
   ============================================ */

.curriculum-item {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.curriculum-item-completed {
  background-color: rgba(16, 185, 129, 0.05);
  border-left: 3px solid var(--success);
}

.curriculum-item-upcoming {
  border-left: 3px solid var(--primary);
}

.curriculum-item-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.curriculum-item-info {
  flex: 1;
}

.curriculum-item-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.curriculum-item-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 4px;
}

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

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

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

.modal {
  background-color: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}

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

.modal-header {
  margin-bottom: 24px;
}

.modal-header h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.modal-header p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 16px 24px;
  background-color: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  animation: slideInRight 0.3s ease-out;
  max-width: 400px;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast-success {
  border-left: 4px solid var(--success);
}

.toast-error {
  border-left: 4px solid var(--danger);
}

.toast-info {
  border-left: 4px solid var(--primary);
}

/* ============================================
   EMPTY STATES
   ============================================ */

.empty-state {
  text-align: center;
  padding: 48px 24px;
}

.empty-state-icon {
  font-size: 48px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.empty-state h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.empty-state p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

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

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

.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }
.mt-xl { margin-top: 32px; }

.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 24px; }
.mb-xl { margin-bottom: 32px; }

.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }

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

@media (max-width: 768px) {
  .btn {
    padding: 10px 20px;
    font-size: 15px;
  }
  
  .card {
    padding: 20px;
  }
  
  .modal {
    padding: 24px;
    margin: 16px;
  }
  
  .session-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .session-item-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
