/* Training Priority Selector Styles */
:root {
  /* Main colors */
  --primary: #2e3440;
  --secondary: #434c5e;
  --accent: #5e81ac;
  --accent-light: #81a1c1;
  --success: #a3be8c;
  --warning: #ebcb8b;
  --error: #bf616a;
  --info: #88c0d0;
  --background: #eceff4;
  --surface: #ffffff;
  --border: #d8dee9;

  /* Text colors */
  --text-primary: #2e3440;
  --text-secondary: #4c566a;
  --text-muted: #6b7280;
  --text-on-primary: #ffffff;
  --text-on-accent: #ffffff;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
}

/* Donation Button Styles */
.donate-button-container {
    position: fixed;
    left: 50%;
    bottom: 15px;
    transform: translateX(-50%);
    z-index: 9999;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    filter: drop-shadow(0 3px 10px rgba(0,0,0,0.2));
    width: auto;
    max-width: 300px;
}

.donate-button {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #0070BA 0%, #1546A0 100%);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 18px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 112, 186, 0.3);
    position: relative;
    overflow: hidden;
    animation: float 3s infinite ease-in-out;
    width: 100%;
    white-space: nowrap;
    min-height: 44px; /* Mobile touch-friendly */
}

.donate-text-container {
    position: relative;
    overflow: hidden;
    width: 140px;
    height: 18px;
}

.donate-text {
    position: absolute;
    white-space: nowrap;
    animation: textScroll 18s linear infinite;
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
}

@keyframes textScroll {
    0% { transform: translateX(100%); }
    8% { transform: translateX(100%); }
    25% { transform: translateX(20%); }
    35% { transform: translateX(20%); }
    50% { transform: translateX(-50%); }
    65% { transform: translateX(-50%); }
    82% { transform: translateX(-100%); }
    92% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.donate-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 112, 186, 0.6);
    background: linear-gradient(135deg, #0086DE 0%, #1e5cc8 100%);
}

.donate-button:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 112, 186, 0.4);
}

.donate-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 60%);
    transition: all 0.4s ease;
}

.donate-button:hover::after {
    transform: translateY(-100%);
}

