/* Document Cards CSS - Styled to reflect actual document types */

/* ============================================
   Publication Year Tabs
   ============================================ */

.publication-year-tabs {
  margin-bottom: 30px;
}

.publication-year-tabs .nav-tabs {
  border-bottom: 2px solid #e0e0e0;
}

.publication-year-tabs .nav-item {
  margin: 0 5px;
}

.publication-year-tabs .nav-link {
  color: #666;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 12px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.publication-year-tabs .nav-link:hover {
  color: #2c5aa0;
  border-bottom-color: #2c5aa0;
  background: transparent;
}

.publication-year-tabs .nav-link.active {
  color: #2c5aa0;
  border-bottom-color: #2c5aa0;
  background: transparent;
  font-weight: 600;
}

@media (max-width: 768px) {
  .publication-year-tabs .nav-tabs {
    flex-wrap: wrap;
  }

  .publication-year-tabs .nav-item {
    margin: 5px;
  }

  .publication-year-tabs .nav-link {
    padding: 8px 15px;
    font-size: 14px;
  }
}

/* ============================================
   Base Card Styles
   ============================================ */

.document-card {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.document-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.document-card__header {
  position: relative;
  padding: 20px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.document-card__icon {
  font-size: 48px;
  color: #ffffff;
  z-index: 2;
  position: relative;
}

.document-card__header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.9;
  z-index: 1;
}

.document-card__body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.document-card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #2c3e50;
  line-height: 1.4;
}

.document-card__description {
  font-size: 14px;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.document-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #868e96;
  margin-bottom: 16px;
}

.document-card__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.document-card__footer {
  padding: 16px 24px;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.document-card__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.document-card__action:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.document-card__badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   PROCEEDINGS Card - Academic/Research Style
   ============================================ */

.document-card--proceedings {
  border-top: 4px solid #4a90e2;
}

.document-card--proceedings .document-card__header {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
}

.document-card--proceedings .document-card__header::before {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="50" opacity="0.1">📄</text></svg>');
  background-size: 60px 60px;
  background-repeat: repeat;
}

.document-card--proceedings .document-card__icon::before {
  content: "📚";
  font-size: 48px;
}

.document-card--proceedings .document-card__body {
  background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.document-card--proceedings .document-card__title {
  color: #2c3e50;
  border-left: 3px solid #4a90e2;
  padding-left: 12px;
}

.document-card--proceedings .document-card__badge {
  background: #e3f2fd;
  color: #1976d2;
}

.document-card--proceedings .document-card__action {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
}

.document-card--proceedings .document-card__action:hover {
  background: linear-gradient(135deg, #357abd 0%, #2a5f8f 100%);
}

/* ============================================
   RESOLUTIONS Card - Formal/Official Style
   ============================================ */

.document-card--resolutions {
  border-top: 4px solid #d32f2f;
}

.document-card--resolutions .document-card__header {
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
}

.document-card--resolutions .document-card__header::before {
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.05) 10px,
    rgba(255, 255, 255, 0.05) 20px
  );
}

.document-card--resolutions .document-card__icon::before {
  content: "⚖️";
  font-size: 48px;
}

.document-card--resolutions .document-card__body {
  background: #ffffff;
  position: relative;
}

.document-card--resolutions .document-card__body::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #d32f2f, #b71c1c);
}

.document-card--resolutions .document-card__title {
  color: #1a1a1a;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.document-card--resolutions .document-card__badge {
  background: #ffebee;
  color: #c62828;
}

.document-card--resolutions .document-card__action {
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
}

