/* ========================================
   CTA BUTTON COMPONENTS
   Based on Afri's button design with sliding arrow animation
   ======================================== */

/* Base CTA Button - Afri Style */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 32px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
  text-decoration: none;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
  min-width: 158px;
}

.cta-button:focus {
  outline: 2px dashed #1a1a1a;
  outline-offset: 4px;
}

.cta-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Text sliding effect - Afri Style */
.cta-button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button:hover {
  justify-content: space-between !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* Arrow Icon - Afri Style Hover Animation */
.cta-button::before {
  content: "";
  position: absolute;
  right: 20px;
  top: 0;
  bottom: 0;
  margin: auto 0;
  width: 14px;
  height: 15px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='14' fill='none' viewBox='0 0 15 14'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M1.5 7h12m0 0-6-6m6 6-6 6'/%3E%3C/svg%3E");
  background-position: 50% 50%;
  background-repeat: no-repeat;
  opacity: 0;
  transform: translateX(-32px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.cta-button:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Orange CTA Button */
.cta-button-orange {
  background-color: #FF6600;
  color: #ffffff;
}

.cta-button-orange:hover {
  background-color: #E55A00;
  color: #ffffff;
  text-decoration: none;
}

.cta-button-orange::before {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='14' fill='none' viewBox='0 0 15 14'%3E%3Cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M1.5 7h12m0 0-6-6m6 6-6 6'/%3E%3C/svg%3E");
}

/* Black CTA Button */
.cta-button-black {
  background-color: #1a1a1a;
  color: #ffffff;
}

.cta-button-black:hover {
  background-color: #000000;
  color: #ffffff;
  text-decoration: none;
}

.cta-button-black::before {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='14' fill='none' viewBox='0 0 15 14'%3E%3Cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M1.5 7h12m0 0-6-6m6 6-6 6'/%3E%3C/svg%3E");
}

/* White CTA Button */
.cta-button-white {
  background-color: #ffffff;
  color: #1a1a1a;
  border: 1px solid #e5e5e5;
}

.cta-button-white:hover {
  background-color: #f5f5f5;
  color: #1a1a1a;
  text-decoration: none;
  border-color: #d5d5d5;
}

.cta-button-white::before {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='14' fill='none' viewBox='0 0 15 14'%3E%3Cpath stroke='%231a1a1a' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M1.5 7h12m0 0-6-6m6 6-6 6'/%3E%3C/svg%3E");
}

/* Button Sizes */
.cta-button-sm {
  padding: 14px 24px;
  font-size: 16px;
  min-width: 120px;
}

.cta-button-sm:hover {
  justify-content: space-between !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

.cta-button-lg {
  padding: 22px 40px;
  font-size: 20px;
  min-width: 200px;
}

.cta-button-lg:hover {
  justify-content: space-between !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

.cta-button-xl {
  padding: 26px 48px;
  font-size: 22px;
  min-width: 240px;
}

.cta-button-xl:hover {
  justify-content: space-between !important;
  padding-left: 28px !important;
  padding-right: 28px !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cta-button {
    padding: 16px 28px;
    font-size: 16px;
    min-width: 140px;
  }
  
  .cta-button:hover {
    justify-content: space-between !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
  .cta-button::before {
    right: 20px;
    width: 12px;
    height: 13px;
  }
  
  .cta-button-sm {
    padding: 12px 20px;
    font-size: 14px;
    min-width: 100px;
  }
  
  .cta-button-sm:hover {
    justify-content: space-between !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  
  .cta-button-lg {
    padding: 18px 32px;
    font-size: 18px;
    min-width: 160px;
  }
  
  .cta-button-lg:hover {
    justify-content: space-between !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

@media (max-width: 640px) {
  .cta-button {
    width: 100%;
    justify-content: center;
    min-width: auto;
  }
}

/* Pagination CTA Button Variants */
.cta-button-pagination {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-decoration: none;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
  min-width: 40px;
  height: 40px;
}

.cta-button-pagination:focus {
  outline: 2px dashed #1a1a1a;
  outline-offset: 2px;
}

.cta-button-pagination:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Pagination CTA Button - No Icon Variant */
.cta-button-pagination-no-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-decoration: none;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
  min-width: 40px;
  height: 40px;
}

.cta-button-pagination-no-icon:focus {
  outline: 2px dashed #1a1a1a !important;
  outline-offset: 2px;
}

.cta-button-pagination-no-icon:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Pagination Button Color Variants */
.cta-button-pagination-orange {
  background-color: #FF6600;
  color: #ffffff;
}

.cta-button-pagination-orange:hover {
  background-color: #E55A00;
  color: #ffffff;
  text-decoration: none;
}

.cta-button-pagination-black {
  background-color: #1a1a1a;
  color: #ffffff;
}

.cta-button-pagination-black:hover {
  background-color: #000000;
  color: #ffffff;
  text-decoration: none;
}

.cta-button-pagination-white {
  background-color: #ffffff;
  color: #1a1a1a;
  border: 1px solid #e5e5e5;
}

.cta-button-pagination-white:hover {
  background-color: #f5f5f5;
  color: #1a1a1a;
  text-decoration: none;
  border-color: #d5d5d5;
}

/* Pagination No-Icon Button Color Variants */
.cta-button-pagination-no-icon-orange {
  background-color: #FF6600;
  color: #ffffff;
}

.cta-button-pagination-no-icon-orange:hover {
  background-color: #E55A00;
  color: #ffffff;
  text-decoration: none;
}

.cta-button-pagination-no-icon-black {
  background-color: #1a1a1a;
  color: #ffffff;
}

.cta-button-pagination-no-icon-black:hover {
  background-color: #000000;
  color: #ffffff;
  text-decoration: none;
}

.cta-button-pagination-no-icon-white {
  background-color: #ffffff;
  color: #1a1a1a;
  border: 1px solid #e5e5e5;
}

.cta-button-pagination-no-icon-white:hover {
  background-color: #f5f5f5;
  color: #1a1a1a;
  text-decoration: none;
  border-color: #d5d5d5;
}

/* Pagination Page Number Button */
.cta-button-page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
  min-width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #1a1a1a;
  backdrop-filter: blur(10px);
}

.cta-button-page-number:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #1a1a1a;
  text-decoration: none;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.cta-button-page-number:focus {
  outline: 2px dashed #1a1a1a;
  outline-offset: 2px;
}

.cta-button-page-number.active {
  background-color: #FF6600;
  color: #ffffff;
  border-color: #FF6600;
}

.cta-button-page-number.active:hover {
  background-color: #E55A00;
  color: #ffffff;
  border-color: #E55A00;
}

/* ========================================
   USAGE EXAMPLES
   ======================================== */

/*
HTML Usage:

<!-- Orange CTA Button -->
<a href="#" class="cta-button cta-button-orange">Plan Your Trip</a>

<!-- Black CTA Button -->
<a href="#" class="cta-button cta-button-black">Explore Now</a>

<!-- White CTA Button -->
<a href="#" class="cta-button cta-button-white">Learn More</a>

<!-- With Sizes -->
<a href="#" class="cta-button cta-button-orange cta-button-sm">Small</a>
<a href="#" class="cta-button cta-button-black cta-button-lg">Large</a>
<a href="#" class="cta-button cta-button-white cta-button-xl">Extra Large</a>
*/