/**
 * Common styles for all Waltio widgets
 * Includes: Powered by footer, CTA buttons, Fonts
 */

/* ============================================
   Roobert Font Family
   ============================================ */

@font-face {
  font-family: 'Roobert';
  src: url('/fonts/Roobert-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roobert';
  src: url('/fonts/Roobert-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roobert';
  src: url('/fonts/Roobert-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roobert';
  src: url('/fonts/Roobert-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roobert';
  src: url('/fonts/Roobert-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roobert';
  src: url('/fonts/Roobert-Heavy.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Set Roobert as default font for all widgets */
:root {
  --waltio-font-family: 'Roobert', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ============================================
   Powered by Waltio Footer
   ============================================ */

.waltio-powered-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 0;
  margin-top: 32px;
  border-top: 1px solid #e5e5e5;
}

.waltio-powered-by-text {
  font-size: 12px;
  color: #808080;
  text-transform: lowercase;
  font-weight: 400;
}

.waltio-powered-by-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.waltio-powered-by-link:hover {
  opacity: 0.8;
}

.waltio-powered-by-logo {
  height: 20px;
  width: auto;
  display: block;
}

/* Dark theme support for powered by */
[data-theme="dark"] .waltio-powered-by {
  border-top-color: #404040;
}

[data-theme="dark"] .waltio-powered-by-text {
  color: #808080;
}

/* ============================================
   CTA Button (Common styles)
   ============================================ */

.waltio-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: linear-gradient(135deg, #3b24fc 0%, #2b1bb8 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  clip-path: inset(0);
  box-shadow: 0 4px 12px rgba(59, 36, 252, 0.3);
}

.waltio-cta-button:hover {
  background: linear-gradient(135deg, #4a35ff 0%, #3b24fc 100%);
  box-shadow: 0 6px 16px rgba(59, 36, 252, 0.4);
  transform: translateY(-2px);
}

.waltio-cta-button:active {
  transform: translateY(0);
}

/* Pulse glow animation */
.waltio-cta-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  pointer-events: none;
  z-index: -1;
}

.waltio-cta-button:hover::before {
  width: 300px;
  height: 300px;
}

/* Ripple effect */
.waltio-cta-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s, opacity 0.4s;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
}

.waltio-cta-button:active::after {
  width: 200px;
  height: 200px;
  opacity: 1;
  transition: width 0s, height 0s, opacity 0.4s;
}

/* Dark theme support for CTA */
[data-theme="dark"] .waltio-cta-button {
  background: linear-gradient(135deg, #4a35ff 0%, #3b24fc 100%);
  box-shadow: 0 4px 12px rgba(59, 36, 252, 0.4);
}

[data-theme="dark"] .waltio-cta-button:hover {
  background: linear-gradient(135deg, #5a45ff 0%, #4a35ff 100%);
  box-shadow: 0 6px 16px rgba(59, 36, 252, 0.5);
}

