/* tip-notification.css - Modern Tips System Styles */

/* ===== TIP NOTIFICATION ===== */
.tip-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 380px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  overflow: hidden;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.tip-notification.tip-exit {
  animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

.tip-header {
  background: linear-gradient(45deg, #667eea, #764ba2);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}

.tip-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.tip-title i {
  font-size: 1.2rem;
}

.tip-actions {
  display: flex;
  gap: 8px;
}

.tip-actions button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.tip-actions button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.tip-content {
  padding: 20px;
}

.tip-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: inline-block;
}

.tip-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #2d3748;
  margin-bottom: 16px;
}

.tip-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tip-tag {
  background: #f0f0f0;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  color: #667eea;
  font-weight: 500;
}

.tip-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.tip-timer {
  font-size: 0.75rem;
  color: #718096;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tip-close-btn {
  background: none;
  border: none;
  color: #667eea;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 20px;
  transition: all 0.2s;
}

.tip-close-btn:hover {
  background: #f0f0f0;
}

/* ===== TIP MODAL (Detailed View) ===== */
.tip-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.tip-modal {
  background: white;
  border-radius: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  animation: scaleIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.tip-modal-header {
  background: linear-gradient(45deg, #667eea, #764ba2);
  padding: 20px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 30px 30px 0 0;
}

.tip-modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
}

.tip-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.tip-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.tip-modal-body {
  padding: 25px;
}

.tip-modal-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 15px;
}

.tip-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 15px;
  color: #1e293b;
}

.tip-modal-content {
  line-height: 1.8;
  color: #4a5568;
  margin: 20px 0;
}

.tip-modal-content ul, 
.tip-modal-content ol {
  margin: 15px 0;
  padding-left: 20px;
}

.tip-modal-content li {
  margin: 8px 0;
}

.tip-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.tip-modal-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tip-modal-btn.primary {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
}

.tip-modal-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.tip-modal-btn.secondary {
  background: #f0f0f0;
  color: #667eea;
}

.tip-modal-btn.secondary:hover {
  background: #e2e8f0;
}

/* ===== DARK MODE ===== */
@media (prefers-color-scheme: dark) {
  .tip-notification {
    background: rgba(30, 41, 59, 0.98);
    border-color: rgba(102, 126, 234, 0.3);
  }
  
  .tip-text {
    color: #e2e8f0;
  }
  
  .tip-tag {
    background: #1e293b;
    color: #a78bfa;
  }
  
  .tip-footer {
    border-top-color: #334155;
  }
  
  .tip-modal {
    background: #1e293b;
  }
  
  .tip-modal-title {
    color: #e2e8f0;
  }
  
  .tip-modal-content {
    color: #cbd5e1;
  }
  
  .tip-modal-btn.secondary {
    background: #0f172a;
    color: #a78bfa;
  }
  
  .tip-close-btn:hover {
    background: #1e293b;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .tip-notification {
    left: 20px;
    right: 20px;
    max-width: none;
    bottom: 10px;
  }
  
  .tip-modal {
    width: 95%;
    max-height: 85vh;
  }
  
  .tip-modal-actions {
    flex-direction: column;
  }
}