/*
Theme Name: Kavinkiseh Child
Template: astra
Version: 1.0
*/

/* ================================
   Kalameh Fonts
================================ */

@font-face {
    font-family: 'Kalameh';
    src: url('https://kavinkiseh.com/wp-content/uploads/2025/04/KalamehWebFaNum-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kalameh';
    src: url('https://kavinkiseh.com/wp-content/uploads/2025/04/KalamehWeb-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kalameh';
    src: url('https://kavinkiseh.com/wp-content/uploads/2025/04/KalamehWeb-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ================================
   Yekan Font
================================ */

@font-face {
    font-family: 'Yekan';
    src: url('https://kavinkiseh.com/wp-content/uploads/2025/04/Yekan.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ================================
   Font Awesome 7.1.0 — LOCALE
================================ */

/* Solid */
@font-face {
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    src: url("/wp-content/themes/kavinkiseh-child/assets/fontawesome/webfonts/fa-solid-900.woff2") format("woff2");
    font-display: swap;
}

/* Regular */
@font-face {
    font-family: "Font Awesome 7 Free";
    font-weight: 400;
    src: url("/wp-content/themes/kavinkiseh-child/assets/fontawesome/webfonts/fa-regular-400.woff2") format("woff2");
    font-display: swap;
}

/* Brands */
@font-face {
    font-family: "Font Awesome 7 Brands";
    font-weight: 400;
    src: url("/wp-content/themes/kavinkiseh-child/assets/fontawesome/webfonts/fa-brands-400.woff2") format("woff2");
    font-display: swap;
}

/* V4 Compatibility */
@font-face {
    font-family: "Font Awesome 7 Free";
    font-weight: 400;
    src: url("/wp-content/themes/kavinkiseh-child/assets/fontawesome/webfonts/fa-v4compatibility.woff2") format("woff2");
    font-display: swap;
}

@media (max-width: 768px) {

#jarvis-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

/* دکمه اصلی */
.fab-main {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #c9a24d; /* طلایی پایه */
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,.3);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 24px;
  color: #fff !important;
  overflow: visible;
}

.fab-main .fab-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  background: rgba(201,162,77,0.4); /* طلایی واضح */
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  animation: fab-wave 3s infinite ease-out; /* فقط محو شود و دوباره تکرار */
  pointer-events: none;
  z-index: 0;
}

@keyframes fab-wave {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* هاور دکمه اصلی */
.fab-main:hover,
#jarvis-fab.active .fab-main {
  background: #000;
  color: #c9a24d !important;
}

/* آیتم‌ها کوچکتر از دکمه اصلی */
.fab-item {
  position: absolute;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff; /* رنگ اولیه آیکون‌ها */
  opacity: 0;
  pointer-events: none;
  transform: scale(0.5);
  transition: all 0.35s ease;
  z-index: 1;
}

/* نمایش وقتی فعال */
#jarvis-fab.active .fab-item {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* موقعیت دکمه‌ها نیم‌دایره حول دکمه هدفون */
.fab-item.call {
  bottom: 80px;
  right: 0;
  background: #c9a24d; /* طلایی */
}

.fab-item.telegram {
  bottom: 55px;
  right: 55px;
  background: #229ED9; /* آبی */
}

.fab-item.whatsapp {
  bottom: 0;
  right: 80px;
  background: #25D366; /* سبز */
}

/* هاور همه دکمه‌ها مشکی با آیکون طلایی */
.fab-item.call:hover,
.fab-item.telegram:hover,
.fab-item.whatsapp:hover {
  background: #000;
  color: #c9a24d;
}

/* رنگ آیکون‌ها قبل از هاور */
.fab-item.call i {
  color: #fff; /* سفید طلایی */
}

.fab-item.telegram i {
  color: #fff; /* سفید روی آبی */
}

.fab-item.whatsapp i {
  color: #fff; /* سفید روی سبز */
}

#jarvis-fab:not(.active) .fab-main {
  background: #c9a24d !important; /* طلایی */
}

#jarvis-fab:not(.active) .fab-main i {
  color: #fff !important; /* سفید واقعی */
}