/* Mental Fatigue & Boredom Evaluator Styles */

/* Review Advertisement Styles */
.review-ad-section {
    margin: 40px 0;
    padding: 0 20px;
}

.review-ad-container {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #5E81AC;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.review-ad-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5E81AC, #88C0D0, #81A1C1, #5E81AC);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.review-ad-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #5E81AC;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(94, 129, 172, 0.3);
}

.review-ad-header h3 {
    color: #2E3440;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.review-ad-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.stars {
    color: #EBCB8B;
    font-size: 18px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.rating-text {
    color: #434C5E;
    font-weight: 600;
    font-size: 14px;
}

.review-ad-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border-left: 4px solid #A3BE8C;
    font-size: 13px;
    line-height: 1.4;
}

.highlight-item i {
    color: #5E81AC;
    font-size: 16px;
    min-width: 16px;
}

.review-ad-description {
    margin-bottom: 24px;
}

.review-ad-description p {
    color: #434C5E;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.review-ad-cta {
    text-align: center;
}

.review-ad-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #5E81AC 0%, #4C566A 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(94, 129, 172, 0.3);
    border: 2px solid transparent;
}

.review-ad-button:hover {
    background: linear-gradient(135deg, #4C566A 0%, #3B4252 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(94, 129, 172, 0.4);
    color: white;
    text-decoration: none;
}

.review-ad-subtitle {
    display: block;
    color: #6C757D;
    font-size: 12px;
    margin-top: 8px;
    font-style: italic;
}

/* Responsive design for review ad */
@media (max-width: 768px) {
    .review-ad-container {
        padding: 20px;
        margin: 0 10px;
    }
    
    .review-ad-header h3 {
        font-size: 20px;
    }
    
    .review-ad-highlights {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .highlight-item {
        padding: 10px;
        font-size: 12px;
    }
    
    .review-ad-button {
        padding: 12px 20px;
        font-size: 14px;
    }
}
/* 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;
}

.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);
}

: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);
}

.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 Checklist */
.behavior-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.behavior-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: var(--spacing-sm);
}

.behavior-item input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.behavior-item label {
  cursor: pointer;
  font-weight: normal;
}

/* 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);
}

/* Score Display */
.score-display {
  text-align: center;
  margin: var(--spacing-xl) 0;
}

.score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(to right, var(--accent-light), var(--accent));
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto var(--spacing-md) auto;
  box-shadow: var(--shadow-md);
}

.score-number {
  color: white;
  font-size: 2.5rem;
  font-weight: 800;
}

.score-label {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Assessment Results */
.assessment-results {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-top: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.assessment-results h4 {
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--border);
}

.result-category {
  margin-bottom: var(--spacing-lg);
}

.result-category h5 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
}

.activities-list {
  list-style-type: none;
  padding: 0;
}

.activities-list li {
  margin-bottom: var(--spacing-sm);
  padding-left: 25px;
  position: relative;
  line-height: 1.5;
}

.activities-list li:before {
  content: "✓";
  color: var(--success);
  position: absolute;
  left: 0;
  font-weight: bold;
}

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

.recommendation-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;
}

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

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

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

.recommendation-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: var(--spacing-sm);
}

/* 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;
}

/* Brain Games Section */
.brain-games-section {
  margin-top: var(--spacing-xxl);
}

.brain-games-section h3 {
  color: var(--text-primary);
  font-size: 1.6rem;
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.game-card {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

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

.game-image {
  height: 180px;
  background-color: var(--accent-light);
  position: relative;
  overflow: hidden;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-card:hover .game-image img {
  transform: scale(1.05);
}

.game-content {
  padding: var(--spacing-lg);
}

.game-content h4 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.game-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: var(--spacing-md);
}

.difficulty-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.difficulty-easy {
  background-color: rgba(163, 190, 140, 0.2);
  color: var(--success);
}

.difficulty-medium {
  background-color: rgba(235, 203, 139, 0.2);
  color: var(--warning);
}

.difficulty-hard {
  background-color: rgba(191, 97, 106, 0.2);
  color: var(--error);
}

/* 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;
  }

  .behavior-checklist {
    grid-template-columns: 1fr;
  }

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

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

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

  .score-circle {
    width: 100px;
    height: 100px;
  }

  .score-number {
    font-size: 2rem;
  }

  .assessment-results {
    padding: var(--spacing-md);
  }
}