/*ancientfit-frontend/css/memorial.css*/
* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body, html {
    background: url('../Images/Memorial/BottomCoverMemorial1.png') no-repeat center center fixed;
    background-size: cover;
    z-index: 1;
    }

.grid-container {
  background-image: url('../Images/Memorial/Memorial9BestOne.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  min-height: 60vh;  
  height: 100vh;     
  max-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 40px;
  position: relative;
  box-sizing: border-box;
}

.cover-title h1 {
  color: white;
  font-size: 4rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
background: linear-gradient(
  135deg,
  rgba(5, 5, 5, 0.65),
  rgba(18, 18, 20, 0.65),
  rgba(30, 30, 32, 0.65),
  rgba(45, 45, 50, 0.65),
  rgba(80, 80, 85, 0.65),
  rgba(120, 120, 125, 0.65),
  rgba(160, 160, 165, 0.65)
);
  padding: 20px 40px;
  border-radius: 12px;
  text-align: center;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .cover-title h1 {
    font-size: 2.5rem;
    padding: 15px 25px;
  }

  .grid-container {
    min-height: 50vh;    /* Smaller height on mobile */
    padding-top: 25px;
  }
}

 .mainContent {
  padding: 40px;
  color: #ffffff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.manifesto {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.English-manifesto, .Arabic-manifesto {
  flex: 1 1 45%;
  max-height: 80vh;
  overflow-y: auto;
  background: linear-gradient(145deg, rgba(59, 79, 61, 0.75), rgba(10, 15, 26, 0.75));  
  padding: 25px 30px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  transition: all 0.3s ease-in-out;
  scroll-behavior: smooth;
}

.Arabic-manifesto {
  direction: rtl;
  text-align: right;
}

/* Optional: Make scrollbars prettier */
.English-manifesto::-webkit-scrollbar,
.Arabic-manifesto::-webkit-scrollbar {
  width: 6px;
}
.English-manifesto::-webkit-scrollbar-thumb,
.Arabic-manifesto::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 10px;
}

/* Text Styles */
.manifesto p {
  line-height: 1.8;
  font-size: 1rem;
  text-align: justify;
}

.manifesto b {
  color: #a0a0a0;
  font-weight: bold;
  background: linear-gradient(to right, #a0a0a0, #ffffff);  
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Responsive Stacking */
@media (max-width: 900px) {
  .English-manifesto, .Arabic-manifesto {
    flex: 1 1 100%;
    max-height: 60vh;
  }
}

@media (max-width: 600px) {
  .mainContent {
    padding: 20px;
  }

  .English-manifesto, .Arabic-manifesto {
    padding: 20px;
    max-height: 50vh;
  }

  .manifesto p {
    font-size: 0.95rem;
  }
}


/*The Memorial Section*/
.memorial-section {
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  color: #0d0d0d;
  font-family: 'Segoe UI', sans-serif;
}

.memorial-card {
  background: rgba(75, 89, 69, 0.35); /* Olive green with transparency */
  border: 1px solid rgba(192, 192, 192, 0.35); /* Silver border */
  backdrop-filter: blur(10px); /* Frosted glass effect */
  -webkit-backdrop-filter: blur(10px);
  border-radius: 18px;
  width: 280px;
  height: 360px;
  margin: 10px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  color: white;
  overflow: hidden;
}

.memorial-card:hover {
  transform: scale(1.07);
  box-shadow: 0 14px 40px rgba(0,0,0,0.6);
}

.year {
  font-size: 20px;
  font-weight: 700;
  color: #d8d8d8; /* Light silver */
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.month {
  text-transform: uppercase;
  font-size: 20px;
  font-weight: 700;
  color: #f0f0f0;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.ceremony {
  color: #e1e1e1; /* Silver-gray */
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
}

.title {
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin-top: 15px;
  line-height: 1.4;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 10px 0;
}

/* Popup */
/* Popup Overlay */
.popup-overlay {
  display: none;
  position: fixed;
  z-index: 1001;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Popup Content (Glassy look) */
.popup-content {
  background: rgba(25, 25, 25, 0.65);
  backdrop-filter: blur(12px);
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  width: 100%;
  border-radius: 16px;
  padding: 30px;
  position: relative;
  text-align: center;
  z-index: 9999;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
  font-family: 'Segoe UI', sans-serif;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: rgba(255, 0, 0, 0.2);
  border: 1px solid rgba(255, 0, 0, 0.3);
  color: #ff4b4b;
  font-size: 28px;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  line-height: 35px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.3);
}

.close-btn:hover {
  background: rgba(255, 0, 0, 0.4);
  transform: scale(1.1);
  box-shadow: 0 0 18px rgba(255, 0, 0, 0.6);
}

/* Image Styling */
.popup-image {
  float: right;
  margin: 15px;
  max-width: 45%;
  max-height: 300px;
  border-radius: 10px;
  margin-bottom: 15px;
  object-fit: cover;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}

/* Paragraph Text */
.popup-overlay p {
  margin: 10px 0;
  padding: 10px;
  text-align: justify;
  font-size: 17px;
  color: #ccc;
  line-height: 1.6;
}

/* Tiny Glassy / Frosted-Glass Link - Inline with text */
.glassy-link-tiny {
  display: inline;            
  padding: 0 2px;             
  color: red;
  font-weight: 600;
  font-size: 0.9em;           
  text-decoration: none;
  border-radius: 4px;         
  background: rgba(30, 30, 30, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.3),
    inset 0 0 2px rgba(255, 255, 255, 0.05);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  line-height: 1.2;       
}

/* Hover Effects */
.glassy-link-tiny:hover {
  background: rgba(50, 50, 50, 0.5);
  box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.5),
    0 0 4px rgba(255, 255, 255, 0.1) inset;
  transform: translateY(-1px) scale(1.02);
  color: #FFD700;             
}

/* Optional subtle glow animation */
.glassy-link-tiny::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: all 0.5s ease;
  pointer-events: none;
}

.glassy-link-tiny:hover::after {
  opacity: 1;
  transform: rotate(45deg);
}


.action-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: center;
  position: relative;
  margin-top: 20px;
}

.share-popup {
  position: absolute;
  top: -70px; 
  background-color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  gap: 10px;
  z-index: 1000;
}


.action-buttons button {
  background: rgba(30, 30, 30, 0.9);
  color: #e2e2e2;
  font-weight: bold;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  padding: 12px 24px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(0, 255, 100, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Like button */
.like-btn::before {
  font-size: 18px;
}

.like-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.like-btn.liked {
  background-color: #2C3A22;
  color: #B6B09F;
}

/* Share button */
.action-buttons button:nth-child(2)::before {
  content: '🔗';
  font-size: 18px;
}

/* Hover effect */
.action-buttons button:hover {
  background-color: #25311B; /* slightly lighter olive-black */
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.share-popup img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  transition: transform 0.2s ease;
}
.share-popup.hidden {
  display: none;
}

.share-popup img:hover {
  transform: scale(1.2);
  border-color: #444;
  background-color: #f1f1f1;
}

/* Responsive */
@media (max-width: 600px) {
  .memorial-card {
    width: 90%;
    height: auto;
  }

  .popup-content {
    padding: 15px;
  }
}
