/* ==========================================================
   MOHAMED SAID DIGITAL HISTORICAL ARCHIVE
   CARDS STYLESHEET (PREMIUM DARK & GOLD)
========================================================== */

/* ==========================================================
   DOCUMENT CARD
========================================================== */
.document-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #152338, #0f1b2d);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  overflow: hidden;
  transition: all 0.35s ease;
  cursor: pointer;
}

.document-card:hover {
  transform: translateY(-10px);
  border-color: #d4af37;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.document-image {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.document-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.document-card:hover .document-image img {
  transform: scale(1.08);
}

.document-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 8px 16px;
  border-radius: 30px;
  background: #d4af37;
  color: #111;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 5;
}

.document-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.document-title {
  font-size: 1.4rem;
  margin-bottom: 14px;
  line-height: 1.4;
  color: #fff;
}

.document-description {
  color: #aaa;
  margin-bottom: 22px;
  flex: 1;
}

.document-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  color: #aaa;
}

.document-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-weight: 700;
  color: #d4af37;
  transition: 0.3s;
}

.document-link:hover {
  gap: 18px;
}

/* ==========================================================
   FEATURED CARD
========================================================== */
.featured-card {
  background: linear-gradient(135deg, #182844, #0d1727);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 24px;
  overflow: hidden;
  transition: 0.35s;
}

.featured-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

/* ==========================================================
   PHOTO CARD (Historical Gallery)
========================================================== */
.photo-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #0f1b2d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.35s ease;
}

.photo-card:hover {
  transform: translateY(-10px);
  border-color: #d4af37;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.photo-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.photo-card:hover img {
  transform: scale(1.08);
}

.photo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
  background: linear-gradient(180deg, transparent, rgba(5, 11, 22, 0.95));
  opacity: 0;
  transition: 0.35s;
}

.photo-card:hover .photo-overlay {
  opacity: 1;
}

.photo-overlay h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #d4af37;
}

.photo-overlay p {
  font-size: 0.95rem;
  color: #ddd;
}

/* ==========================================================
   VIDEO CARD
========================================================== */
.video-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #0f1b2d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.35s;
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-10px);
  border-color: #d4af37;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.video-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: 0.45s;
}

.video-card:hover img {
  transform: scale(1.08);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #111;
  transition: 0.35s;
  box-shadow: 0 0 0 10px rgba(212, 175, 55, 0.2);
}

.video-card:hover .play-button {
  transform: translate(-50%, -50%) scale(1.12);
  background: #d4af37;
}

.video-info {
  padding: 24px;
}

.video-info h3 {
  color: #fff;
  margin-bottom: 10px;
}

.video-info p {
  color: #aaa;
  font-size: 0.9rem;
}

/* ==========================================================
   AUDIO CARD
========================================================== */
.audio-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: #0f1b2d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  transition: 0.35s;
  cursor: pointer;
}

.audio-card:hover {
  transform: translateY(-8px);
  border-color: #d4af37;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.audio-icon {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.15);
  color: #d4af37;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.audio-content {
  flex: 1;
}

.audio-content h3 {
  margin-bottom: 8px;
  color: #fff;
  font-size: 1.1rem;
}

.audio-duration {
  font-size: 0.9rem;
  color: #aaa;
}

/* ==========================================================
   PDF DOCUMENT CARD
========================================================== */
.pdf-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: linear-gradient(180deg, #16243a, #0f192a);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  transition: 0.35s;
  cursor: pointer;
}

.pdf-card:hover {
  transform: translateY(-8px);
  border-color: #d4af37;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.pdf-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(212, 175, 55, 0.15);
  color: #d4af37;
  font-size: 2.3rem;
  flex-shrink: 0;
}

.pdf-info {
  flex: 1;
}

.pdf-info h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #fff;
}

.pdf-info p {
  margin-bottom: 12px;
  color: #aaa;
  font-size: 0.9rem;
}

.pdf-meta {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  color: #aaa;
}

/* ==========================================================
   RELATED DOCUMENTS
========================================================== */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.related-card {
  background: #0f1b2d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 20px;
  transition: 0.35s;
  cursor: pointer;
}

.related-card:hover {
  transform: translateY(-6px);
  border-color: #d4af37;
}

.related-card h4 {
  margin-bottom: 12px;
  font-size: 1.1rem;
  color: #fff;
}

.related-card p {
  font-size: 0.92rem;
  color: #aaa;
}

