/* Defensive Drills Specific Styles */

.drills-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  padding: 20px 0;
}

.drill-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid #e9ecef;
}

.drill-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.difficulty-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.difficulty-low {
  background-color: #38a169; /* Green */
}

.difficulty-medium {
  background-color: #dd6b20; /* Orange */
}

.difficulty-high {
  background-color: #c53030; /* Red */
}

.drill-header {
  padding: 20px 20px 10px;
}

.drill-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  cursor: pointer;
  transition: color 0.2s ease;
  padding-right: 60px;
  line-height: 1.4;
}

.drill-title:hover {
  color: #2b6cb0;
}

.drill-svg-container {
  padding: 20px;
  background: #f8fafc;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #edf2f7;
}

.drill-svg {
  max-width: 100%;
  height: auto;
  background: white;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.drill-actions {
  padding: 16px 20px;
  background: #fff;
  display: flex;
  justify-content: center;
  border-top: 1px solid #edf2f7;
}

.start-animation-btn {
  background: #2b6cb0;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(43, 108, 176, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.start-animation-btn:hover {
  background: #2c5282;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(43, 108, 176, 0.3);
}

.start-animation-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(43, 108, 176, 0.2);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  overflow-y: auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.modal-content {
  background: white;
  margin: 0 auto;
  padding: 40px;
  width: 100%;
  max-width: 900px;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: modalFadeIn 0.3s ease-out;
  border: 1px solid #e2e8f0;
}

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

.close-modal {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 28px;
  font-weight: 300;
  color: #718096;
  cursor: pointer;
  transition: all 0.2s ease;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-modal:hover {
  color: #2d3748;
  background-color: #f7fafc;
  transform: rotate(90deg);
}

.drill-details {
  margin-bottom: 40px;
}

.drill-details h2 {
  color: #2d3748;
  font-size: 1.8rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}

.drill-details h3 {
  color: #2d3748;
  font-size: 1.3rem;
  margin: 30px 0 15px;
  display: flex;
  align-items: center;
}

.drill-details h3::before {
  content: '→';
  color: #4299e1;
  margin-right: 10px;
  font-size: 1.5rem;
}

.drill-details p {
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 20px;
}

.drill-details ul, 
.drill-details ol {
  padding-left: 24px;
  margin: 15px 0;
}

.drill-details li {
  margin-bottom: 12px;
  line-height: 1.7;
  color: #4a5568;
  position: relative;
  padding-left: 8px;
}

.drill-details li::before {
  content: '•';
  color: #4299e1;
  font-weight: bold;
  position: absolute;
  left: -15px;
}

.drill-animation-preview {
  background: #f8fafc;
  padding: 25px;
  border-radius: 8px;
  margin-top: 30px;
  border: 1px solid #e2e8f0;
}

.drill-animation-preview h3 {
  margin-top: 0 !important;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
  color: #2d3748 !important;
}

.drill-animation-preview h3::before {
  content: '📺' !important;
  margin-right: 10px;
}

/* Filter Styles */
.filters-container {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
}

.filter-group {
  margin-bottom: 25px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group h3 {
  margin: 0 0 15px 0;
  color: #2d3748;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.drill-categories, 
.difficulty-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-btn, 
.difficulty-btn {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  text-align: center;
}

.category-btn:hover, 
.difficulty-btn:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
  transform: translateY(-1px);
}

.category-btn.active, 
.difficulty-btn.active {
  background: #2b6cb0;
  color: white;
  border-color: #2b6cb0;
  box-shadow: 0 2px 6px rgba(43, 108, 176, 0.2);
}

.difficulty-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.difficulty-dot.low { background-color: #38a169; }
.difficulty-dot.medium { background-color: #dd6b20; }
.difficulty-dot.high { background-color: #c53030; }

/* Responsive adjustments */
@media (max-width: 1024px) {
  .drills-container {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  
  .modal-content {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  
  .drills-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .filters-container {
    padding: 15px;
  }
  
  .category-btn, 
  .difficulty-btn {
    padding: 6px 14px;
    font-size: 0.85rem;
  }
  
  .modal-content {
    width: 95%;
    padding: 25px 20px;
    margin: 20px auto;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .drills-container {
    grid-template-columns: 1fr;
  }
  
  .category-btn, .difficulty-btn {
    padding: 4px 12px;
    font-size: 13px;
  }
}
