/* ==========================================
   ABOG Integration - Courses Styles
   Modern Cards, Modal & Professional Design
   ========================================== */

/* Course Grid */
.abog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

/* Course Filters */
.abog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px;
  background: var(--abog-bg-alt);
  border-radius: 12px;
  margin-bottom: 24px;
  align-items: flex-end;
}

.abog-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
  flex: 1;
}

.abog-filter-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--abog-text-light);
}

.abog-filter-select {
  padding: 10px 14px;
  border: 1px solid var(--abog-border);
  border-radius: 8px;
  background: var(--abog-bg);
  color: var(--abog-text);
  font-size: 14px;
  cursor: pointer;
  transition: var(--abog-transition);
}

.abog-filter-select:hover {
  border-color: var(--abog-primary);
}

.abog-filter-select:focus {
  outline: none;
  border-color: var(--abog-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.abog-btn-clear-filters {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--abog-border);
  border-radius: 8px;
  color: var(--abog-text-light);
  font-size: 14px;
  cursor: pointer;
  transition: var(--abog-transition);
}

.abog-btn-clear-filters:hover {
  background: var(--abog-bg);
  color: var(--abog-primary);
  border-color: var(--abog-primary);
}

@media (max-width: 768px) {
  .abog-filters {
    flex-direction: column;
  }
  
  .abog-filter-group {
    width: 100%;
  }
  
  .abog-btn-clear-filters {
    width: 100%;
  }
}

/* Course Card */
.abog-course-card {
  position: relative;
  background: var(--abog-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--abog-shadow);
  transition: var(--abog-transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--abog-border);
  border-left: 3px solid transparent;
}

.abog-course-card:hover {
  transform: translateY(-6px);
  border-left-color: var(--abog-primary);
  box-shadow: 
    0 20px 25px -5px rgba(37, 99, 235, 0.1),
    0 10px 10px -5px rgba(37, 99, 235, 0.08),
    var(--abog-shadow-primary);
}

/* Image Section */
.abog-card-image {
  position: relative;
  width: 100%;
  height: 240px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.5s ease;
}

.abog-course-card:hover .abog-card-image {
  transform: scale(1.08);
}

/* Gradient overlay na imagem */
.abog-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  pointer-events: none;
}

/* Badge de área/categoria */
.abog-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, var(--abog-primary) 0%, var(--abog-primary-dark) 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
  z-index: 2;
}

/* Content Section */
.abog-card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.abog-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--abog-text);
  margin: 0 0 20px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 56px;
}

/* Meta Items (modalidade, carga horária) */
.abog-card-info {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.abog-card-info::-webkit-scrollbar {
  display: none;
}

.abog-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--abog-text);
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.abog-info-item svg {
  color: var(--abog-primary);
  flex-shrink: 0;
}

/* Footer do Card */
.abog-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--abog-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.abog-course-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--abog-text-light);
  font-weight: 500;
}

.abog-course-date svg {
  color: var(--abog-primary);
  flex-shrink: 0;
}

/* Immediate Start Highlight */
.abog-immediate-start {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white !important;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  animation: pulse-immediate 2s ease-in-out infinite;
}

.abog-immediate-start svg {
  color: white;
}

@keyframes pulse-immediate {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5);
  }
}

/* Waiting List Highlight */
.abog-waiting-list {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white !important;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.abog-waiting-list svg {
  color: white;
}

.abog-vacancies {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--abog-success);
  background: rgba(16, 185, 129, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.abog-vacancies.abog-course-full {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
  font-weight: 700;
}

/* CTA Hover Effect */
.abog-course-cta {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  background: var(--abog-bg-alt);
  border-radius: 8px;
  color: var(--abog-primary);
  font-weight: 600;
  font-size: 14px;
  transition: var(--abog-transition);
}

.abog-course-card:hover .abog-course-cta {
  display: flex;
}

/* Modal */
.abog-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow-y: auto;
  padding: 20px;
}

.abog-modal.active {
  display: block;
}

.abog-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

.abog-modal-content {
  position: relative;
  max-width: 1100px;
  margin: 40px auto;
  background: var(--abog-bg);
  border-radius: 20px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(0, 0, 0, 0.05),
    var(--abog-shadow-primary);
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.abog-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--abog-text);
  border: 2px solid var(--abog-border);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 300;
  transition: var(--abog-transition);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.abog-modal-close:hover {
  background: var(--abog-primary);
  color: white;
  border-color: var(--abog-primary);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* Course Detail */
.abog-course-detail {
  display: flex;
  flex-direction: column;
}

.abog-detail-header {
  position: relative;
  height: 360px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--abog-primary) 0%, var(--abog-primary-dark) 100%);
}

.abog-detail-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

/* Gradient overlay no header - mais sofisticado */
.abog-detail-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
  pointer-events: none;
}

.abog-detail-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 40px;
  z-index: 2;
}

