/**
 * Aviation Scholarships - Compact Card Styles
 * Version: 1.0.0
 */

/* Compact Grid */
.avs-scholarships-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
  margin: 32px 0;
  padding: 0;
}

@media (max-width: 768px) {
  .avs-scholarships-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Compact Card */
.avs-scholarship-card.avs-compact {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 15px rgba(0, 0, 0, 0.1);
  padding: 6% 8%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out;
}

/* .avs-scholarship-card.avs-compact:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1), 0 20px 48px rgba(0, 0, 0, 0.15);
} */

/* Version 2 */

.avs-closing-soon-scholarships-compact .avs-scholarship-card.avs-compact {
  background-color: var(--slate, #0071e3);
}

.avs-scholarship-card.avs-compact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--gp-primary-color, #0071e3),
    var(--gp-accent-color, #00c7be)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.avs-scholarship-card.avs-compact:hover::before {
  opacity: 1;
}

/* Staggered Animations */
.avs-scholarship-card.avs-compact:nth-child(1) {
  animation-delay: 0.05s;
}
.avs-scholarship-card.avs-compact:nth-child(2) {
  animation-delay: 0.1s;
}
.avs-scholarship-card.avs-compact:nth-child(3) {
  animation-delay: 0.15s;
}
.avs-scholarship-card.avs-compact:nth-child(4) {
  animation-delay: 0.2s;
}
.avs-scholarship-card.avs-compact:nth-child(5) {
  animation-delay: 0.25s;
}
.avs-scholarship-card.avs-compact:nth-child(6) {
  animation-delay: 0.3s;
}

/* Compact Details Grid */
.avs-details-grid.avs-compact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px 22px;
  background: #f1f3f4;
  border-radius: 10px;
}

.avs-closing-soon-scholarships-compact .avs-details-grid.avs-compact-grid {
  background-color: #ffffff;
}

@media (max-width: 480px) {
  .avs-details-grid.avs-compact-grid {
    /* grid-template-columns: 1fr; */
  }
}

.avs-category-label {
  display: inline-block;
  padding: 6px 14px;
  background: transparent;
  color: var(--accent);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--accent);
}

/* Status Badge Styles */
.avs-status-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid;
}

