/* Container layout */
main#post-container {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
  padding-top: 100px;
}

.blog-post {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  line-height: 1.6;
  color: #222;
  position: relative;
  box-sizing: border-box;
}

/* Header Image & Category */
.post-header-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.post-header-image {
  width: 100%;
}

.post-header-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* Category label top-right on image */
.post-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  text-transform: uppercase;
  color: #fff;
  font-weight: 600;
  background-color: #6b2aa5;
  border-radius: 12px;
  padding: 0.25rem 0.5rem;
  font-size: 1rem;
  z-index: 2;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

/* Hover effect */
.post-category:hover {
  transform: scale(1.05); 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); 
}

/* Title and Date below image */
.post-title-date {
  max-width: 1200px;
  margin-top: 1rem;
  text-align: left;
  cursor: default;
}

.post-title {
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 0;
}

.post-date {
  font-weight: 400;
  font-size: 1rem;
  color: #666;
  margin-top: 0.25rem;
}

/* --- Post Share Section --- */
.post-share {
  margin: 2rem auto 2rem auto;
  text-align: center;
  padding: 0;
}

.post-share h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: default;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #f2f2f2;
  transition: transform 0.2s ease, background-color 0.2s ease;
}


.share-btn:hover {
  background-color: #ddd;
  transform: scale(1.1);
}

.share-btn img {
  width: 18px;
  height: 18px;
}

.copy-link {
  cursor: pointer;
}

.copy-confirmation {
  display: none;
  font-size: 0.85rem;
  color: #6b2aa5;
  margin-top: 0.3rem;
}

/* when shown */
.copy-confirmation.show {
  display: block;
  animation: fadeInOut 2s forwards;
}

@keyframes fadeInOut {
  0% { opacity: 0; }
  10%, 90% { opacity: 1; }
  100% { opacity: 0; }
}


/* Blog Content */
.post-content {
  max-width: 1200px;
  margin: 1rem 1rem;
  padding: 0;
  line-height: 1.8;
  font-size: 1rem;
  color: #222;
  text-align: left;
  cursor: default;
}

/* Indent */

.post-content p:first-of-type {
  text-indent: 0;
  margin-top: 1rem;
}

.post-content p:first-of-type::first-letter {
  float: left;
  font-size: 4rem;       
  color: #6b2aa5;        
  font-weight: bold;
  line-height: 1;
  margin-right: 0.05em;    
  margin-top: 0.05em;    
}

.post-content p:first-of-type {
  overflow: hidden;      
}

.post-content p:not(:first-of-type) {
  text-indent: 1.5em;
  margin-top: 1rem;
}

.post-content h1 {
  font-size: 2rem;
  margin-bottom: 0;
}

.side-note {
  font-style: italic;
  font-weight: 600;
  margin-bottom: -3rem;
}

.post-content ul {
  list-style: disc;
  font-weight: 600;
}

.post-content img,
.post-content video,
.post-content iframe {
  max-width: 100%;
  display: block;
  margin: 2rem auto;
}

.video-wrapper {
  text-align: center;           /* centers the video container */
}

.video-container {
  display: inline-block;       /* shrink to fit video width */
  position: relative;
  max-width: 100%;
  margin: 2rem auto;           /* center horizontally */
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  font-size: 0;               /* removes extra inline spacing */
  line-height: 0;             /* remove any baseline space */
}

.video-container:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
}

.video-container video {
  display: block;             /* removes inline spacing */
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 0;                  /* remove default margin */
}


.post-content figure {
  margin: 2rem 0;
  text-align: center;
}

.post-content figure figcaption {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

.post-signoff {
  text-align: center;
  margin: 2rem 0 1rem;
  padding: 0;
  cursor: default;
}

.post-signoff p {
  margin: 0;
}

.signature-font {
  font-family: "Leckerli One", cursive;
  font-size: 2rem;
  color: #6b2aa5;
  display: inline-block;
  transform: translateY(20px);
  opacity: 0;
  transition: all 1s ease;
  cursor: default;
}

/* Scroll reveal */
.post-signoff.visible .signature-font {
  transform: translateY(0);
  opacity: 1;
}


/* Divider */
.post-divider {
  border: none;
  border-top: 1px solid #ccc;
  margin: 2rem 0 2rem;
}

/* Explore More Posts */
.latest-projects, .explore-more {
    padding: 0px 10px;
    text-align: center;
    cursor: default;
}

.latest-projects h2, .explore-more h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #333;
}

.project-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.project-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    width: 300px;
    padding: 20px;
    position: relative;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.image-wrapper {
    position: relative;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.tape {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(-3deg);
    width: 80px;
    height: 20px;
    background: #f6e58d;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.project-card h3 {
    margin: 15px 0 10px;
    font-size: 1.2rem;
    color: #222;
}

.project-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    background-color: #6b2aa5;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.3s;
}