/* ==========================================================
   SEARCH RESULT CARD
========================================================== */
.search-card {
  padding: 24px;
  background: #0f1b2d;
  border-left: 5px solid #d4af37;
  border-radius: 0 16px 16px 0;
  margin-bottom: 18px;
  transition: 0.35s;
  cursor: pointer;
}

.search-card:hover {
  transform: translateX(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.search-card h3 {
  margin-bottom: 10px;
  color: #fff;
}

.search-card p {
  color: #aaa;
}

.search-card mark {
  background: rgba(212, 175, 55, 0.25);
  color: #d4af37;
  padding: 2px 4px;
  border-radius: 4px;
}

/* ==========================================================
   LOADING SKELETON (Animation)
========================================================== */
.skeleton {
  background: linear-gradient(90deg, #172538 25%, #22334d 50%, #172538 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 16px;
}

.skeleton-image { height: 260px; margin-bottom: 20px; }
.skeleton-title { height: 22px; width: 80%; margin-bottom: 15px; }
.skeleton-text { height: 14px; margin-bottom: 10px; }

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================================
   EMPTY STATE
========================================================== */
.empty-state {
  padding: 80px 30px;
  text-align: center;
  background: #0f1b2d;
  border: 2px dashed rgba(212, 175, 55, 0.3);
  border-radius: 20px;
}

.empty-state i {
  font-size: 4rem;
  color: #d4af37;
  margin-bottom: 25px;
}

.empty-state h3 {
  margin-bottom: 15px;
  color: #fff;
}

.empty-state p {
  max-width: 500px;
  margin: auto;
  color: #aaa;
}

/* ==========================================================
   CARD ACTIONS & BUTTONS
========================================================== */
.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 22px;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.card-btn:hover {
  background: #d4af37;
  color: #111;
  border-color: #d4af37;
}

.card-btn.primary {
  background: #d4af37;
  color: #111;
}

.card-btn.primary:hover {
  background: #b8962e;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #2563eb;
  color: #fff;
  border-radius: 12px;
  font-weight: 600;
  transition: 0.3s;
}

.download-btn:hover { background: #1d4ed8; transform: translateY(-3px); }

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #0f766e;
  color: #fff;
  border-radius: 12px;
  font-weight: 600;
  transition: 0.3s;
}

.share-btn:hover { background: #115e59; transform: translateY(-3px); }

/* ==========================================================
   STATUS BADGES & RIBBON
========================================================== */
.card-ribbon {
  position: absolute;
  top: 18px;
  right: -35px;
  background: #d4af37;
  color: #111;
  padding: 8px 45px;
  font-size: 0.75rem;
  font-weight: 700;
  transform: rotate(45deg);
  text-transform: uppercase;
  z-index: 5;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-new { background: #16a34a; color: #fff; }
.badge-featured { background: #d4af37; color: #111; }
.badge-rare { background: #8b5cf6; color: #fff; }
.badge-archived { background: #64748b; color: #fff; }

/* ==========================================================
   FAVORITE BUTTON
========================================================== */
.favorite-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10;
  backdrop-filter: blur(5px);
}

.favorite-btn:hover {
  background: #e11d48;
  transform: scale(1.1);
}

/* ==========================================================
   CARD FADE ANIMATION & HOVER GLOW
========================================================== */
.card-enter {
  opacity: 0;
  transform: translateY(30px);
  animation: cardFade 0.6s ease forwards;
}

@keyframes cardFade {
  to { opacity: 1; transform: translateY(0); }
}

.document-card:hover,
.photo-card:hover,
.video-card:hover,
.audio-card:hover,
.pdf-card:hover {
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.15), 0 25px 60px rgba(0, 0, 0, 0.35);
}

.document-card::after,
.photo-card::after,
.video-card::after,
.audio-card::after,
.pdf-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: #d4af37;
  transition: width 0.35s ease;
}

.document-card:hover::after,
.photo-card:hover::after,
.video-card:hover::after,
.audio-card:hover::after,
.pdf-card:hover::after {
  width: 100%;
}
/* ==========================================================
   DOCUMENTS PAGE CONTROLS (Search & Filters)
========================================================== */
.documents-controls {
  margin-bottom: 40px;
  text-align: center;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

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

.filter-btn.active {
  background: var(--primary);
  color: #111;
  border-color: var(--primary);
}

/* Skeleton Card (Loading Animation) */
.skeleton-card {
  background: var(--card);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
}