/* Status: Active */
.avs-status-active {
  background: linear-gradient(135deg, #34c759, #30d158);
  color: #000000;
  border-color: #34c759;
}

/* Status: Expired */
.avs-status-expired {
  background: linear-gradient(135deg, #ff9500, #ff9f0a);
  color: #ffffff;
  border-color: #ff9500;
}

/* Status: Discontinued */
.avs-status-discontinued {
  background: linear-gradient(135deg, #ff3b30, #ff453a);
  color: #ffffff;
  border-color: #ff3b30;
}

/* Favorites Plugin Button Wrapper */
.avs-fav-wrapper {
  display: inline-flex;
  align-items: center;
}

/* Style the Favorites plugin button */
.avs-fav-wrapper .simplefavorite-button {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  color: var(--accent, #0071e3) !important;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: none !important;
}

.avs-fav-wrapper .simplefavorite-button:hover,
.avs-fav-wrapper .simplefavorite-button:focus {
  color: var(--accent, #0071e3) !important;
  opacity: 0.8;
}

/* Active/favorited state */
.avs-fav-wrapper .simplefavorite-button.active {
  color: var(--accent, #0071e3) !important;
}

/* Hide the default text and show only icon */
.avs-fav-wrapper .simplefavorite-button i {
  font-size: 24px;
}

.avs-detail-label {
  color: #777777;
}

.avs-detail-value {
  font-weight: 500;
  color: var(--primary, #000000);
}

.avs-card-title {
  font-size: 24px;
  color: var(--primary, #000000);
}

/* Dual Button Layout */
.avs-card-footer.avs-dual-buttons {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-direction: row;
  gap: 12px;
}

@media (max-width: 480px) {
}

.avs-detail-content p {
  margin-bottom: 0;
}

.avs-detail-content .avs-detail-label {
  margin-bottom: 6px;
}

/* View Details Button */
.avs-details-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  padding: 10px 16px;
  background: transparent;
  color: var(--secondary, #0071e3);
  border: 2px solid var(--secondary, #0071e3);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.avs-details-btn:hover {
  background: var(--accent, #0071e3);
  border-color: var(--accent);
}

/* Apply Button */
.avs-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: var(--secondary, #0071e3);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.avs-apply-btn:hover {
  background: var(--accent, #0077ed);
  color: var(--primary, #000);
}

/* Modal (single version kept) */
.avs-modal-content {
  border: none;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.avs-modal-header {
  padding: 24px 28px 14px;
  border-bottom: 1px solid #e8e8ed;
  background: linear-gradient(135deg, #fafafa, #fff);
  border-radius: 18px 18px 0 0;
}

.avs-modal-title {
  font-size: 26px;
  color: var(--primary);
  font-weight: 500;
}

.avs-modal-body {
  padding: 32px;
  background: #ffffff;
}
.avs-modal-summary,
.avs-modal-req {
  padding: 0.5rem 1.5rem 2rem;
  background-color: var(--slate, #f5f5f7);
  border-radius: 10px;
}
.avs-modal-section {
  margin-bottom: 0;
  padding-top: 24px;
}

h6.avs-modal-section-title {
  color: var(--primary);
  padding-bottom: 10px;
  font-size: 20px;
}

.avs-modal-detail-item {
  padding: 0;
  background: var(--slate, #dddddd);
  transition: background 0.3s ease;
  border-bottom: 1px solid #cccccc;
  border-radius: 0;
  padding-bottom: 10px;
}
.avs-modal-detail-label {
  margin-bottom: 4px;
  color: #777777;
}

.avs-modal-detail-value {
  font-weight: 500;
  color: var(--primary, #000000);
}

.avs-modal-detail-item:hover {
  background: #f5f5f7;
}
.avs-modal-licenses {
  gap: 1rem;
  display: flex;
  flex-wrap: wrap;
}
.avs-modal-license-tag {
  font-size: 14px;
  color: #0e6d42;
  padding: 4px 16px;
  border: 1px solid var(--primary);
  background-color: var(--slate, #dddddd);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.modal-footer a {
  background: var(--secondary);
}
.modal-footer a:hover {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

/* Accessibility */
.avs-details-btn:focus-visible,
.avs-apply-btn:focus-visible {
  outline: 3px solid var(--gp-primary-color, #0071e3);
  outline-offset: 3px;
}

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

/* Responsive */
@media (max-width: 768px) {
  .avs-modal-header,
  .avs-modal-body,
  .avs-modal-footer {
    padding: 0 20px;
  }
}

  /* Favorite Button */
  .simplefavorite-button {
    color: var(--primary);
    font-size: 24px;
    cursor: pointer;
  }

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  /* Card */
  .avs-scholarship-card.avs-compact {
    background: #1c1c1e;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 0 10px 15px rgba(0, 0, 0, 0.2); */
  }

  /* .avs-scholarship-card.avs-compact:hover {
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4), 0 20px 48px rgba(0, 0, 0, 0.3);
    } */

  .avs-closing-soon-scholarships-compact .avs-scholarship-card.avs-compact {
    background-color: #2c2c2e;
  }

  /* Card Title */
  .avs-card-title {
    color: #f5f5f7;
  }

  /* Details Grid */
  .avs-details-grid.avs-compact-grid {
    background: #2c2c2e;
  }

  .avs-closing-soon-scholarships-compact .avs-details-grid.avs-compact-grid {
    background-color: #3a3a3c;
  }

  /* Detail Labels & Values */
  .avs-detail-label {
    color: #98989d;
  }

  .avs-detail-value {
    color: #f5f5f7;
  }

  /* Category Label */
  .avs-category-label {
    color: var(--accent);
  }

  /* Status Badges in Dark Mode */
  .avs-status-active {
    background: linear-gradient(135deg, #30d158, #32d760);
    border-color: #30d158;
  }

  .avs-status-expired {
    background: linear-gradient(135deg, #ff9f0a, #ffa714);
    border-color: #ff9f0a;
  }

  .avs-status-discontinued {
    background: linear-gradient(135deg, #ff453a, #ff4f44);
    border-color: #ff453a;
  }

  /* Buttons */
  .avs-details-btn {
    color: var(--accent);
    border-color: var(--accent);
  }

  .avs-details-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
  }

  .avs-apply-btn {
    background: var(--secondary);
    color: var(--white, #ffffff);
  }

  .avs-apply-btn:hover {
    background: var(--accent);
    color: var(--primary);
  }

  /* Modal */
  .avs-modal-content {
    background: #1c1c1e;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  }

  .avs-modal-header {
    background: linear-gradient(135deg, #2c2c2e, #1c1c1e);
    border-bottom-color: #3a3a3c;
  }

  .avs-modal-title {
    color: #f5f5f7;
  }

  .avs-modal-body {
    background: #1c1c1e;
  }

  h6.avs-modal-section-title {
    color: #f5f5f7;
  }

  .avs-modal-summary,
  .avs-modal-req {
    background-color: #2c2c2e;
  }
  .avs-modal-detail-item {
    border-bottom: 1px solid #555555;
  }

  .avs-modal-detail-item {
    background: #2c2c2e;
  }

  .avs-modal-detail-item:hover {
    background: #3a3a3c;
  }

  .avs-modal-detail-label {
    color: #98989d;
  }

  .avs-modal-detail-value {
    color: #f5f5f7;
  }

  .avs-modal-license-tag {
    background-color: #2c2c2e;
    color: #30d158;
    border: 1px solid #48484a;
  }

  .avs-modal-license-tag:hover {
    background-color: #3a3a3c;
  }

  /* Modal Footer Buttons */
  .modal-footer .btn-secondary {
    background: #3a3a3c;
    border-color: #48484a;
    color: #f5f5f7;
  }

  .modal-footer .btn-secondary:hover {
    background: #48484a;
    border-color: #636366;
  }

  .modal-footer a {
    background: var(--accent);
    color: var(--dark-blue, #000000);
    border: 1px solid var(--accent);
  }

  .modal-footer a:hover {
    background: var(--accent-2);
    border: 1px solid var(--accent-2);
    color: var(--priamry, #000000);
  }

  /* Bootstrap Modal Close Button */
  .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
  }

  /* Favorite Button */
  .simplefavorite-button {
    color: var(--accent);
  }
}


