/* base font */
@font-face {
  font-family: "FCVision";
  src: url("../FONT/FCVision-Thin.otf") format("opentype");
  font-weight: 100;
}

@font-face {
  font-family: "FCVision";
  src: url("../FONT/FCVision-Regular.otf") format("opentype");
  font-weight: 400;
}

@font-face {
  font-family: "FCVision";
  src: url("../FONT/FCVision-Bold.otf") format("opentype");
  font-weight: 700;
}

* {
  box-sizing: border-box;
  font-family: "FCVision";
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  margin: 0;
  background: #fff;
    display: flex;
  flex-direction: column;
}

.page-container {
  flex: 1;        
}

/* ===== TITLE ===== */
.title-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
}

.logo {
  height: 50px;
  margin-bottom: 3px;
  margin-right: 10px;
}

.title-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: none;
  box-shadow: none;
  padding: 0;
}

/* ===== TYPE SWITCH ===== */
.type-switch-vertical {
  position: absolute;
  top: 40px;
  right: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 0 25px;
}

.type-label {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
}

.type-item {
  position: relative;
  width: 110px;
  padding: 6px 0;
  background: #bfbfbf;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.25s ease;
}

.type-item:hover {
  background: #d71920;
}

.type-item::before {
  content: "▶";
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  color: #d71920;
  font-size: 10px;
  opacity: 0;
  transition: 0.25s ease;
}

.type-item:hover::before {
  opacity: 1;
}

/* ===== CATEGORY TEXT ===== */
.card .category-text {
  position: absolute;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ===== POPUP (ใช้ทุก device) ===== */
.popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup-box {
  width: 620px;
  max-width: 90vw;
  height: 360px;
  background: white;
  border-radius: 16px;
  position: relative;
  display: grid;
  overflow: hidden;
  grid-template-rows: 50% 50%;
  transform: scale(0.9);
  transform-origin: center;
}

.popup-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.8);
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  line-height: 30px;
}

.popup-top {
  position: relative;
  overflow: hidden;
}

.popup-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup-bottom {
  position: relative;
}

.popup-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  top: -60px;
  left: 40px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: white;
}

.popup-info {
  margin-left: 15px;
  position: relative;
  top: -15px;
}

.info-header {
  max-width: calc(80% - 90px);
}

.info-meta {
  position: static;
  margin-top: 6px;
}

.popup-time {
  white-space: nowrap;
  color: #9aa0a6;
  padding-bottom: 18px;
}

.popup-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.popup-role {
  font-size: 35px;
  color: black;
  font-weight: 500;
  align-items: center;
}

.info-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  align-items: center;
}

.popup-btn {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.popup-btn.line {
  background: white;
  color: black;
}

.info-actions {
  display: flex;
}

.label {
  color: #9aa0a6;
  font-size: 15px;
}

.info-actions-left .popup-btn + .popup-btn::before {
  content: "";
  width: 1px;
  height: 28px;
  background: #d0d0d0;
}

/* card เป็น parent ให้ actions */
.card {
  position: relative;
}

/* โครงสร้างของกลุ่มปุ่ม */
.card-actions {
  display: flex;
  gap: 8px;
  position: relative;
}

/* ตัวปุ่ม */
.card-actions .action {
  background: #edebeb;
  backdrop-filter: blur(4px);
  font-size: 16px;

  border: 1px solid rgba(255, 255, 255, 0.25);

  cursor: pointer;
  transition:
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}

.popup-avatar {
  display: none;
}

.popup-name {
  display: none;
}

/* ===== CONTACT BUTTON : BASE ===== */
.contact-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 10px;

  text-decoration: none;
  color: #fff;
  background: #9fa6ab;

  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-btn.line:hover {
  background: #06c755;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(27, 230, 0, 0.2);
}

/* สถานะปกติ */
.contact-btn.web {
  background: #e50533;
  color: #fff;
  box-shadow: 0 8px 22px rgba(230, 0, 35, 0.2);
  transition: transform 0.2s ease;
}

/* ตอน hover ยกขึ้นอย่างเดียว */
.contact-btn.web:hover {
  transform: translateY(-2px);
  background: #c9042b;
}

.contact-btn .icon {
  display: block;
}

.grid {
  display: grid;
}

.card {
  position: relative;
}

.card-info-mobile {
  display: none;
}

.mobile-only {
  display: none;
}
