/**
 * FluxCSS Advanced Components
 * Professional, modern UI components with advanced styling
 */

/* Advanced Cards */
.my-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.my-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.my-card:hover {
  transform: translateY(-5px);
  border-color: rgba(102, 126, 234, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.my-card:hover::before {
  opacity: 1;
}

.my-card-elevated {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.my-card-elevated:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.my-card-flat {
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.my-card-interactive {
  cursor: pointer;
  user-select: none;
}

.my-card-interactive:hover {
  transform: translateY(-8px) scale(1.02);
}

.my-card-interactive:active {
  transform: translateY(-2px) scale(0.98);
}

.my-card-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.my-card-neu {
  background: #e0e0e0;
  box-shadow: 
    20px 20px 60px #bebebe,
    -20px -20px 60px #ffffff;
  border: none;
}

.my-card-neu:hover {
  box-shadow: 
    25px 25px 75px #bebebe,
    -25px -25px 75px #ffffff;
}

/* Advanced Buttons */
.my-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.my-btn:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.my-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.my-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.my-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.my-btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.my-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.my-btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.my-btn-outline {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
}

.my-btn-outline:hover:not(:disabled) {
  background: #667eea;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.my-btn-ghost {
  background: transparent;
  color: #a0a0a0;
  border: 1px solid transparent;
}

.my-btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: translateY(-2px);
}

.my-btn-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: none;
  position: relative;
  overflow: hidden;
}

.my-btn-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.my-btn-gradient:hover::before {
  left: 100%;
}

.my-btn-neu {
  background: #e0e0e0;
  color: #333;
  border: none;
  box-shadow: 
    8px 8px 16px #bebebe,
    -8px -8px 16px #ffffff;
}

.my-btn-neu:hover:not(:disabled) {
  box-shadow: 
    4px 4px 8px #bebebe,
    -4px -4px 8px #ffffff;
  transform: translateY(1px);
}

.my-btn-neu:active:not(:disabled) {
  box-shadow: 
    inset 4px 4px 8px #bebebe,
    inset -4px -4px 8px #ffffff;
  transform: translateY(2px);
}

/* Button Sizes */
.my-btn-xs {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  line-height: 1rem;
  border-radius: 0.375rem;
}

.my-btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.125rem;
  border-radius: 0.4375rem;
}

.my-btn-md {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  border-radius: 0.5rem;
}

.my-btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  line-height: 1.5rem;
  border-radius: 0.625rem;
}

.my-btn-xl {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  border-radius: 0.75rem;
}

/* Advanced Forms */
.my-input {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.my-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: rgba(255, 255, 255, 0.1);
}

.my-input::placeholder {
  color: #a0a0a0;
}

.my-input-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.my-input-success {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.my-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.my-error-message {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 0.25rem;
}

.my-help-text {
  font-size: 0.75rem;
  color: #a0a0a0;
  margin-top: 0.25rem;
}

/* Advanced Modals */
.my-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.my-modal {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.my-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.my-modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.my-modal-close {
  background: none;
  border: none;
  color: #a0a0a0;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
}

.my-modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.my-modal-body {
  color: #a0a0a0;
  line-height: 1.6;
}

.my-modal-footer {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Advanced Navigation */
.my-navbar {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.my-navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.my-navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.my-navbar-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.my-navbar-link {
  color: #a0a0a0;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.my-navbar-link:hover {
  color: #667eea;
}

.my-navbar-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  transition: width 0.3s ease;
}

.my-navbar-link:hover::after {
  width: 100%;
}

.my-navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
}

.my-navbar-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu */
.my-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.my-mobile-menu-open {
  transform: translateX(0);
}

.my-mobile-menu-item {
  display: block;
  padding: 1rem 2rem;
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  font-weight: 500;
}

.my-mobile-menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #667eea;
  padding-left: 2.5rem;
}

.my-mobile-menu-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
}

.my-mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile Responsive Navigation */
@media (max-width: 768px) {
  .my-navbar-toggle {
    display: block;
  }
  
  .my-navbar-nav {
    display: none;
  }
}

@media (min-width: 769px) {
  .my-navbar-toggle {
    display: none;
  }
  
  .my-navbar-nav {
    display: flex;
  }
}

/* Advanced Alerts */
.my-alert {
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

.my-alert::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.my-alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.my-alert-success::before {
  background: #22c55e;
}

.my-alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

.my-alert-warning::before {
  background: #f59e0b;
}

.my-alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.my-alert-error::before {
  background: #ef4444;
}

.my-alert-info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #3b82f6;
}

.my-alert-info::before {
  background: #3b82f6;
}

.my-alert-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.my-alert-content {
  flex: 1;
}

.my-alert-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.my-alert-message {
  font-size: 0.875rem;
  opacity: 0.9;
}

.my-alert-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.my-alert-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

/* Advanced Progress Bars */
.my-progress {
  width: 100%;
  height: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.25rem;
  overflow: hidden;
  position: relative;
}

.my-progress-bar {
  height: 100%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 0.25rem;
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

.my-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.my-progress-sm {
  height: 0.25rem;
}

.my-progress-lg {
  height: 0.75rem;
}

.my-progress-xl {
  height: 1rem;
}

/* Advanced Tooltips */
.my-tooltip {
  position: relative;
  display: inline-block;
}

.my-tooltip-content {
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: #ffffff;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.my-tooltip-content::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
}

.my-tooltip:hover .my-tooltip-content {
  opacity: 1;
  visibility: visible;
}

/* Advanced Loading Spinners */
.my-spinner {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.my-spinner-sm {
  width: 1rem;
  height: 1rem;
  border-width: 2px;
}

.my-spinner-lg {
  width: 3rem;
  height: 3rem;
  border-width: 4px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Advanced Badges */
.my-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.my-badge-primary {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  border: 1px solid rgba(102, 126, 234, 0.3);
}

.my-badge-success {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.my-badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.my-badge-error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.my-badge-sm {
  padding: 0.125rem 0.5rem;
  font-size: 0.625rem;
}

.my-badge-lg {
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
}
