/* Tennis Analytics Main CSS - Refined Open Source Project Design */

/* Base Styles & Typography */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
  --primary-color: #1e5631;
  --secondary-color: #8fb996;
  --accent-color: #f9c74f;
  --text-dark: #2d3142;
  --text-light: #f8f9fa;
  --background-light: #f8f9fa;
  --card-bg: #ffff;
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.1);
  --transition-standard: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Layout Containers - High specificity to override frameworks */
body .container,
body .container-body {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  width: 100% !important;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--background-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Compact Header */
.header {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url('image/claytennis.jpeg') no-repeat center center;
  background-size: cover;
  padding: 40px 0;
  color: white;
  text-align: center;
}

.header-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.header p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

/* Compact Hero with Direct Access */
.hero {
  position: relative;
  width: 100%;
  min-height: 320px;
  /* Reduced height */
  background-color: white;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px;
}

.hero-text {
  max-width: 500px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  line-height: 1.1;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #555;
  max-width: 450px;
}

/* Quick Access Section */
.quick-access {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  min-width: 300px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.quick-access h3 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.quick-links {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 10px;
}

.quick-link {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background-color: white;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-dark);
  border: 1px solid #eee;
  transition: all 0.2s ease;
}

.quick-link:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateX(5px);
}

.quick-link i {
  margin-right: 10px;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.quick-link:hover i {
  color: white;
}

.featured-link {
  background-color: var(--accent-color);
  color: var(--text-dark);
  font-weight: 600;
}

.featured-link i {
  color: var(--text-dark);
}

.featured-link:hover {
  background-color: #e9b73f;
  color: var(--text-dark);
}

.featured-link:hover i {
  color: var(--text-dark);
}

/* Tennis Court Visualization */
.tennis-court {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  opacity: 0.08;
  /* More subtle */
  transform: rotate(-5deg) scale(1.5) translateX(10%);
}

.court-outline {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 70%;
  border: 2px solid var(--primary-color);
  border-radius: 4px;
}

.court-line {
  position: absolute;
  background-color: var(--primary-color);
}

.net {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.center-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background-color: var(--primary-color);
}

.service-line-top {
  position: absolute;
  top: 25%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.service-line-bottom {
  position: absolute;
  top: 75%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

/* Data Points Animation */
.data-point {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 50%;
  opacity: 0.8;
  animation: pulse 2s infinite;
}

.data-point:nth-child(1) {
  top: 30%;
  left: 20%;
  animation-delay: 0.2s;
}

.data-point:nth-child(2) {
  top: 70%;
  left: 80%;
  animation-delay: 0.5s;
}

.data-point:nth-child(3) {
  top: 40%;
  left: 60%;
  animation-delay: 0.8s;
}

.data-point:nth-child(4) {
  top: 60%;
  left: 30%;
  animation-delay: 1.1s;
}

.data-point:nth-child(5) {
  top: 20%;
  left: 70%;
  animation-delay: 1.4s;
}

.data-point:nth-child(6) {
  top: 80%;
  left: 40%;
  animation-delay: 1.7s;
}

.data-line {
  position: absolute;
  background-color: rgba(249, 199, 79, 0.3);
  height: 2px;
  transform-origin: left center;
  animation: grow 3s infinite;
}

.data-line:nth-child(7) {
  top: 30%;
  left: 20%;
  width: 40%;
  transform: rotate(30deg);
  animation-delay: 0.2s;
}

.data-line:nth-child(8) {
  top: 70%;
  left: 80%;
  width: 30%;
  transform: rotate(-45deg);
  animation-delay: 0.5s;
}

.data-line:nth-child(9) {
  top: 40%;
  left: 60%;
  width: 25%;
  transform: rotate(-15deg);
  animation-delay: 0.8s;
}

.github-link {
  display: inline-flex;
  align-items: center;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-standard);
  margin-top: 10px;
}

.github-link i {
  margin-right: 8px;
}

.github-link:hover {
  background-color: #164525;
  transform: translateY(-2px);
}

/* Navigation - High specificity to override frameworks like Bootstrap */
nav.navbar {
  background-color: var(--primary-color) !important;
  padding: 12px 0 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  box-shadow: var(--shadow-soft) !important;
  display: block !important;
  /* Ensure navbar itself is not flex, only container-nav */
}

.navbar .container-nav {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  width: 100% !important;
}

.navbar .navbar-brand {
  font-family: 'Playfair Display', serif !important;
  color: white !important;
  font-weight: 600 !important;
  font-size: 1.5rem !important;
  text-decoration: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}

.navbar .nav-links {
  display: flex !important;
  gap: 25px !important;
  align-items: center !important;
  justify-content: flex-end !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Nav Toggle Button (Hidden by default) */
.nav-toggle {
  display: none !important;
  background: transparent !important;
  border: none !important;
  color: white !important;
  font-size: 1.5rem !important;
  cursor: pointer !important;
  padding: 5px !important;
  transition: var(--transition-standard) !important;
}

.nav-toggle:hover {
  color: var(--accent-color) !important;
}

/* Responsive Navbar */
@media (max-width: 768px) {
  .nav-toggle {
    display: block !important;
  }

  .navbar .nav-links {
    position: fixed !important;
    top: 60px !important;
    /* Adjusted for navbar height */
    right: -100% !important;
    width: 280px !important;
    height: calc(100vh - 60px) !important;
    background-color: var(--primary-color) !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    padding: 40px 20px !important;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1) !important;
    z-index: 1001 !important;
  }

  .navbar .nav-links.show {
    right: 0 !important;
  }

  .navbar .nav-link {
    width: 100% !important;
    padding: 12px 0 !important;
    font-size: 1.1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
}

.navbar .nav-link {
  color: white !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  opacity: 0.9 !important;
  transition: var(--transition-standard) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 5px 0 !important;
}

.navbar .nav-link:hover {
  opacity: 1 !important;
  color: var(--accent-color) !important;
}

/* Active navigation link */
.navbar .nav-link.active {
  color: var(--accent-color) !important;
  font-weight: 600 !important;
  opacity: 1 !important;
}

/* Home link in navigation */
.navbar .home-link {
  margin-left: 10px !important;
}

/* Main Content */
.main-content {
  padding: 0 0 60px;
}

/* Standardized Article HeroSection */
.article-hero {
  padding: 80px 0 60px;
  background: white;
  text-align: center;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.article-hero .container {
  max-width: 900px !important;
  margin: 0 auto !important;
}

.article-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 24px;
  line-height: 1.2;
}

.article-hero .lead-text {
  font-size: 1.25rem;
  color: #555;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 800px;
}

.article-hero .accent-rule {
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  margin: 0 auto 32px;
  border-radius: 2px;
}

.container-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.intro-text {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}

.section-description {
  color: #555;
  margin-bottom: 2rem;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.card {
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-standard);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.card-icon {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(30, 86, 49, 0.1);
  color: var(--primary-color);
  font-size: 3rem;
}

.card-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.card-text {
  color: #555;
  margin-bottom: 15px;
  flex-grow: 1;
  font-size: 0.95rem;
}

.card-footer {
  padding: 0 20px 20px 20px;
  background: none;
  border: none;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  transition: var(--transition-standard);
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: 1px solid var(--primary-color);
}

.btn-primary:hover {
  background-color: #164525;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: rgba(30, 86, 49, 0.1);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.8rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* Project Info Section */
.project-info {
  background-color: #f5f5f5;
  padding: 40px 0;
  margin-top: 30px;
}

.info-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.info-card {
  background-color: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.info-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.info-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

/* Minimized About Section */
.project-info-compact {
  background-color: #f5f5f5;
  padding: 20px 0;
  margin-top: 30px;
  border-radius: 8px;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.about-item {
  display: flex;
  align-items: center;
  margin: 10px 0;
  padding: 0 15px;
  color: var(--text-dark);
}

.about-item i {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-right: 10px;
}

.about-item span,
.about-item a {
  font-size: 0.95rem;
}

.about-item a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-standard);
}

.about-item a:hover {
  text-decoration: underline;
}

.about-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-standard);
}

.about-link:hover {
  color: #164525;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: white;
  padding: 30px 0;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-left {
  opacity: 0.9;
}

.footer-right a {
  color: white;
  text-decoration: none;
  margin-left: 15px;
  opacity: 0.9;
  transition: var(--transition-standard);
}

.footer-right a:hover {
  opacity: 1;
  color: var(--accent-color);
}

/* =========================================
   Export Engine - Recording Overlay
   ========================================= */
.recording-overlay {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: rgba(30, 86, 49, 0.95);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: opacity 0.3s ease;
}

.recording-pulse {
  width: 12px;
  height: 12px;
  background-color: #ff4d4d;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
  animation: recPulse 1.5s infinite;
}

@keyframes recPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(255, 77, 77, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
  }
}

/* Animations */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.4;
  }

  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

@keyframes grow {
  0% {
    opacity: 0;
    transform-origin: left center;
    transform: scaleX(0) rotate(var(--rotation, 30deg));
  }

  50% {
    opacity: 1;
    transform-origin: left center;
    transform: scaleX(1) rotate(var(--rotation, 30deg));
  }

  100% {
    opacity: 0;
    transform-origin: left center;
    transform: scaleX(0) rotate(var(--rotation, 30deg));
  }
}

/* Chart Section Styles */
.chart-section {
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  padding: 25px;
  margin-bottom: 40px;
}

.chart-explanation {
  margin-bottom: 30px;
  background-color: rgba(30, 86, 49, 0.05);
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.chart-explanation h2 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.chart-explanation p {
  line-height: 1.6;
  margin-bottom: 15px;
  color: #444;
}

.chart-explanation p:last-child {
  margin-bottom: 0;
}

.chart-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
}

.axis-label {
  font-size: 12px;
  fill: #555;
  font-family: 'Montserrat', sans-serif;
}

.legend {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-right: 20px;
  margin-bottom: 10px;
}

.legend-color {
  width: 15px;
  height: 15px;
  margin-right: 5px;
  border-radius: 50%;
}

@media (max-width: 992px) {
  .chart-section {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .chart-container {
    height: 400px;
  }

  .chart-explanation h2 {
    font-size: 1.3rem;
  }

  .chart-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .chart-section {
    padding: 15px;
  }

  .chart-explanation {
    padding: 15px;
  }

  .chart-container {
    padding: 10px;
  }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  .hero-text {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .quick-access {
    width: 100%;
    max-width: 450px;
  }

  .quick-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .quick-link {
    width: auto;
  }

  .about-container {
    justify-content: center;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }

  .navbar-brand {
    font-size: 1.3rem;
  }

  .nav-links {
    gap: 15px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer-right {
    margin-top: 10px;
  }

  .hero {
    min-height: auto;
    padding: 30px 0;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .tennis-court {
    opacity: 0.05;
    width: 100%;
    transform: rotate(0) scale(1.2);
  }

  .quick-links {
    flex-direction: column;
  }

  .about-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-item {
    margin: 8px 0;
  }
}

@media (max-width: 576px) {
  .header h1 {
    font-size: 1.7rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-group .btn {
    width: 100%;
    margin-bottom: 5px;
  }
}

/* Tooltip for charts */
#shared-tooltip {
  position: absolute;
  text-align: left;
  padding: 8px 12px;
  font: 12px sans-serif;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Social Share FAB (Floating Action Button) */
.social-share-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.fab-trigger {
  background: var(--primary-color);
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.fab-trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  background: #164525;
}

.fab-trigger i {
  font-size: 1.2rem;
  color: white;
}

.fab-options {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.fab-options.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fab-options .share-btn {
  background: white;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fab-options .share-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fab-options .share-btn i {
  font-size: 1rem;
  color: #666;
  transition: color 0.2s ease;
}

.fab-options .twitter:hover {
  background: #000000;
  border-color: #000000;
}

.fab-options .twitter:hover i {
  color: white;
}

.fab-options .linkedin:hover {
  background: #0077b5;
  border-color: #0077b5;
}

.fab-options .linkedin:hover i {
  color: white;
}

.fab-options .facebook:hover {
  background: #4267B2;
  border-color: #4267B2;
}

.fab-options .facebook:hover i {
  color: white;
}

.fab-options .reddit:hover {
  background: #ff4500;
  border-color: #ff4500;
}

.fab-options .reddit:hover i {
  color: white;
}

/* Mobile adjustments for FAB */
@media (max-width: 768px) {
  .social-share-fab {
    bottom: 80px;
    /* Move up to avoid mobile browser controls */
    right: 16px;
  }

  .fab-trigger {
    width: 50px;
    height: 50px;
  }

  .fab-trigger i {
    font-size: 1.1rem;
  }

  .fab-options .share-btn {
    width: 40px;
    height: 40px;
  }

  .fab-options .share-btn i {
    font-size: 0.9rem;
  }
}

/* Recording Overlay */
.recording-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  flex-direction: column;
  gap: 15px;
}

.recording-pulse {
  width: 20px;
  height: 20px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulse-red 1s infinite;
}

@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}