@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: rgba(79, 70, 229, 0.1);
  --primary-lighter: rgba(79, 70, 229, 0.05);
  --primary-border: rgba(79, 70, 229, 0.2);
  --text-dark: #1a202c;
  --text-medium: #4a5568;
  --text-light: #64748b;
  --bg-card: #ffffff;
  --border-light: #e2e8f0;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.04), 0 4px 6px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.08), 0 10px 10px rgba(0, 0, 0, 0.02);
  --shadow-xl: 0 25px 30px rgba(0, 0, 0, 0.1), 0 10px 15px rgba(0, 0, 0, 0.04);
  --gradient-primary: linear-gradient(90deg, #4f46e5, #8b5cf6, #ec4899);
  --gradient-hover: linear-gradient(90deg, #4338ca, #7c3aed, #db2777);
  --gradient-light: linear-gradient(
    90deg,
    rgba(79, 70, 229, 0.1),
    rgba(139, 92, 246, 0.1)
  );
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  color: var(--text-medium);
  background-color: #f8fafc;
  -webkit-font-smoothing: antialiased;
}

.landmark-papers-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 50px 30px 80px;
  background-color: transparent;
}

.landmark-header {
  margin-bottom: 60px;
  text-align: left;
  padding: 0 20px;
  position: relative;
}

.landmark-header:before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 120px;
  height: 120px;
  background-color: var(--primary-lighter);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  z-index: -1;
  opacity: 0.6;
  filter: blur(40px);
  animation: float 8s ease-in-out infinite;
}

.landmark-header:after {
  content: "";
  position: absolute;
  bottom: -30px;
  right: 10%;
  width: 150px;
  height: 150px;
  background-color: rgba(139, 92, 246, 0.05);
  border-radius: 60% 40% 30% 70% / 40% 50% 60% 50%;
  z-index: -1;
  opacity: 0.4;
  filter: blur(40px);
  animation: float 10s ease-in-out infinite reverse;
}

.landmark-header h1 {
  font-size: 44px;
  font-weight: 800;
  margin: 0 0 16px 0;
  letter-spacing: -0.03em;
  position: relative;
  display: inline-block;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 15px rgba(79, 70, 229, 0.2);
}

.landmark-header h1:before {
  content: "";
  position: absolute;
  top: -10px;
  left: -15px;
  width: 40px;
  height: 40px;
  background-color: rgba(139, 92, 246, 0.1);
  border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
  z-index: -1;
  animation: pulse 6s ease-in-out infinite;
}

.landmark-header p {
  color: var(--text-light);
  font-size: 18px;
  line-height: 1.8;
  max-width: 800px;
  margin: 16px 0 0 0;
  text-align: left;
  position: relative;
}

.attribution-notice {
  background-color: var(--primary-lighter);
  border-radius: var(--radius-md);
  padding: 24px 30px;
  margin: 30px 20px 50px;
  position: relative;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.attribution-notice:before {
  content: "";
  position: absolute;
  top: -15px;
  left: 20px;
  width: 100px;
  height: 100px;
  background-color: rgba(139, 92, 246, 0.05);
  border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
  z-index: -1;
  opacity: 0.6;
  filter: blur(30px);
  animation: float 10s ease-in-out infinite;
}

.attribution-notice:after {
  content: "";
  position: absolute;
  top: -30px;
  left: 20px;
  font-size: 100px;
  font-weight: 800;
  line-height: 1;
  color: rgba(79, 70, 229, 0.1);
  z-index: 0;
}

.attribution-content {
  position: relative;
  z-index: 1;
}

.attribution-content p {
  color: var(--text-medium);
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
  text-align: left;
  position: relative;
  font-style: italic;
}

.attribution-notice:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-left-width: 6px;
}

.year-section {
  margin-bottom: 80px;
  position: relative;
}

.year-section:after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: 15%;
  width: 200px;
  height: 200px;
  background-color: rgba(79, 70, 229, 0.03);
  border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
  z-index: -1;
  filter: blur(60px);
}

.year-heading {
  font-size: 34px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 40px 30px;
  padding-bottom: 12px;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

.year-heading:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
}

.year-heading:before {
  content: "";
  position: absolute;
  top: 50%;
  left: -20px;
  transform: translateY(-50%);
  width: 8px;
  height: 30px;
  background: var(--gradient-primary);
  border-radius: 4px;
}

.timeline {
  position: relative;
  margin-left: 30px;
  padding-left: 45px;
}

.timeline:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: linear-gradient(
    to bottom,
    var(--primary),
    rgba(79, 70, 229, 0.2)
  );
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
}

.timeline:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 16px;
  height: 16px;
  background: var(--gradient-primary);
  border-radius: 50%;
  transform: translateX(-6px);
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.5);
}

.landmark-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
  overflow: hidden;
  position: relative;
  transition: var(--transition-bounce);
  transform-origin: left center;
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
}

.landmark-card:before {
  content: "";
  position: absolute;
  top: 32px;
  left: -58px;
  width: 24px;
  height: 24px;
  background: var(--gradient-primary);
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.2), 0 0 15px rgba(79, 70, 229, 0.4);
  z-index: 1;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.landmark-card:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.landmark-card:hover:after {
  transform: scaleX(1);
}