.read-more:hover {
    background-color: #541d82;
}


/* Responsive adjustments */
@media (max-width: 980px) {
    .explore-posts-container {
        justify-content: center;
    }
}

@media (max-width: 650px) {
    .explore-posts-container .blog-card {
        width: 90%;
    }
}

/* Tablet */
@media (max-width: 1024px) {
  main#post-container {
    padding-top: 90px; 
  }

  .post-title {
    font-size: 2rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
   main#post-container {
    padding-top: 80px; 
  }
  .post-title-date {
    text-align: center;
  }
  
  .post-title {
    font-size: 1.6rem;
    text-align: center; 
  }

  .explore-more h2 {
    font-size: 1.6rem;
  }

  .post-content p:first-of-type::first-letter {
    font-size: 3rem;   
    margin-right: 0.15em;
  }

  .post-date {
    text-align: center;
  }

  .post-content {
    font-size: 0.95rem;
    padding: 0 1rem;
  }
  .post-content p:not(:first-of-type) {
    text-indent: 1em;
  }

  .post-category {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }

  .explore-posts-container {
    justify-content: center;
  }

  .explore-posts-container .blog-card {
    flex: 1 1 80%;
  }
}

@media (max-width: 480px) {
  .post-content {
    font-size: 0.9rem;
    padding: 0 0.5rem;
  }
  .post-content p:not(:first-of-type) {
    text-indent: 0.8em;
  }
  .post-content p:first-of-type::first-letter {
    font-size: 2.5rem; 
    margin-right: 0.1em;
  }
}

/* --- Wrapped Images --- */
.post-content .img-left {
  float: left;
  width: 380px;
  max-width: 45%;
  margin: 1rem 2rem 1rem 0;
  border-radius: 12px;
}

.post-content .img-right {
  float: right;
  width: 380px;
  max-width: 45%;
  margin: 1rem 0 1rem 2rem;
  border-radius: 12px;
}

/* Reset float on small screens */
@media (max-width: 768px) {
  .post-content .img-left,
  .post-content .img-right {
    float: none;
    display: block;
    margin: 1.5rem auto;
    width: 100%;
    max-width: 100%;
  }
}

/* --- General Image Styles --- */
.post-content img {
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}

/* Hover effect similar to blockquotes */
.post-content img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* --- Full-width Images --- */
.post-content img.full-width {
  width: 100%;
  max-width: 1200px;
  border-radius: 12px;
  display: block;
  margin: 2rem auto;
}

/* --- Centered Figure with Caption --- */
.post-content figure.img-medium {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2.5rem auto;
  text-align: center;
}

.post-content figure.img-medium img {
  width: 80%;
  max-width: 800px;
  border-radius: 12px;
}

.post-content figure.img-medium figcaption {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.75rem;
  font-style: italic;
}

/* --- General Post-it Style Blockquotes --- */
.post-content blockquote {
  position: relative;
  text-align: center;
  background-color: #ebd5c5;
  border-radius: 12px;
  padding: 2rem 2.5rem;
  margin: 2rem auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  font-style: italic;
  color: #2c1b14;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
  max-width: 800px;
}

/* Hover effect */
.post-content blockquote:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Decorative tape */
.post-content blockquote::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 120px;
  height: 20px;
  background: rgba(211, 211, 211, 0.5);
  border-radius: 2px;
}

/* --- Blockquote Variants --- */

/* Full-width blockquote */
.post-content blockquote.full-width {
  max-width: 100%;
}

/* Medium blockquote (default style) */
.post-content blockquote.medium {
  max-width: 700px;
}

/* Left-aligned blockquote with text wrap */
.post-content blockquote.left {
  float: left;
  width: 40%;
  margin-right: 2rem;
  text-align: left;
}

/* Right-aligned blockquote with text wrap */
.post-content blockquote.right {
  float: right;
  width: 40%;
  margin-left: 2rem;
  text-align: left;
}

/* Clear floats if needed after a left/right blockquote */
.post-content::after {
  content: "";
  display: table;
  clear: both;
}

.post-content blockquote p:first-of-type::first-letter {
  all: unset; /* removes all previously applied styles */
}

/* --- Highlight effect --- */
.highlight-slide {
  position: relative;
  display: inline; 
  vertical-align: middle; 
  color: #6b2aa5;
  cursor: default;
}

/* Thin bar on the left */
.highlight-slide::before {
  content: '';
  position: absolute;
  width: 12px;
  left: -3px;
  top: 0.01em;
  height: 100%;
  background-color: rgba(107, 42, 165, 0.6);
  border-radius: 2px;
}