.document-card--resolutions .document-card__action:hover {
  background: linear-gradient(135deg, #b71c1c 0%, #8b0000 100%);
}

/* ============================================
   PASTORAL SYMPOSIUM Card - Symposium/Conference Style
   ============================================ */

.document-card--pastoral-symposium {
  border-top: 4px solid #7b1fa2;
}

.document-card--pastoral-symposium .document-card__header {
  background: linear-gradient(135deg, #7b1fa2 0%, #6a1b9a 100%);
}

.document-card--pastoral-symposium .document-card__header::before {
  background-image: linear-gradient(
      0deg,
      transparent 24%,
      rgba(255, 255, 255, 0.05) 25%,
      rgba(255, 255, 255, 0.05) 26%,
      transparent 27%,
      transparent 74%,
      rgba(255, 255, 255, 0.05) 75%,
      rgba(255, 255, 255, 0.05) 76%,
      transparent 77%,
      transparent
    ),
    linear-gradient(
      90deg,
      transparent 24%,
      rgba(255, 255, 255, 0.05) 25%,
      rgba(255, 255, 255, 0.05) 26%,
      transparent 27%,
      transparent 74%,
      rgba(255, 255, 255, 0.05) 75%,
      rgba(255, 255, 255, 0.05) 76%,
      transparent 77%,
      transparent
    );
  background-size: 20px 20px;
}

.document-card--pastoral-symposium .document-card__icon::before {
  content: "🎤";
  font-size: 48px;
}

.document-card--pastoral-symposium .document-card__body {
  background: #f3e5f5;
}

.document-card--pastoral-symposium .document-card__title {
  color: #4a148c;
}

.document-card--pastoral-symposium .document-card__description {
  color: #6a1b9a;
}

.document-card--pastoral-symposium .document-card__badge {
  background: #e1bee7;
  color: #4a148c;
}

.document-card--pastoral-symposium .document-card__action {
  background: linear-gradient(135deg, #7b1fa2 0%, #6a1b9a 100%);
}

.document-card--pastoral-symposium .document-card__action:hover {
  background: linear-gradient(135deg, #6a1b9a 0%, #4a148c 100%);
}

/* ============================================
   RANGELAND POLICY & ADVOCACY PAPERS Card - Policy/Advocacy Style
   ============================================ */

.document-card--rangeland-policy-advocacy {
  border-top: 4px solid #1976d2;
}

.document-card--rangeland-policy-advocacy .document-card__header {
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
  position: relative;
}

.document-card--rangeland-policy-advocacy .document-card__header::before {
  background: radial-gradient(
      circle at 20% 50%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    );
}

.document-card--rangeland-policy-advocacy .document-card__icon::before {
  content: "📋";
  font-size: 48px;
}

.document-card--rangeland-policy-advocacy .document-card__body {
  background: #e3f2fd;
}

.document-card--rangeland-policy-advocacy .document-card__title {
  color: #0d47a1;
  position: relative;
}

.document-card--rangeland-policy-advocacy .document-card__title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #1976d2, transparent);
  border-radius: 2px;
}

.document-card--rangeland-policy-advocacy .document-card__badge {
  background: #bbdefb;
  color: #0d47a1;
}

.document-card--rangeland-policy-advocacy .document-card__action {
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
}

.document-card--rangeland-policy-advocacy .document-card__action:hover {
  background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
}

/* ============================================
   STRATEGIC PLAN Card - Planning/Strategy Style
   ============================================ */

.document-card--strategic-plan {
  border-top: 4px solid #388e3c;
}

.document-card--strategic-plan .document-card__header {
  background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%);
}

.document-card--strategic-plan .document-card__header::before {
  background-image: linear-gradient(
      0deg,
      transparent 24%,
      rgba(255, 255, 255, 0.05) 25%,
      rgba(255, 255, 255, 0.05) 26%,
      transparent 27%,
      transparent 74%,
      rgba(255, 255, 255, 0.05) 75%,
      rgba(255, 255, 255, 0.05) 76%,
      transparent 77%,
      transparent
    ),
    linear-gradient(
      90deg,
      transparent 24%,
      rgba(255, 255, 255, 0.05) 25%,
      rgba(255, 255, 255, 0.05) 26%,
      transparent 27%,
      transparent 74%,
      rgba(255, 255, 255, 0.05) 75%,
      rgba(255, 255, 255, 0.05) 76%,
      transparent 77%,
      transparent
    );
  background-size: 20px 20px;
}

.document-card--strategic-plan .document-card__icon::before {
  content: "📊";
  font-size: 48px;
}

.document-card--strategic-plan .document-card__body {
  background: #f1f8f4;
}

.document-card--strategic-plan .document-card__title {
  color: #1b5e20;
  font-family: "Courier New", monospace;
}

.document-card--strategic-plan .document-card__description {
  color: #2e7d32;
}

.document-card--strategic-plan .document-card__badge {
  background: #e8f5e9;
  color: #2e7d32;
}

.document-card--strategic-plan .document-card__action {
  background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%);
}

.document-card--strategic-plan .document-card__action:hover {
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
}

/* ============================================
   CONSTITUTION Card - Legal/Governance Style
   ============================================ */

.document-card--constitution {
  border-top: 4px solid #d32f2f;
}

.document-card--constitution .document-card__header {
  background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
  position: relative;
}

.document-card--constitution .document-card__header::before {
  background: radial-gradient(
      circle at 20% 50%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    );
}

.document-card--constitution .document-card__icon::before {
  content: "⚖️";
  font-size: 48px;
}

.document-card--constitution .document-card__body {
  background: #ffebee;
}

.document-card--constitution .document-card__title {
  color: #b71c1c;
  position: relative;
}

.document-card--constitution .document-card__title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #d32f2f, transparent);
  border-radius: 2px;
}

