/* Blog Shortcode Styles - FAQ and Callouts */

/* FAQ Section */
.faq-section {
  margin: 3rem 0;
}

.faq-header {
  margin-bottom: 2rem;
}

.faq-header h2 {
  margin: 0 0 0.5rem 0;
  color: var(--color-primary);
  font-size: 1.8rem;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 0.5rem;
}

.faq-header p {
  margin: 0.5rem 0 0 0;
  color: var(--color-text-secondary);
  font-size: 1.1rem;
}

.faq-container {
  padding: 0;
}

/* FAQ Items */
.faq-item {
  border-bottom: 1px solid var(--border-color, #e5e7eb);
  margin-bottom: 0;
  transition: all 0.2s ease;
  background: transparent;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item:hover {
  background: rgba(30, 64, 175, 0.02);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1rem;
  cursor: pointer;
  user-select: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: all 0.2s ease;
}

.faq-question:hover {
  background: rgba(30, 64, 175, 0.05);
}

.faq-question:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.faq-question h3 {
  margin: 0;
  color: var(--color-text, #1F2937);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  flex: 1;
  padding-right: 1rem;
}

.faq-icon {
  color: var(--color-primary, #1E40AF);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1rem 1.5rem 1rem;
  animation: fadeIn 0.2s ease;
}

.faq-content {
  color: var(--color-text);
  line-height: 1.6;
  padding-top: 0.5rem;
}

.faq-content p:last-child {
  margin-bottom: 0;
}

/* Callout Components */
.callout {
  margin: 2rem 0;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  border-left: 4px solid;
  position: relative;
  overflow: hidden;
}

/* Callout Types */
.callout-info {
  background: rgba(59, 130, 246, 0.1);
  border-left-color: #3b82f6;
  color: var(--color-text);
}

.callout-warning {
  background: rgba(245, 158, 11, 0.1);
  border-left-color: #f59e0b;
  color: var(--color-text);
}

.callout-danger {
  background: rgba(239, 68, 68, 0.1);
  border-left-color: #ef4444;
  color: var(--color-text);
}

.callout-success {
  background: rgba(34, 197, 94, 0.1);
  border-left-color: #22c55e;
  color: var(--color-text);
}

.callout-tip {
  background: rgba(168, 85, 247, 0.1);
  border-left-color: #a855f7;
  color: var(--color-text);
}

.callout-note {
  background: rgba(107, 114, 128, 0.1);
  border-left-color: #6b7280;
  color: var(--color-text);
}

.callout-header {
  margin-bottom: 1rem;
}

.callout-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.callout-info .callout-title {
  color: #1d4ed8;
}

.callout-warning .callout-title {
  color: #d97706;
}

.callout-danger .callout-title {
  color: #dc2626;
}

.callout-success .callout-title {
  color: #16a34a;
}

.callout-tip .callout-title {
  color: #9333ea;
}

.callout-note .callout-title {
  color: #374151;
}

.callout-icon {
  font-size: 1.2rem;
}

.callout-content {
  line-height: 1.6;
}

.callout-content p:last-child {
  margin-bottom: 0;
}

/* Animation keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .faq-header {
    padding: 1.5rem;
  }
  
  .faq-header h2 {
    font-size: 1.5rem;
  }
  
  .faq-question {
    padding: 1rem 0.75rem;
  }
  
  .faq-question h3 {
    font-size: 1rem;
  }
  
  .faq-answer {
    padding: 0 0.75rem 1rem 0.75rem;
  }
  
  .callout {
    padding: 1rem;
    margin: 1.5rem 0;
  }
}

@media (max-width: 576px) {
  .faq-header {
    padding: 1rem;
  }
  
  .faq-question {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .faq-question h3 {
    padding-right: 0;
  }
  
  .faq-icon {
    align-self: flex-end;
  }
}

/* Print Styles */
@media print {
  .faq-item {
    break-inside: avoid;
  }
  
  .faq-answer {
    display: block !important;
  }
  
  .faq-icon {
    display: none;
  }
  
  .callout {
    break-inside: avoid;
    border: 1px solid #000;
  }
}