/* Strategy Library Styles */

.strategy-library-section {
  background: #f8fafc;
  position: relative;
  overflow: hidden;
}

.strategy-library-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/shape/shape-3.png') no-repeat center;
  opacity: 0.02;
  pointer-events: none;
}

/* Strategy Filters */
.strategy-filters {
  margin-bottom: 50px;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 30px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 30px;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.filter-btn i {
  font-size: 16px;
}

.filter-btn:hover {
  background: #ffffff;
  border-color: #ff6b35;
  color: #ff6b35;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.2);
}

.filter-btn.active {
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
  border-color: #ff6b35;
  color: #ffffff;
  box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
}

/* Strategy Grid */
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

/* Strategy Card */
.strategy-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.strategy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ff6b35 0%, #ff8c5a 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.strategy-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(255, 107, 53, 0.15);
}

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

/* Strategy Header */
.strategy-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.strategy-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 28px;
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.strategy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.tag {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-intraday {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  color: #ffffff;
}

.tag-swing {
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  color: #ffffff;
}

.tag-options {
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
  color: #ffffff;
}

.tag-forex {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: #ffffff;
}

.tag-patterns {
  background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
  color: #ffffff;
}

/* Strategy Title */
.strategy-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.strategy-desc {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 25px 0;
  line-height: 1.6;
}

/* Strategy Stats */
.strategy-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 2px solid #f1f5f9;
}

.stat-item {
  display: block !important;
  text-align: center !important;
  padding: 15px 10px !important;
  background: #f8fafc !important;
  border-radius: 12px !important;
  transition: all 0.3s ease !important;
}

.stat-item:hover {
  background: #f1f5f9;
  transform: translateY(-3px);
}

.stat-label {
  display: block;
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  font-weight: 600;
}

.stat-value {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #1e293b !important;
}

.stat-value.success {
  color: #22c55e;
}

/* Strategy Details (Initially Hidden) */
.strategy-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, opacity 0.3s ease;
  opacity: 0;
}

.strategy-details.active {
  max-height: 2000px;
  opacity: 1;
  transition: max-height 0.8s ease-in, opacity 0.5s ease;
}

.strategy-details h4 {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin: 20px 0 12px 0;
}

.strategy-details h4:first-child {
  margin-top: 0;
}

.strategy-details ul {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
}

.strategy-details ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

.strategy-details ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #ff6b35;
  font-weight: 700;
  font-size: 16px;
}

.strategy-details p {
  font-size: 14px;
  color: #475569;
  margin: 0 0 15px 0;
  line-height: 1.6;
}

.strategy-details strong {
  color: #1e293b;
  font-weight: 600;
}

/* View Details Button */
.view-details-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  margin-top: 20px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.view-details-btn:hover {
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
  border-color: #ff6b35;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.view-details-btn i {
  transition: transform 0.3s ease;
}

.view-details-btn.active i {
  transform: rotate(180deg);
}

/* No Results Message */
.no-results {
  text-align: center;
  padding: 80px 20px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.no-results i {
  font-size: 60px;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.no-results h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 10px 0;
}

.no-results p {
  font-size: 15px;
  color: #64748b;
  margin: 0;
}

/* Strategy Info Section */
.strategy-info-section {
  margin-top: 60px;
}

.info-box {
  background: #ffffff;
  border-radius: 15px;
  padding: 35px 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  margin-bottom: 30px;
  border: 2px solid transparent;
}

.info-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(255, 107, 53, 0.15);
  border-color: #ff6b35;
}

.info-box i {
  font-size: 50px;
  color: #ff6b35;
  margin-bottom: 20px;
  display: block;
}

.info-box h4 {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 12px 0;
}

.info-box p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}

/* CTA Section */
.strategy-cta {
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-radius: 20px;
  margin-top: 60px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.strategy-cta h3 {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 15px 0;
}

.strategy-cta p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 30px 0;
}

.strategy-cta .btn-box {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.strategy-cta .theme-btn {
  padding: 15px 40px;
  font-size: 15px;
  font-weight: 600;
}

/* Responsive Design */
@media only screen and (max-width: 991px) {
  .strategy-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
  }

  .filter-tabs {
    padding: 20px;
  }

  .filter-btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  .strategy-card {
    padding: 25px;
  }

  .strategy-stats {
    gap: 10px;
  }

  .stat-item {
    padding: 12px 8px;
  }

  .stat-value {
    font-size: 16px;
  }
}

@media only screen and (max-width: 767px) {
  .strategy-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .filter-tabs {
    flex-direction: column;
    gap: 10px;
  }

  .filter-btn {
    width: 100%;
    justify-content: center;
  }

  .strategy-card h3 {
    font-size: 20px;
  }

  .strategy-stats {
    grid-template-columns: 1fr;
  }

  .strategy-header {
    flex-direction: column;
    gap: 15px;
  }

  .strategy-tags {
    width: 100%;
  }

  .strategy-cta h3 {
    font-size: 26px;
  }

  .strategy-cta .btn-box {
    flex-direction: column;
  }

  .strategy-cta .theme-btn {
    width: 100%;
  }
}

@media only screen and (max-width: 480px) {
  .strategy-card {
    padding: 20px;
  }

  .strategy-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .tag {
    font-size: 10px;
    padding: 4px 10px;
  }

  .info-box {
    padding: 25px 20px;
  }

  .strategy-cta {
    padding: 40px 25px;
  }
}

/* Animation Classes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.strategy-card.fade-in {
  animation: fadeInUp 0.5s ease;
}

/* Hidden Class for Filtering */
.strategy-card.hidden {
  display: none;
}
