/*
Theme Name: Viral Buzz team
Theme URI: https://viralbuzz.vn
Template: hello-elementor
Author: Viralweb Team
Author URI: https://viralbuzz.vn
Description: custom by Viral Buzz
Tags: accessibility-ready,flexible-header,custom-colors,custom-menu,custom-logo,featured-images,rtl-language-support,threaded-comments,translation-ready
Version: 3.4.3.1748324363
Updated: 2025-05-27 12:39:23
*/

/* ===== CSS Variables ===== */
:root {
  /* Floating Contact Button */
  --flc-size: 56px;
  --flc-gap: 12px;
  --flc-radius: 999px;
  --flc-ease: cubic-bezier(.22,.61,.36,1);
  --flc-bg: #2563eb;
  --flc-bg-hover: #1e40af;
  --flc-bg-phone: #16a34a;
  --flc-bg-zalo: #0a7cff;
  --flc-bg-fb: #1877F2;
  --flc-shadow: 0 10px 25px rgba(0,0,0,.18);
  --flc-z: 9999;
  
  /* Colors */
  --primary-color: #2563eb;
  --secondary-color: #64748b;
  --success-color: #16a34a;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --border-light: #e2e8f0;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Dark theme variables */
html[data-theme="dark"] {
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --border-light: #374151;
  --bg-light: #1f2937;
  --bg-white: #111827;
}

/* ===== Floating Contact Button ===== */
.flc-wrap {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: var(--flc-z);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--flc-gap);
  -webkit-tap-highlight-color: transparent;
}

.flc-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--flc-gap);
  opacity: 0;
  transform: translateY(10px) scale(.98);
  pointer-events: none;
  transition: all .28s var(--flc-ease);
}

.flc-wrap.is-open .flc-actions {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.flc-btn {
  width: var(--flc-size);
  height: var(--flc-size);
  border-radius: var(--flc-radius);
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--flc-shadow);
  transition: transform .18s var(--flc-ease), background .18s var(--flc-ease);
  will-change: transform;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
}

.flc-btn:hover {
  transform: translateY(-1px) scale(1.03);
}

.flc-btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.flc-main { 
  background: var(--flc-bg); 
}

.flc-main:hover { 
  background: var(--flc-bg-hover); 
}

.flc-phone { 
  background: var(--flc-bg-phone); 
}

.flc-phone:hover {
  background: #15803d;
}

.flc-zalo { 
  background: var(--flc-bg-zalo); 
}

.flc-zalo:hover {
  background: #0369a1;
}

.flc-fb { 
  background: var(--flc-bg-fb); 
}

.flc-fb:hover {
  background: #1565c0;
}

.flc-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===== Site Views Counter ===== */
.flc-views {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.flc-views__icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.flc-views__label {
  opacity: 0.8;
  font-weight: var(--font-weight-medium);
  font-size: 14px;
}

.flc-views__num {
  font-variant-numeric: tabular-nums;
  min-width: 3ch;
  font-weight: var(--font-weight-semibold);
  color: inherit;
}

/* Badge Style */
.flc-views.flc-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.flc-badge .flc-views__icon {
  color: rgba(255,255,255,.8);
}

.flc-badge .flc-views__num {
  color: white;
  font-weight: var(--font-weight-semibold);
}

/* Card Style */
.flc-views.flc-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
}

.flc-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.flc-card .flc-views__icon {
  color: var(--success-color);
}

.flc-card .flc-views__label {
  font-size: 14px;
  color: var(--text-secondary);
}

.flc-card .flc-views__num {
  font-size: 18px;
  color: var(--text-primary);
}

/* Inline Style */
.flc-views.flc-inline {
  gap: 6px;
  font-weight: var(--font-weight-medium);
  font-size: 14px;
  color: var(--text-secondary);
}

.flc-inline .flc-views__icon {
  color: var(--text-secondary);
}

.flc-inline .flc-views__num {
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold);
}

/* Dark theme overrides */
html[data-theme="dark"] .flc-views.flc-card {
  background: var(--bg-white);
  border-color: var(--border-light);
  color: var(--text-primary);
}

html[data-theme="dark"] .flc-card .flc-views__label {
  color: var(--text-secondary);
}

html[data-theme="dark"] .flc-card .flc-views__num {
  color: var(--text-primary);
}

/* ===== Back to Top Button ===== */
#flc-backtop {
  position: fixed;
  right: 20px;
  bottom: 100px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: none;
  place-items: center;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9998;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
}

#flc-backtop:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

#flc-backtop:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

#flc-backtop svg {
  transition: transform 0.2s ease;
}

#flc-backtop:hover svg {
  transform: translateY(-1px);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  :root {
    --flc-size: 52px;
    --flc-gap: 10px;
  }
  
  .flc-wrap {
    right: 16px;
    bottom: 16px;
  }
  
  #flc-backtop {
    right: 16px;
    bottom: 90px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 400px) {
  :root {
    --flc-size: 48px;
    --flc-gap: 8px;
  }
  
  .flc-wrap {
    right: 14px;
    bottom: 14px;
  }
  
  #flc-backtop {
    right: 14px;
    bottom: 85px;
    width: 40px;
    height: 40px;
  }
  
  .flc-views.flc-card {
    padding: 10px 12px;
  }
  
  .flc-card .flc-views__label {
    font-size: 13px;
  }
  
  .flc-card .flc-views__num {
    font-size: 16px;
  }
}

/* ===== Accessibility Improvements ===== */
@media (prefers-reduced-motion: reduce) {
  .flc-btn,
  .flc-actions,
  .flc-views,
  #flc-backtop {
    transition: none;
  }
  
  .flc-btn:hover,
  #flc-backtop:hover {
    transform: none;
  }
}

/* Focus styles for keyboard navigation */
.flc-btn:focus-visible,
#flc-backtop:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===== Performance Optimizations ===== */
.flc-btn,
#flc-backtop {
  will-change: transform;
  backface-visibility: hidden;
}

/* Prevent layout shift */
.flc-views__num {
  font-variant-numeric: tabular-nums;
  min-width: 3ch;
}

/* ===== Print Styles ===== */
@media print {
  .flc-wrap,
  #flc-backtop {
    display: none !important;
  }
}