.document-card--constitution .document-card__badge {
  background: #ffcdd2;
  color: #b71c1c;
}

.document-card--constitution .document-card__action {
  background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
}

.document-card--constitution .document-card__action:hover {
  background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
}

/* ============================================
   LEAFLETS/BROCHURES Card - Promotional/Informational Style
   ============================================ */

.document-card--leaflets {
  border-top: 4px solid #7b1fa2;
}

.document-card--leaflets .document-card__header {
  background: linear-gradient(135deg, #7b1fa2 0%, #6a1b9a 100%);
}

.document-card--leaflets .document-card__header::before {
  background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px
    );
}

.document-card--leaflets .document-card__icon::before {
  content: "📋";
  font-size: 48px;
}

.document-card--leaflets .document-card__body {
  background: linear-gradient(to bottom, #f3e5f5 0%, #ffffff 100%);
}

.document-card--leaflets .document-card__title {
  color: #6a1b9a;
  font-weight: 600;
}

.document-card--leaflets .document-card__description {
  color: #7b1fa2;
}

.document-card--leaflets .document-card__badge {
  background: #f3e5f5;
  color: #7b1fa2;
}

.document-card--leaflets .document-card__action {
  background: linear-gradient(135deg, #7b1fa2 0%, #6a1b9a 100%);
}

.document-card--leaflets .document-card__action:hover {
  background: linear-gradient(135deg, #6a1b9a 0%, #4a148c 100%);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  .document-card__header {
    min-height: 100px;
    padding: 16px;
  }

  .document-card__icon {
    font-size: 40px;
  }

  .document-card__body {
    padding: 20px;
  }

  .document-card__title {
    font-size: 18px;
  }

  .document-card__description {
    font-size: 13px;
  }

  .document-card__footer {
    padding: 12px 20px;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .document-card__action {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   Grid Layout Helper
   ============================================ */

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

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

/* ============================================
   Animation Effects
   ============================================ */

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

.document-card {
  animation: cardFadeIn 0.5s ease-out;
}

.document-card:nth-child(1) {
  animation-delay: 0.1s;
}
.document-card:nth-child(2) {
  animation-delay: 0.2s;
}
.document-card:nth-child(3) {
  animation-delay: 0.3s;
}
.document-card:nth-child(4) {
  animation-delay: 0.4s;
}
.document-card:nth-child(5) {
  animation-delay: 0.5s;
}
