﻿/* ==============================
   Profile Page (iframe)
   ============================== */

.page-banner--profile {
  min-height: 220px;
  padding: 58px 0 50px;
}
.page-banner--profile h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 10px;
}
.page-banner--profile .banner-subtitle {
  color: rgba(255,255,255,0.78);
}

.profile-section {
  padding: 32px 0 64px;
  background: #f7fafc;
  min-height: 60vh;
}

.profile-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.profile-back,
.profile-external {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.25s ease;
}
.profile-back {
  background: #fff;
  border: 1px solid #dde5ee;
  color: #152035;
}
.profile-back:hover {
  border-color: #0095b3;
  color: #0095b3;
  transform: translateX(-3px);
}
.profile-external {
  background: #0095b3;
  color: #fff;
  border: 1px solid #0095b3;
}
.profile-external:hover {
  background: #007a99;
  border-color: #007a99;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,149,179,0.28);
}
.profile-external.is-hidden { display: none; }

.profile-empty-link {
  color: #0095b3;
  font-weight: 600;
}
.profile-empty-link:hover { color: #007a99; }

.profile-frame {
  position: relative;
  width: 100%;
  height: 82vh;
  min-height: 680px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dde5ee;
  box-shadow: 0 20px 48px rgba(21,32,53,0.08);
}

.profile-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.profile-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px 24px;
  color: #5b6678;
  text-align: center;
}
.profile-empty .empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0,149,179,0.08);
  color: #0095b3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 18px;
}
.profile-empty h3 {
  color: #152035;
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.profile-empty p {
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 420px;
}

.profile-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.92);
  color: #0095b3;
  font-size: 0.95rem;
  font-weight: 600;
  z-index: 2;
  transition: opacity 0.4s ease;
}
.profile-loading.hidden { opacity: 0; pointer-events: none; }

@media (max-width: 900px) {
  .profile-frame { height: 78vh; min-height: 520px; }
}