.abog-detail-title h2 {
  font-size: 36px;
  font-weight: 700;
  color: white;
  margin: 8px 0 12px 0;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.abog-detail-title .abog-badge {
  position: static;
  display: inline-block;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--abog-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.abog-detail-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.abog-detail-meta span {
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.abog-detail-body {
  padding: 0;
  display: flex;
  gap: 32px;
}

.abog-detail-main {
  flex: 1;
  padding: 40px;
}

.abog-detail-sidebar {
  width: 360px;
  padding: 40px 40px 40px 0;
  border-left: 1px solid var(--abog-border);
}

/* Tabs */
.abog-detail-tabs {
  display: flex;
  gap: 4px;
  background: var(--abog-bg-alt);
  padding: 8px;
  border-radius: 12px;
  margin: 32px 40px 0 40px;
}

.abog-tab-btn {
  flex: 1;
  padding: 14px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--abog-text-light);
  position: relative;
  transition: var(--abog-transition);
  border-radius: 8px;
}

.abog-tab-btn:hover {
  color: var(--abog-primary);
  background: rgba(37, 99, 235, 0.05);
}

.abog-tab-btn.active {
  color: var(--abog-primary);
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.abog-tab-content {
  display: none;
  animation: fadeInContent 0.4s ease;
}

.abog-tab-content.active {
  display: block;
}

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

.abog-section {
  margin-bottom: 32px;
}

.abog-section h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--abog-text);
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--abog-bg-alt);
}

.abog-section p,
.abog-tab-content p {
  line-height: 1.8;
  color: var(--abog-text);
  margin: 0 0 16px 0;
  font-size: 15px;
}

.abog-program {
  background: var(--abog-bg-alt);
  padding: 20px;
  border-radius: 8px;
  border-left: 3px solid var(--abog-primary);
  font-family: inherit;
  white-space: pre-wrap;
  line-height: 1.7;
  color: var(--abog-text);
}

/* Price Card in Sidebar */
.abog-price-card {
  background: linear-gradient(135deg, var(--abog-primary) 0%, var(--abog-primary-dark) 100%);
  padding: 32px;
  border-radius: 16px;
  color: white;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
  margin-bottom: 24px;
}

.abog-price-main {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 24px;
}

.abog-price-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
  margin-bottom: 8px;
}

.abog-price-value {
  display: block;
  font-size: 42px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.abog-price-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.abog-price-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.abog-price-item svg {
  flex-shrink: 0;
  opacity: 0.9;
}

/* Lead Form */
.abog-lead-form {
  background: white;
  padding: 0;
  margin-top: 0;
  border: none;
  border-radius: 0;
}

.abog-lead-form h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--abog-text);
  margin: 0 0 20px 0;
}

.abog-form-row {
  margin-bottom: 20px;
}

.abog-form-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--abog-text);
  margin-bottom: 8px;
}

.abog-form-row input,
.abog-form-row textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--abog-border);
  border-radius: 10px;
  font-size: 15px;
  transition: var(--abog-transition);
  font-family: inherit;
  background: var(--abog-bg);
}

.abog-form-row input:focus,
.abog-form-row textarea:focus {
  outline: none;
  border-color: var(--abog-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
  background: white;
}

.abog-btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--abog-primary) 0%, var(--abog-primary-dark) 100%);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--abog-transition);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.abog-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.abog-btn-primary:active {
  transform: translateY(0);
}

.abog-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.abog-spinner-small {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.abog-form-message {
  padding: 14px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
}

.abog-form-message.success {
  background: rgba(16, 185, 129, 0.1);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.abog-form-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
  .abog-detail-body {
    flex-direction: column;
  }
  
  .abog-detail-sidebar {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--abog-border);
    padding: 40px;
  }
}

@media (max-width: 768px) {
  .abog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .abog-modal {
    padding: 0;
  }
  
  .abog-modal-content {
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
  }
  
  .abog-detail-header {
    height: 240px;
  }
  
  .abog-detail-title {
    padding: 24px;
  }
  
  .abog-detail-title h2 {
    font-size: 24px;
  }
  
  .abog-detail-tabs {
    margin: 24px 20px 0 20px;
    flex-direction: column;
    gap: 8px;
  }
  
  .abog-detail-main {
    padding: 24px;
  }
  
  .abog-detail-sidebar {
    padding: 24px;
  }
  
  .abog-price-card {
    padding: 24px;
  }
  
  .abog-price-value {
    font-size: 32px;
  }
  
  .abog-section h3 {
    font-size: 18px;
  }
  
  .abog-card-title {
    font-size: 18px;
    min-height: auto;
  }
  
  .abog-card-image {
    height: 200px;
  }
  
  .abog-card-content {
    padding: 20px;
  }
  
  .abog-badge {
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    font-size: 10px;
  }
  
  .abog-modal-close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}

/* ==========================================
   Badge Row + Course Type Badges (April 2026)
   ========================================== */
.abog-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.abog-badge-type {
  color: white;
  border: none;
}

.abog-badge-type-especializacao,
.abog-badge-type-imersao,
.abog-badge-type-aperfeicoamento,
.abog-badge-type-workshop,
.abog-badge-type-palestra {
  background: transparent !important;
  color: var(--abog-text) !important;
}
