/**
 * 03 - Layout & Utilities — Premium Helpers
 * @package Stratos_One_Portfolio
 * 
 * Source: robert-portfolio/assets/css/bundle.css (utilities & helpers sections)
 * Purpose: Layout utilities, flex helpers, common patterns
 */

/* ============================================
   Layout Utilities
   ============================================ */

/* Section wrapper */
.section-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Sticky label */
.sticky-label {
  position: sticky;
  top: 80px;
}

/* Divider */
.divider {
  width: 100%;
  height: 1px;
  background: var(--color-divider);
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* Mono text */
.font-mono {
  font-family: var(--font-family-mono);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--color-accent-primary) 0%, var(--color-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Text truncate */
.truncate {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ============================================
   Flex Helpers
   ============================================ */

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ============================================
   Scroll Animations
   ============================================ */

/* Scroll animation helper - DISABLED
   All elements always visible for reliability
*/
.reveal,
.js .reveal,
.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Badges & Status
   ============================================ */

/* Badge / tag */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  font-family: var(--font-family-mono);
  background-color: var(--color-surface-subtle);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
  transition: all var(--transition-fast);
}

.badge:hover {
  border-color: var(--color-accent-primary);
  color: var(--color-accent-primary);
  background-color: var(--color-accent-subtle);
}

/* Tech badge */
.tech-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  background-color: var(--color-surface-subtle);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-family: var(--font-family-mono);
  color: var(--color-text-secondary);
  letter-spacing: 0.01em;
  transition: all var(--transition-fast);
  cursor: default;
}

.tech-badge:hover {
  border-color: var(--color-accent-primary);
  background-color: var(--color-accent-subtle);
  color: var(--color-accent-hover);
}

/* Status dot */
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-success);
  box-shadow: 0 0 0 3px rgba(16, 217, 160, 0.2);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16, 217, 160, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(16, 217, 160, 0.05); }
}

/* Inline status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.status-badge.live {
  color: var(--color-success);
  background: rgba(16, 217, 160, 0.08);
  border: 1px solid rgba(16, 217, 160, 0.2);
}

.status-badge.wip {
  color: var(--color-warning);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ============================================
   Link Effects
   ============================================ */

/* Animated underline link */
.link-underline {
  position: relative;
  color: var(--color-text-secondary);
  text-decoration: none;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 100%;
  height: 1px;
  background: var(--color-accent-primary);
  transition: right var(--transition-fast);
}

.link-underline:hover {
  color: var(--color-text-primary);
}

.link-underline:hover::after {
  right: 0;
}

/* Glow ring */
.glow-ring {
  box-shadow: 0 0 0 1px var(--color-border-accent), var(--shadow-glow);
}

/* No-select */
.no-select {
  user-select: none;
  -webkit-user-select: none;
}