/* Highlight overlay over the text */
.highlight-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: -3px;
  width: 0; /* start collapsed */
  height: 100%;
  background-color: rgba(107, 42, 165, 0.3);
  transition: width 0.4s ease-in-out;
  z-index: -1;
}

/* Hover triggers highlight expansion */
.highlight-slide:hover::after {
  width: calc(100% + 4px);
}

.highlight-static {
  background-color: rgba(108, 42, 165, 0.25);
  border-radius: 2px;
  transition: background-color 0.4s ease-in-out;
}

.highlight-static:hover {
  background-color: rgba(108, 42, 165, 0.5);
}

/* --- Sticky note --- */
.sticky-note {
  position: relative;
  display: inline;
  cursor: pointer;
  color: #6b2aa5;
  border-bottom: 1px dashed #6b2aa5; /* subtle underline */
}

/* Pop-up sticky note box above text */
.sticky-note::after {
  content: attr(data-note);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 200px;
  padding: 10px;
  background-color: #ebd5c5; /* sticky note color */
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  color: #000; /* text color inside sticky note */
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 100;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: left;
}


/* Show on hover */
.sticky-note:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-12px); /* pop slightly more */
}

/* --- Custom links --- */
a.custom-link { color: #6b2aa5; text-decoration: none; transition: all 0.2s ease; }
a.custom-link:hover { color: #541d82; font-weight: bold; }

/* --- Figure with Caption, Allowing Text Wrap --- */
.post-content figure.img-wrap-left {
  float: left; /* or left */
  width: 40%; /* control how wide it is */
  margin: 1.5rem; /* space around image for text breathing room */
  text-align: center;
}

.post-content figure.img-wrap-left img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block; /* prevents small gaps under image */
}

.post-content figure.img-wrap-left figcaption {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.5rem;
  font-style: italic;
}

/* --- Figure with Caption, Allowing Text Wrap --- */
.post-content figure.img-wrap-right {
  float: right; /* or left */
  width: 40%; /* control how wide it is */
  margin: 1.5rem; /* space around image for text breathing room */
  text-align: center;
}

.post-content figure.img-wrap-right img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block; /* prevents small gaps under image */
}

.post-content figure.img-wrap-right figcaption {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.5rem;
  font-style: italic;
}

/* clear floats after post content sections */
.post-content::after {
  content: "";
  display: block;
  clear: both;
}

.text-emphasis {
  background-color: rgba(107, 42, 165, 0.15);
  transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 4px;
  padding: 0.1em 0.3em;
}

.text-emphasis:hover {
  background-color: rgba(107, 42, 165, 0.35);
}

/* Specific-content */
.epcot-rapunzel {
  width: 50%;
  overflow: visible;
}

.epcot-rapunzel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .post-content .img-left,
  .post-content .img-right,
  .post-content figure.img-wrap-left,
  .post-content figure.img-wrap-right,
  .post-content blockquote.left,
  .post-content blockquote.right, 
  .img-medium {
    float: none;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 1.5rem auto;
    text-align: center;
  }

  /* Ensure images inside figure scale properly */
  .post-content figure.img-wrap-left img,
  .post-content figure.img-wrap-right img,
  .post-content figure.img-medium img {
    width: 100%;
    height: auto;
  }

  /* Center captions for better readability */
  .post-content figure.img-wrap-left figcaption,
  .post-content figure.img-wrap-right figcaption,
  .post-content figure.img-medium figcaption {
    text-align: center;
    margin-top: 0.5rem;
  }

  /* Make blockquotes look consistent */
  .post-content blockquote.left,
  .post-content blockquote.right {
    text-align: center;
    padding: 1.5rem;
  }

  /* Remove extra spacing that might appear after clearing floats */
  .post-content::after {
    display: none;
  }
}

/* Code block for blog */
.code-block {
  background-color: #000000;
  padding: 0;
  margin: 20px auto; 
  overflow-x: auto;
  border-radius: 15px;
  display: block;
  width: fit-content;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.code-block pre {
  margin: 0;
  padding: 8px;
  padding-right: 60px;
  line-height: 1.2;
  text-align: left; 
}

.code-block code {
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  font-weight: 600;
  color: #33ff00;
  line-height: 1.5;
  background: none;
  max-width: auto;
}

/* 2-3 image figure */
.photo-block {
  max-width: auto;
  margin: 0;
  border-radius: 8px;
  overflow: visible;
}

figure {
  margin: 0;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}

.photo-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  object-fit: cover;
}

figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #555;
  background: #f8f8f8;
  border-top: 1px solid #eee;
  text-align: center;
}



