/* ===================================================================
 * Sifency Button Styles
 * =================================================================== */
.sifency-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    border: none;
    position: relative;
    overflow: hidden;
    user-select: none;
    letter-spacing: 0.01em;
    will-change: transform, box-shadow, background;
}

/* Inner Content */
.sifency-button-content-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
    position: relative;
}

.sifency-button-content-wrapper .sifency-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25em;
    line-height: 1;
}

/* --------------------------------------------------
   PRIMARY BUTTON
-------------------------------------------------- */
.sifency-button.primary {
    transition: all 0.3s ease-in-out;
    background: var(--sifency-addons-themecolor);
    color: #fff;
}
.sifency-button.primary:hover {
    transition: all 0.3s ease-in-out;
}

.sifency-button.primary:active {
    transition: all 0.3s ease-in-out;
}

/* --------------------------------------------------
   SECONDARY BUTTON
-------------------------------------------------- */
.sifency-button.secondary {
    background: #fff;
    transition: all 0.3s ease-in-out;
}
.sifency-button.secondary span{
    color: #010101;
}
.sifency-button.secondary:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transition: all 0.3s ease-in-out;
}

/* --------------------------------------------------
   OUTLINE BUTTON
-------------------------------------------------- */
.sifency-button.outline {
    background: transparent;
    border: 2px solid var(--sifency-addons-themecolor);
    box-shadow: none;
    transition: all 0.3s ease-in-out;
}
.sifency-button.outline span{
    color: var(--sifency-addons-themecolor);
}
.sifency-button.outline:hover {
    background: var(--sifency-addons-themecolor);
    transition: all 0.3s ease-in-out;
    border-color: var(--sifency-addons-themecolor);
}
.sifency-button.outline:hover span{
    color: #fff;
}
/* --------------------------------------------------
   GHOST BUTTON
-------------------------------------------------- */
.sifency-button.ghost {
    background: transparent;
    color: #374151;
    border: none;
    padding: 10px 18px;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
}
.sifency-button.ghost span{
    color: #374151;
}
.sifency-button.ghost:hover {
    background: rgba(99, 102, 241, 0.08);
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}
.sifency-button.ghost:hover span{
    color: #4f46e5;
}
/* --------------------------------------------------
   ICON-ONLY BUTTON
-------------------------------------------------- */
.sifency-button.icon-only {
    width: 46px;
    height: 46px;
    border-radius: 50px;
    background: var(--sifency-addons-themecolor);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4em;
    transition: all 0.3s ease-in-out;
}
.sifency-button.icon-only .sifency-button-text{
    display: none;
}

/* --------------------------------------------------
   DISABLED STATE
-------------------------------------------------- */
.sifency-button[disabled],
.sifency-button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.sifency-button::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: inherit;
}
.sifency-button:hover::after {
    opacity: 1;
}

/* --------------------------------------------------
   FLIP
-------------------------------------------------- */
.action-bar-button {
  display: inline-block;
  border: none;
  position: relative;
  overflow: hidden;
  background: var(--sifency-addons-themecolor);
}
.action-bar-button span {
  color: #fff;
}
.action-bar-button:hover {
  border: none;
}
.action-bar-button .flip-text {
  display: inline-block;
  position: relative;
  height: 1em;
  line-height: 1;
  perspective: 800px;
}
.action-bar-button .flip-text span {
  display: block;
  transition: transform 0.4s ease, opacity 0.4s ease;
  backface-visibility: hidden;
}
.action-bar-button .flip-text .default-text {
  transform: translateY(0) rotateX(0);
}
.action-bar-button .flip-text .hover-text {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(100%) rotateX(-90deg);
  opacity: 0;
}
.action-bar-button:hover .flip-text .default-text {
  transform: translateY(-100%) rotateX(90deg);
  opacity: 0;
}
.action-bar-button:hover .flip-text .hover-text {
  transform: translateY(0) rotateX(0);
  opacity: 1;
}

/* =========================================================
   Base Circle Fancy Button (Unified Version)
   ========================================================= */
.sifency-button.sifency-circle-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    text-decoration: none;
    box-sizing: border-box;
    width: 150px;
    height: 150px;
    border: 1px solid var(--sifency-addons-themecolor);
    background-color: transparent;
    color: var(--white-color);

    /* Smooth transitions */
    transition:
        color 0.3s ease,
        border-color 0.3s ease,
        background-color 0.3s ease;
}

/* Text + Icon Layer */
.sifency-button.sifency-circle-btn span,
.sifency-button.sifency-circle-btn i,
.sifency-button.sifency-circle-btn svg {
    position: relative;
    z-index: 2;
    color: var(--white-color);
    transition:
        color 0.3s ease,
        fill 0.3s ease;
}

/* Sliding Background Layer */
.sifency-button.sifency-circle-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%; /* Hidden initially */
    width: 100%;
    height: 100%;
    background-color: var(--sifency-addons-themecolor);
    z-index: 1;
    transition: left 0.3s ease-in-out;
}

/* Hover Effect */
.sifency-button.sifency-circle-btn:hover {
    border-color: var(--sifency-addons-themecolor);
}

/* Slide Background In */
.sifency-button.sifency-circle-btn:hover::before {
    left: 0;
}

/* Change Text/Icon Color on Hover */
.sifency-button.sifency-circle-btn:hover span,
.sifency-button.sifency-circle-btn:hover i,
.sifency-button.sifency-circle-btn:hover svg {
    color: var(--black-color);
    fill: var(--black-color);
}