.donate-heart {
    color: #FF5E5B;
    animation: heartbeat 1.5s infinite;
    font-size: 1.1em;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    5% { transform: scale(1.2); }
    10% { transform: scale(1.1); }
    15% { transform: scale(1.2); }
    50% { transform: scale(1); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

.donate-label {
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 11px;
    border-radius: 4px;
    padding: 4px 8px;
    margin-top: 6px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.donate-button-container:hover .donate-label {
    opacity: 1;
    transform: translateY(0);
}

.tool-container {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--spacing-xl);
  margin: var(--spacing-xl) 0;
}

.tool-header {
  margin-bottom: var(--spacing-lg);
}

.tool-header h2 {
  color: var(--primary);
  margin-bottom: var(--spacing-sm);
  font-size: 1.8rem;
  font-weight: 700;
}

.tool-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Form Controls */
.form-section {
  margin-bottom: var(--spacing-xl);
}

.form-section h3 {
  margin-bottom: var(--spacing-md);
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 600;
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.form-group select,
.form-group input[type="text"],
.form-group input[type="number"] {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all 0.3s ease;
  color: var(--text-primary);
  background-color: var(--surface);
}

.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(94, 129, 172, 0.3);
}

/* Behavior Options */
.behavior-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.behavior-option {
  border: 1px solid var(--border);
  background-color: var(--surface);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.behavior-option:hover {
  border-color: var(--accent-light);
  transform: translateY(-2px);
}

.behavior-option.selected {
  background-color: rgba(94, 129, 172, 0.1);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.behavior-option span {
  display: block;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.behavior-option .behavior-icon {
  font-size: 2rem;
  margin-bottom: var(--spacing-xs);
}

/* Slider Controls */
.slider-container {
  margin-bottom: var(--spacing-lg);
}

.slider-container label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.slider-wrapper {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.slider {
  flex-grow: 1;
}

.slider input[type="range"] {
  width: 100%;
  height: 8px;
  background: linear-gradient(to right, var(--accent-light), var(--accent));
  border-radius: var(--radius-lg);
  appearance: none;
  cursor: pointer;
}

.slider input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.slider-value {
  font-weight: 600;
  color: var(--accent);
  width: 40px;
  text-align: center;
}

/* Submit Button */
.submit-button {
  background: linear-gradient(to right, var(--accent), var(--accent-light));
  color: var(--text-on-accent);
  padding: var(--spacing-md) var(--spacing-xl);
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  display: block;
  margin: var(--spacing-xl) auto;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Results Section */
.results-section {
  display: none;
  margin-top: var(--spacing-xxl);
}

.results-section.visible {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.results-header {
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.results-header h3 {
  color: var(--accent);
  font-size: 1.8rem;
  margin-bottom: var(--spacing-md);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.priority-card {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-lg);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.priority-number {
  font-size: 2rem;
  font-weight: 800;
  margin-right: var(--spacing-sm);
  color: var(--accent);
  display: inline-block;
  width: 45px;
  height: 45px;
  line-height: 45px;
  text-align: center;
  border-radius: 50%;
  background-color: rgba(94, 129, 172, 0.1);
  margin-bottom: var(--spacing-sm);
}

.priority-card h4 {
  color: var(--text-primary);
  font-size: 1.3rem;
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

.priority-card p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  line-height: 1.5;
  flex-grow: 1;
}

.priority-card .training-timeframe {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.9rem;
  margin-top: auto;
}

/* Priority levels */
.priority-high {
  border-left: 4px solid var(--error);
}

.priority-medium {
  border-left: 4px solid var(--warning);
}

.priority-low {
  border-left: 4px solid var(--success);
}

/* Progress Bar */
.progress-section {
  margin: var(--spacing-xxl) 0;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.progress-header h3 {
  font-size: 1.4rem;
  color: var(--text-primary);
}

.progress-header .progress-value {
  font-weight: 700;
  color: var(--accent);
}

.progress-bar {
  height: 12px;
  background-color: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--accent-light), var(--accent));
  border-radius: var(--radius-lg);
  width: 0;
  transition: width 1s ease;
}

.roadmap-container {
  margin-top: var(--spacing-xxl);
}

.roadmap-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  color: var(--text-primary);
  font-size: 1.8rem;
}

.roadmap-timeline {
  position: relative;
  padding: 20px 0;
}

.roadmap-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  background: linear-gradient(to bottom, var(--accent-light), var(--accent));
  border-radius: var(--radius-lg);
}

.timeline-item {
  position: relative;
  padding: var(--spacing-lg) 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-color: var(--accent);
  border-radius: 50%;
  z-index: 1;
  box-shadow: var(--shadow-sm);
}

.timeline-item.completed::before {
  background-color: var(--success);
}

.timeline-content {
  width: 45%;
  padding: var(--spacing-lg);
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -15px;
  transform: translateY(-50%);
  border-width: 15px 15px 15px 0;
  border-style: solid;
  border-color: transparent var(--surface) transparent transparent;
}

.timeline-item:nth-child(even) .timeline-content::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -15px;
  transform: translateY(-50%);
  border-width: 15px 0 15px 15px;
  border-style: solid;
  border-color: transparent transparent transparent var(--surface);
}

.timeline-content h4 {
  color: var(--accent);
  margin-bottom: var(--spacing-sm);
  font-size: 1.3rem;
}

.timeline-content p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-content .week-label {
  position: absolute;
  top: -15px;
  background-color: var(--accent);
  color: var(--text-on-accent);
  padding: 5px 15px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.9rem;
}

.timeline-item:nth-child(odd) .week-label {
  right: var(--spacing-md);
}

.timeline-item:nth-child(even) .week-label {
  left: var(--spacing-md);
}

/* Expert Tip Box */
.expert-tip {
  margin: var(--spacing-xxl) 0;
  padding: var(--spacing-xl);
  background: linear-gradient(135deg, rgba(163, 190, 140, 0.2), rgba(163, 190, 140, 0.05));
  border-left: 5px solid var(--success);
  border-radius: var(--radius-md);
  position: relative;
}

.expert-tip::before {
  content: "✓ EXPERT TIP";
  position: absolute;
  top: -12px;
  left: var(--spacing-lg);
  background-color: var(--success);
  color: white;
  padding: 5px 15px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.8rem;
}

.expert-tip h4 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  font-size: 1.3rem;
}

.expert-tip p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Product Promotion Section */
.product-promotion {
  margin: var(--spacing-xxl) 0;
  padding: var(--spacing-xl);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: var(--radius-lg);
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.product-promotion::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")
    repeat;
}

.product-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  position: relative;
  z-index: 1;
}

.product-image {
  flex: 0 0 200px;
  height: 200px;
  background-color: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  flex: 1;
  text-align: left;
}

.product-info h3 {
  margin-bottom: var(--spacing-md);
  font-size: 1.6rem;
  color: white;
}

.product-info p {
  margin-bottom: var(--spacing-md);
  opacity: 0.9;
  line-height: 1.7;
}

.product-info .ratings {
  color: #ffa500;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.product-cta {
  display: inline-block;
  background-color: white;
  color: var(--accent);
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  margin-top: var(--spacing-md);
}

.product-cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.product-guarantee {
  font-size: 0.9rem;
  margin-top: var(--spacing-sm);
  opacity: 0.8;
}

/* Social Sharing Section */
.social-sharing {
  margin-top: var(--spacing-xxl);
  text-align: center;
  padding: var(--spacing-xl) 0;
}

.social-sharing h3 {
  margin-bottom: var(--spacing-lg);
  font-size: 1.5rem;
  color: var(--text-primary);
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.social-btn {
  padding: var(--spacing-sm) var(--spacing-lg);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.social-btn i {
  font-size: 1.2rem;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-facebook {
  background-color: #1877f2;
}

.btn-twitter {
  background-color: #1da1f2;
}

.btn-linkedin {
  background-color: #0a66c2;
}

.btn-whatsapp {
  background-color: #25d366;
}

.btn-copy {
  background-color: #6c757d;
}

/* Responsive Design */
@media (max-width: 768px) {
  .product-content {
    flex-direction: column;
    text-align: center;
  }

  .product-image {
    width: 200px;
    margin: 0 auto;
  }

  .product-info {
    text-align: center;
  }

  .roadmap-timeline::before {
    left: 20px;
  }

  .timeline-item::before {
    left: 20px;
  }

  .timeline-content {
    width: 80%;
    margin-left: 50px !important;
  }

  .timeline-item:nth-child(odd) .timeline-content::before,
  .timeline-item:nth-child(even) .timeline-content::before {
    left: -15px;
    border-width: 15px 15px 15px 0;
    border-color: transparent var(--surface) transparent transparent;
  }

  .timeline-item:nth-child(odd) .week-label,
  .timeline-item:nth-child(even) .week-label {
    left: var(--spacing-md);
    right: auto;
  }
}

@media (max-width: 480px) {
  .tool-container {
    padding: var(--spacing-md);
  }

  .behavior-options {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .priority-card {
    padding: var(--spacing-md);
  }

  .timeline-content {
    width: 75%;
    padding: var(--spacing-md);
    margin-left: 40px !important;
  }
}