.landmark-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.1),
    0 10px 10px -5px rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.1);
}

.landmark-card:hover:before {
  transform: scale(1.5);
  box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.3), 0 0 20px rgba(79, 70, 229, 0.6);
}

.landmark-card-content {
  padding: 35px 40px;
  position: relative;
  z-index: 1;
  text-align: left;
}

.landmark-card-content:before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background-color: var(--primary-lighter);
  border-radius: 30% 70% 50% 50% / 40% 40% 60% 60%;
  z-index: -1;
  opacity: 0.4;
  transition: var(--transition-smooth);
}

.landmark-card-content:after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -80px;
  width: 180px;
  height: 180px;
  background-color: rgba(139, 92, 246, 0.05);
  border-radius: 50% 50% 30% 70% / 50% 30% 70% 50%;
  z-index: -1;
  opacity: 0.4;
  transition: var(--transition-smooth);
}

.landmark-card:hover .landmark-card-content:before {
  transform: scale(1.3) rotate(-10deg);
  opacity: 0.6;
}

.landmark-card:hover .landmark-card-content:after {
  transform: scale(1.2) rotate(10deg);
  opacity: 0.5;
}

.landmark-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.landmark-date {
  font-size: 15px;
  color: var(--text-light);
  font-weight: 500;
  display: flex;
  align-items: center;
  background-color: var(--primary-lighter);
  padding: 8px 16px 8px 38px;
  border-radius: var(--radius-sm);
  position: relative;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.landmark-date:before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: var(--transition-fast);
}

.landmark-institute {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  background-color: var(--primary-lighter);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  margin-left: 10px;
  transition: var(--transition-fast);
}

.landmark-card:hover .landmark-date {
  background-color: rgba(79, 70, 229, 0.15);
  color: var(--primary);
  transform: translateY(-2px);
}

.landmark-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.landmark-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background-color: var(--primary-lighter);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.landmark-tag:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  z-index: -1;
  transition: var(--transition-fast);
}

.landmark-tag:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(79, 70, 229, 0.25);
}

.landmark-tag:hover:before {
  opacity: 1;
}

.landmark-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 20px 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
  transition: var(--transition-fast);
  text-align: left;
  position: relative;
  padding-bottom: 16px;
}

.landmark-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 4px;
  transition: width 0.5s ease, transform 0.3s ease;
}

.landmark-card:hover .landmark-title {
  color: var(--primary);
}

.landmark-card:hover .landmark-title:after {
  width: 120px;
  transform: translateX(10px);
}

.landmark-authors {
  color: var(--text-medium);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  font-weight: 500;
}

.landmark-citation {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
  padding-left: 15px;
  border-left: 3px solid var(--primary-light);
}

.landmark-significance {
  color: var(--text-medium);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.landmark-more-details {
  display: none;
  padding-top: 20px;
  border-top: 1px dashed var(--border-light);
  margin-top: 20px;
}

.landmark-abstract {
  color: var(--text-medium);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
  padding: 15px;
  background-color: rgba(79, 70, 229, 0.03);
  border-radius: var(--radius-sm);
  position: relative;
}

.landmark-abstract:before {
  content: "Abstract";
  position: absolute;
  top: -10px;
  left: 15px;
  background-color: var(--bg-card);
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  border-radius: 4px;
}

.landmark-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.landmark-read-more {
  display: inline-flex;
  align-items: center;
  background: var(--gradient-primary);
  color: white !important;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  outline: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.landmark-read-more:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-hover);
  opacity: 0;
  z-index: -1;
  transition: var(--transition-fast);
}

.landmark-read-more:after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(30deg);
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.landmark-read-more:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
  color: white !important;
}

.landmark-read-more:hover:before {
  opacity: 1;
}

.landmark-read-more:hover:after {
  opacity: 0.2;
  transform: rotate(30deg) translate(10%, -10%);
}

.landmark-read-more svg {
  margin-left: 8px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.landmark-read-more:hover svg {
  transform: translateX(8px);
}

.landmark-toggle-details {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--primary-border);
  outline: none;
  cursor: pointer;
}

.landmark-toggle-details:hover {
  background-color: var(--primary-lighter);
  transform: translateY(-2px);
}

.landmark-toggle-details svg {
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.landmark-toggle-details[data-expanded="true"] svg {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .landmark-papers-container {
    padding: 30px 20px 60px;
  }

  .landmark-header h1 {
    font-size: 36px;
  }

  .landmark-card {
    margin-left: -10px;
  }

  .landmark-card:before {
    left: -48px;
  }

  .timeline:before {
    left: -10px;
  }

  .timeline {
    margin-left: 20px;
    padding-left: 30px;
  }

  .year-heading {
    margin-left: 20px;
    font-size: 28px;
  }

  .landmark-title {
    font-size: 22px;
  }

  .landmark-card-content {
    padding: 25px 20px;
  }

  .landmark-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .landmark-tags {
    justify-content: flex-start;
  }

  .landmark-actions {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .landmark-toggle-details,
  .landmark-read-more {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .landmark-card-content {
    padding: 30px 25px;
  }

  .landmark-header h1 {
    font-size: 38px;
  }
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(5deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}
