/* ==========================================================================
   Swiss invest, UAB - Utilities & Helper Classes
   Typography, Spacing, Animations, Visual Accents
   ========================================================================== */

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Font Weights */
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

/* Text Colors */
.text-primary { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted { color: var(--color-text-muted); }
.text-terracotta { color: var(--color-accent-terracotta); }
.text-sage { color: var(--color-accent-sage-dark); }
.text-white { color: #FFFFFF; }

/* Display & Visibility */
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.hidden { display: none !important; }

/* Spacing Helpers */
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

/* Width / Height */
.w-full { width: 100%; }
.h-full { height: 100%; }

/* Image Enhancements */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-rounded {
  border-radius: var(--radius-lg);
}

.img-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.img-frame:hover img {
  transform: scale(1.03);
}

.img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(19, 42, 34, 0.75) 100%);
  pointer-events: none;
}

/* Floating Stats Badge */
.floating-stat-badge {
  position: absolute;
  background-color: var(--color-surface-card);
  border: 1px solid var(--color-border);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-hover);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  z-index: 5;
  backdrop-filter: blur(8px);
}

.floating-stat-badge .stat-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: var(--color-accent-terracotta-light);
  color: var(--color-accent-terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-stat-badge .stat-icon i {
  width: 18px;
  height: 18px;
}

.floating-stat-badge .stat-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  font-weight: 800;
  color: var(--color-primary-base);
  line-height: 1.1;
}

.floating-stat-badge .stat-sub {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* Subtle Micro-Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

/* Status Notifications / Alerts */
.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.alert i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-success {
  background-color: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid rgba(42, 110, 83, 0.2);
}

.alert-warning {
  background-color: var(--color-warning-bg);
  color: var(--color-warning);
  border: 1px solid rgba(184, 118, 18, 0.2);
}

.alert-info {
  background-color: var(--color-info-bg);
  color: var(--color-info);
  border: 1px solid rgba(33, 96, 136, 0.2);
}
