/* ============================================================
   Loikka Contacts — Frontend Styles
   ============================================================ */

/* ── Grid ─────────────────────────────────────────────────── */
.loikka-contacts-grid {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.loikka-contacts-cols-1 { grid-template-columns: 1fr; max-width: 360px; }
.loikka-contacts-cols-2 { grid-template-columns: repeat(2, 1fr); }
.loikka-contacts-cols-3 { grid-template-columns: repeat(3, 1fr); }
.loikka-contacts-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .loikka-contacts-cols-3,
  .loikka-contacts-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .loikka-contacts-cols-2,
  .loikka-contacts-cols-3,
  .loikka-contacts-cols-4 { grid-template-columns: 1fr; }
}

/* ── Card style ───────────────────────────────────────────── */
.loikka-contact-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(5, 60, 60, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
.loikka-contact-card:hover {
  box-shadow: 0 8px 28px rgba(5, 60, 60, 0.14);
  transform: translateY(-2px);
}

/* Photo */
.loikka-contact-card__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #cddede;
  flex-shrink: 0;
}
.loikka-contact-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.loikka-contact-card__photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a3d3d 0%, #1a5f5f 100%);
  min-height: 180px;
}
.loikka-contact-card__photo-placeholder span {
  font-size: 2.5rem;
  font-weight: 800;
  color: #55F0EB;
  font-family: 'Syne', sans-serif;
  letter-spacing: -0.02em;
}

/* Body */
.loikka-contact-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Sales area badge */
.loikka-contact-card__area {
  display: inline-block;
  background: #053C3C;
  color: #55F0EB;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.25em 0.7em;
  border-radius: 4px;
  margin: 0 0 0.75rem;
  align-self: flex-start;
  line-height: 1.5;
}

.loikka-contact-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: #053C3C;
  margin: 0 0 0.2rem;
  line-height: 1.3;
}
.loikka-contact-card__job {
  font-size: 0.82rem;
  font-weight: 600;
  color: #55F0EB;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.loikka-contact-card__extra {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(5, 60, 60, 0.65);
  margin: 0 0 1rem;
  flex: 1;
}

/* Contact links */
.loikka-contact-card__links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(5, 60, 60, 0.08);
}
.loikka-contact-card__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #053C3C;
  text-decoration: none;
  transition: color 0.15s;
  word-break: break-all;
}
.loikka-contact-card__link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.55;
}
.loikka-contact-card__link:hover { color: #0a8a85; }
.loikka-contact-card__link--linkedin { color: #0073b1; }
.loikka-contact-card__link--linkedin:hover { color: #005e94; }

/* ── Compact style ────────────────────────────────────────── */
.loikka-contact-compact {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 1rem;
  background: #f7f9f9;
  border-radius: 8px;
  border-left: 3px solid #55F0EB;
}
.loikka-contact-compact__photo {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: #cddede;
}
.loikka-contact-compact__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.loikka-contact-compact__initials {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #053C3C, #0a6b6b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: #55F0EB;
}
.loikka-contact-compact__info {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.75rem;
  min-width: 0;
}
.loikka-contact-compact__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #053C3C;
  white-space: nowrap;
}
.loikka-contact-compact__job {
  font-size: 0.8rem;
  color: rgba(5, 60, 60, 0.6);
  white-space: nowrap;
}
.loikka-contact-compact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  width: 100%;
  margin-top: 0.2rem;
}
.loikka-contact-compact__links a {
  font-size: 0.8rem;
  color: #0a7a76;
  text-decoration: none;
}
.loikka-contact-compact__links a:hover { text-decoration: underline; }

/* ── Sidebar style ────────────────────────────────────────── */
.loikka-contact-sidebar {
  background: #0A2E2E;
  border-radius: 8px;
  padding: 1.75rem;
  text-align: center;
}
.loikka-contact-sidebar__photo {
  margin: 0 auto 1rem;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #55F0EB;
}
.loikka-contact-sidebar__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.loikka-contact-sidebar__name {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.2rem;
}
.loikka-contact-sidebar__job {
  font-size: 0.8rem;
  color: #55F0EB;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
}
.loikka-contact-sidebar__extra {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 1rem;
}
.loikka-contact-sidebar__links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.loikka-contact-sidebar__links a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.15s;
  word-break: break-all;
}
.loikka-contact-sidebar__links a:hover { color: #55F0EB; }
.loikka-contact-sidebar__linkedin { color: #55F0EB !important; }
.loikka-contact-sidebar__calendar { color: #55F0EB !important; }
