/* ============================================
   COMPONENTS - Google / Material Inspired
   Rounded cards, pill buttons, blue accents,
   subtle shadows, clean typography
   ============================================ */

/* === BUTTONS === */
/* Google: Pill shape, medium weight, no uppercase, blue */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  text-transform: none;
  letter-spacing: var(--tracking-normal);
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  text-decoration: none;
  line-height: 1;
}

/* Primary: Blue bg, white text */
.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Secondary / Outline: Blue text, grey border, pill */
.btn--secondary,
.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-border);
}

.btn--secondary:hover,
.btn--outline:hover {
  background: var(--color-bg-blue);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Ghost: White border for dark backgrounds */
.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-full);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--color-white);
}

/* Text link button: Blue text with arrow */
.btn--text {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  text-transform: none;
  letter-spacing: var(--tracking-normal);
  cursor: pointer;
  border-radius: 0;
}

.btn--text:hover {
  color: var(--color-accent-dark);
}

.btn--text .arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform var(--duration-fast);
}

.btn--text:hover .arrow {
  transform: translateX(4px);
}

/* Small button variant */
.btn--sm {
  padding: 8px 16px;
  font-size: var(--text-xs);
}

/* === CARDS === */
/* Google: Rounded corners, subtle shadow, clean */

.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-hover);
}

/* Card image */
.card__image {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.card:hover .card__image img {
  transform: scale(1.03);
}

/* Card body */
.card__body {
  padding: var(--space-lg);
}

.card--padded .card__body {
  padding: var(--space-lg);
}

/* Card category label — Google: Blue text, small */
.card__category {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-accent);
  text-transform: none;
  letter-spacing: var(--tracking-normal);
  margin-bottom: var(--space-xs);
}

/* Card title */
.card__title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-sm);
}

.card__title a {
  color: inherit;
  text-decoration: none;
}

.card__title a:hover {
  color: var(--color-accent);
}

/* Card excerpt */
.card__excerpt {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-md);
}

/* Card meta (source, date, bookmark) */
.card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border-light);
}

.card__meta-source {
  font-weight: var(--weight-regular);
}

.card__bookmark {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 4px;
  transition: color var(--duration-fast);
  border-radius: var(--radius-full);
}

.card__bookmark:hover {
  color: var(--color-accent);
  background: var(--color-bg-blue);
}

/* === EXPERTISE CARD === */
/* Google: Rounded card, blue icon, subtle hover */

.card--expertise {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
}

.card--expertise:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.card--expertise:hover .card--expertise__title {
  color: var(--color-accent);
}

.card--expertise__icon,
.card--expertise .card__icon {
  width: 36px;
  height: 36px;
  margin-bottom: var(--space-sm);
  color: var(--color-accent);
  opacity: 0.9;
}

.card--expertise__title,
.card--expertise .card__title {
  font-family: var(--font-heading);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
  transition: color var(--duration-fast);
}

.card--expertise__desc,
.card--expertise .card__desc {
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
  margin-bottom: 0;
}

.card--expertise__link,
.card--expertise .card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-accent);
  margin-top: var(--space-md);
  transition: gap var(--duration-fast);
}

.card--expertise:hover .card--expertise__link,
.card--expertise:hover .card__arrow {
  gap: 8px;
}

/* === INSIGHT CARD === */

.card--insight {
  border: none;
  background: none;
  border-radius: 0;
}

.card--insight .card__image {
  aspect-ratio: 3/2;
  margin-bottom: var(--space-sm);
  border-radius: var(--radius-md);
}

/* === SECTOR CARD === */
/* Google: Rounded image cards */

.card--sector {
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius-lg);
}

.card--sector__bg {
  position: absolute;
  inset: 0;
}

.card--sector__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card--sector__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 60%);
}

.card--sector__content {
  position: relative;
  z-index: 1;
  padding: var(--space-xl);
  color: var(--color-white);
}

.card--sector__content h3 {
  color: var(--color-white);
  margin-bottom: var(--space-xs);
}

.card--sector__content p {
  color: var(--color-text-inverse);
  font-size: var(--text-small);
}

/* === AI CAPABILITY CARD === */

.card--ai {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all var(--duration-base) var(--ease-out);
}

.card--ai:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.card--ai__icon,
.card--ai .card__icon {
  width: 28px;
  height: 28px;
  margin-bottom: var(--space-sm);
  color: var(--color-accent);
}

.card--ai h4,
.card--ai .card__title {
  margin-bottom: var(--space-xs);
}

.card--ai p,
.card--ai .card__desc {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* Generic card icon sizing */
.card__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* === METRIC === */
/* Google: Clean numbers, regular weight */

.metric {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
}

.metric__number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: var(--weight-bold);
  color: var(--color-white);
  line-height: 1;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.02em;
}

.metric__label {
  font-family: var(--font-heading);
  font-size: var(--text-small);
  font-weight: var(--weight-regular);
  color: var(--color-text-inverse);
  text-transform: none;
}

/* Dark section metrics with accent color numbers */
.metrics-section .metric__number,
.metrics .metric__number {
  color: var(--color-accent-light);
}

.metrics-section .metric__label,
.metrics .metric__label {
  color: var(--color-text-inverse);
}

/* === FORM === */
/* Google: Rounded inputs, blue focus border */

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-text-primary);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--duration-fast),
              box-shadow var(--duration-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* === TAGS / BADGES === */

.tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-accent);
  padding: 4px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  text-transform: none;
  letter-spacing: var(--tracking-normal);
}

.badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-white);
  background: var(--color-accent);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* === READ MORE LINK === */
/* Google: Blue text with arrow */

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  color: var(--color-accent);
  transition: gap var(--duration-fast);
}

.read-more:hover {
  gap: 10px;
  color: var(--color-accent-dark);
}

.read-more .arrow {
  font-size: 0.7em;
}
