/* ============================================================
   BEGINNER TOOLS PAGES - Modern Design Enhancement
   Pour les pages d'outils débutants (FR, EN, AR)
   ============================================================ */

/* ============= TABLE OF CONTENTS ============= */
.toc {
  margin: 50px 0;
  padding: 30px;
  background: linear-gradient(135deg, var(--dark2), var(--dark3));
  border: 1px solid var(--gold-dim);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(201, 168, 76, 0.1);
}

.toc h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: 25px;
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.toc-grid a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--dark4);
  border: 1px solid var(--dark3);
  border-radius: 10px;
  color: var(--cream);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.toc-grid a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gold);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.toc-grid a:hover {
  background: var(--gold-soft);
  border-color: var(--gold-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.2);
}

.toc-grid a:hover::before {
  transform: scaleY(1);
}

/* ============= PROGRESSION ============= */
.progression {
  margin: 60px 0;
  padding: 40px;
  background: linear-gradient(135deg, var(--dark2), var(--dark3));
  border: 1px solid var(--gold-dim);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.progression::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--gold-soft), transparent);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.2;
}

.progression h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.prog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.prog-col {
  background: var(--dark4);
  border: 1px solid var(--dark3);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.prog-col::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.prog-col.beginner::before {
  background: linear-gradient(90deg, var(--accent-green), var(--accent-teal));
}

.prog-col.intermediate::before {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
}

.prog-col.advanced::before {
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-burgundy));
}

.prog-col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gold-dim);
}

.prog-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.prog-col li {
  padding: 8px 0;
  color: var(--cream-dim);
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
  padding-left: 20px;
}

.prog-col li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 600;
}

/* ============= TOOL CATEGORY ============= */
.tool-category {
  margin: 80px 0;
  scroll-margin-top: 100px;
}

.tool-category-header {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
  padding: 30px;
  background: linear-gradient(135deg, var(--dark2), var(--dark3));
  border: 1px solid var(--gold-dim);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.tool-category-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--gold-soft), transparent);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.3;
}

.tool-category-icon {
  font-size: 3rem;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(201, 168, 76, 0.3);
  flex-shrink: 0;
}

.tool-category-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--cream);
  margin-bottom: 12px;
  position: relative;
}

.tool-category-info p {
  color: var(--cream-dim);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============= TOOL GRID ============= */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

/* ============= TOOL CARD ============= */
.tool-card {
  background: linear-gradient(145deg, var(--dark2), var(--dark3));
  border: 1px solid var(--dark4);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(201, 168, 76, 0.15);
  border-color: var(--gold-dim);
}

.tool-card:hover::before {
  transform: scaleX(1);
}

.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 16px;
}

.tool-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 6px;
}

.tool-price {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  text-align: right;
  padding: 6px 12px;
  background: var(--gold-soft);
  border-radius: 6px;
  white-space: nowrap;
}

.tool-desc {
  color: var(--cream-dim);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
  min-height: 60px;
}

.tool-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tool-tag {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tool-tag.essential {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-teal));
  color: var(--dark);
}

.tool-tag.beginner {
  background: var(--accent-blue);
  color: var(--cream);
}

.tool-tag.pro {
  background: var(--accent-burgundy);
  color: var(--cream);
}

.tool-brands {
  color: var(--cream-dim);
  font-size: 0.8rem;
  padding: 10px 14px;
  background: var(--dark4);
  border-radius: 8px;
  border-left: 3px solid var(--gold);
}

.tool-brands strong {
  color: var(--gold);
}

/* ============= ANIMATIONS ============= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tool-card {
  animation: fadeInUp 0.5s ease backwards;
}

.tool-card:nth-child(1) { animation-delay: 0.05s; }
.tool-card:nth-child(2) { animation-delay: 0.1s; }
.tool-card:nth-child(3) { animation-delay: 0.15s; }
.tool-card:nth-child(4) { animation-delay: 0.2s; }
.tool-card:nth-child(5) { animation-delay: 0.25s; }
.tool-card:nth-child(6) { animation-delay: 0.3s; }

/* ============= RESPONSIVE DESIGN ============= */
@media (max-width: 768px) {
  .toc {
    padding: 20px;
  }

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

  .tool-category-header {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .tool-category-icon {
    margin: 0 auto;
  }

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

  .tool-header {
    flex-direction: column;
  }

  .tool-price {
    text-align: left;
  }

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

/* ============= ARABIC RTL SUPPORT ============= */
[dir="rtl"] .tool-category-header {
  flex-direction: row-reverse;
}

[dir="rtl"] .tool-category-header::before {
  right: auto;
  left: 0;
}

[dir="rtl"] .tool-brands {
  border-left: none;
  border-right: 3px solid var(--gold);
  text-align: right;
}

[dir="rtl"] .prog-col li {
  padding-left: 0;
  padding-right: 20px;
}

[dir="rtl"] .prog-col li::before {
  left: auto;
  right: 0;
}

@media (max-width: 768px) {
  [dir="rtl"] .tool-category-header {
    flex-direction: column;
  }

  [dir="rtl"] .tool-category-icon {
    margin: 0 auto;
  }
}