/* ========================================
   COMPONENTS - Tiles, Buttons, Chips
   ======================================== */

/* Tile Card */
.tile {
  display: flex;
  flex-direction: column;
  padding: var(--space-md) var(--space-md);
  background: var(--tile-bg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(45, 74, 90, 0.08);
  border-radius: 8px;
  transition: transform var(--transition-base),
              box-shadow var(--transition-base),
              border-color var(--transition-base);
  height: 100%;
  width: 100%;
  min-width: 0;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.tile::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--accent);
  transition: width var(--transition-base);
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-hover);
  border-color: rgba(225, 54, 97, 0.3);
  background: linear-gradient(135deg, rgba(253, 251, 212, 0.8) 0%, rgba(253, 251, 212, 0.6) 100%);
}

.tile:hover::before {
  width: 100%;
}

.tile:active {
  transform: translateY(-2px);
  transition: transform var(--transition-fast);
}

.tile__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.tile__title {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  line-height: var(--leading-tight);
  color: var(--text);
  margin: 0;
}

.tile__status {
  flex-shrink: 0;
}

.tile__body {
  flex: 1;
  margin-bottom: var(--space-sm);
}

.tile__tagline {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: var(--leading-normal);
  margin: 0;
}

.tile__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--line);
  min-height: 44px; /* Ensure touch target meets accessibility requirements */
}

.tile__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition-fast), gap var(--transition-fast);
  padding: var(--space-xs) 0;
  min-height: 44px; /* Ensure touch target meets accessibility requirements */
  cursor: pointer;
}

.tile__link:hover,
.tile__link:focus {
  color: var(--accent);
  gap: var(--space-sm);
}

.tile__link-arrow {
  display: inline-block;
  transition: transform var(--transition-fast);
  font-size: 1.2em;
}

.tile__link:hover .tile__link-arrow,
.tile__link:focus .tile__link-arrow {
  transform: translateX(4px);
}

/* Status Chip */
.chip {
  display: inline-block;
  padding: 4px 12px;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  color: var(--accent);
  background-color: transparent;
  border: 1px solid var(--accent);
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chip--now {
  color: var(--accent);
  border-color: var(--accent);
}

.chip--old {
  color: var(--muted);
  border-color: var(--line);
}

.chip--idea {
  color: var(--accent);
  border-color: var(--accent);
  opacity: 0.7;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  color: var(--text);
  background-color: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  min-height: 44px;
}

.btn:hover,
.btn:focus {
  color: var(--accent);
  border-color: var(--accent);
  background-color: rgba(225, 54, 97, 0.05);
}

.btn--primary {
  color: var(--white);
  background-color: var(--accent);
  border-color: var(--accent);
}

.btn--primary:hover,
.btn--primary:focus {
  background-color: var(--accent);
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(225, 54, 97, 0.3);
}

/* Email Button */
.btn--email {
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.btn__text {
  transition: all var(--transition-base);
}

.btn__icon {
  font-size: 1.2em;
  transition: transform var(--transition-base);
}

.btn--email:hover .btn__icon,
.btn--email:focus .btn__icon {
  transform: scale(1.1);
}

.btn--email.btn--copied {
  background-color: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn--email.btn--copied:hover {
  background-color: var(--accent);
  opacity: 0.9;
}

/* Email button in bullet list context */
.bullet-list__items .btn--email {
  padding-left: var(--space-md);
  margin-left: 0;
}

/* Bullet List (for Work with Me page) */
.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bullet-list__section {
  margin-bottom: var(--space-xl);
}

.bullet-list__title {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.bullet-list__items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bullet-list__item {
  position: relative;
  padding-left: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text);
}

.bullet-list__item::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: var(--font-weight-bold);
}

/* Focus States */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .tile {
    transition: none;
  }
  
  .tile:hover {
    transform: none;
  }
  
  .tile__link-arrow {
    transition: none;
  }
  
  .tile__link:hover .tile__link-arrow {
    transform: none;
  }
}

