/**
 * Extended Floating Icons Styles
 * Consolidated styles for Support Us, JamWebStudio, and View Reports icons
 * Follows pattern from profile-hub.css and support-container.css
 *
 * Created: 2025-12-20
 * Issue: ISSUE-024 - UI/UX Enhancement
 */

/* ============================================
   ICON A: SUPPORT US (All Pages)
   ============================================ */

/* Container - positioned between Profile Hub and JamWebStudio */
/* ISSUE-024 FIX: Changed from bottom: 73px to prevent icon overlapping */
/* SPACING FIX: Updated to 170px for even 20px gaps between all icons */
.support-us-container {
  position: fixed;
  bottom: 170px;
  right: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  z-index: 9800;
}

/* Button */
.support-us-btn {
  background: #000000;
  color: #ffee00 !important;
  border: 2px solid #ffee00;
  border-radius: 25px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Arial', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 238, 0, 0.2);
  letter-spacing: 1px;
  white-space: nowrap;
  text-decoration: none !important;
}

.support-us-btn:hover {
  background: #ffee00;
  color: #000000 !important;
  border-color: #28a745;
  box-shadow: 0 6px 20px rgba(255, 238, 0, 0.5);
  transform: scale(1.05);
}

/* Icon - fa-heart with pink/red gradient glow */
.support-us-icon {
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, #ff0066 0%, #ff3385 100%);
  border: 3px solid #28a745;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
  box-shadow: 0 0 20px rgba(255, 0, 102, 0.6), 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: heartGlow 3s ease-in-out infinite;
}

.support-us-icon i {
  font-size: 24px;
  color: #ffffff;
  transition: all 0.3s ease;
  /* ISSUE-024 FIX: Vertical centering for Font Awesome icon */
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.support-us-icon:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 30px rgba(255, 0, 102, 0.9), 0 6px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #ff3385 0%, #ff0066 100%);
}

@keyframes heartGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 0, 102, 0.6), 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 35px rgba(255, 0, 102, 0.9), 0 6px 16px rgba(0, 0, 0, 0.3);
  }
}

/* ============================================
   ICON B: JAMWEBSTUDIO (All Pages)
   ============================================ */

/* ISSUE-024 FIX: Changed from bottom: 56px to prevent icon overlapping */
/* SPACING FIX: Updated to 95px for even 20px gaps between all icons */
.jamwebstudio-container {
  position: fixed;
  bottom: 95px;
  right: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  z-index: 9700;
}

.jamwebstudio-btn {
  background: #000000;
  color: #ffee00 !important;
  border: 2px solid #ffee00;
  border-radius: 25px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Arial', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 238, 0, 0.2);
  letter-spacing: 1px;
  white-space: nowrap;
  text-decoration: none !important;
}

.jamwebstudio-btn:hover {
  background: #ffee00;
  color: #000000 !important;
  border-color: #28a745;
  box-shadow: 0 6px 20px rgba(255, 238, 0, 0.5);
  transform: scale(1.05);
}

/* Icon - fa-globe with blue gradient glow */
.jamwebstudio-icon {
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, #0066ff 0%, #3385ff 100%);
  border: 3px solid #28a745;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.6), 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: globeGlow 3s ease-in-out infinite;
}

.jamwebstudio-icon i {
  font-size: 24px;
  color: #ffffff;
  transition: all 0.3s ease;
  /* ISSUE-024 FIX: Vertical centering for Font Awesome icon */
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.jamwebstudio-icon:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 0 30px rgba(0, 102, 255, 0.9), 0 6px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #3385ff 0%, #0066ff 100%);
}

@keyframes globeGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.6), 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 35px rgba(0, 102, 255, 0.9), 0 6px 16px rgba(0, 0, 0, 0.3);
  }
}

/* ============================================
   ICON C: VIEW REPORTS (report-problem.html only)
   ============================================ */

.view-reports-container {
  position: fixed;
  bottom: 20px;  /* Same as Report Problem position for consistent spacing */
  right: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  z-index: 9600;
}

.view-reports-btn {
  background: #000000;
  color: #ffee00 !important;
  border: 2px solid #ffee00;
  border-radius: 25px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Arial', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 238, 0, 0.2);
  letter-spacing: 1px;
  white-space: nowrap;
  text-decoration: none !important;
}

.view-reports-btn:hover {
  background: #ffee00;
  color: #000000 !important;
  border-color: #28a745;
  box-shadow: 0 6px 20px rgba(255, 238, 0, 0.5);
  transform: scale(1.05);
}

/* Icon - fa-list-alt with orange gradient glow */
.view-reports-icon {
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, #ff9900 0%, #ffaa33 100%);
  border: 3px solid #28a745;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
  box-shadow: 0 0 20px rgba(255, 153, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: listGlow 3s ease-in-out infinite;
}

.view-reports-icon i {
  font-size: 24px;
  color: #000000;
  transition: all 0.3s ease;
  /* ISSUE-024 FIX: Vertical centering for Font Awesome icon */
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.view-reports-icon:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 30px rgba(255, 153, 0, 0.9), 0 6px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #ffaa33 0%, #ff9900 100%);
}

@keyframes listGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 153, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 35px rgba(255, 153, 0, 0.9), 0 6px 16px rgba(0, 0, 0, 0.3);
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  /* Adjust container positions for mobile */
  /* ISSUE-024 FIX: Updated mobile positions to prevent icon overlapping */
  /* SPACING FIX: Updated for even 15px gaps between all icons */
  .support-us-container {
    bottom: 135px;
    right: 15px;
    gap: 12px;
    z-index: 10002 !important; /* CLICKABILITY FIX: Boost above titleBar (10001) */
  }

  .jamwebstudio-container {
    bottom: 75px;
    right: 15px;
    gap: 12px;
    z-index: 10002 !important; /* CLICKABILITY FIX: Boost above titleBar (10001) */
  }

  .view-reports-container {
    bottom: 15px;  /* Same as Report Problem position for consistent spacing */
    right: 15px;
    gap: 12px;
    z-index: 10002 !important; /* CLICKABILITY FIX: Boost above titleBar (10001) */
  }

  /* MOBILE FIX: Hide pill buttons, show only circle icons */
  .support-us-btn,
  .jamwebstudio-btn,
  .view-reports-btn {
    display: none;
  }

  /* Reduce icon sizes */
  .support-us-icon,
  .jamwebstudio-icon,
  .view-reports-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
  }

  .support-us-icon i,
  .jamwebstudio-icon i,
  .view-reports-icon i {
    font-size: 18px;
  }
}
