/*
Theme Name: Oct 22 Update 5
Theme URI: http://example.com/
Author: Your Name
Author URI: http://example.com/
Description: A custom theme for Sunny Corner with ellipse-based navigation and AJAX functionality.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sunny-corner-theme
*/


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

.single-post-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
  width:600px;
  border: 1px solid #ddd;
  padding: 20px;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.single-post {
  padding:20px;
  font-size:14px;
}

.single-post li {
  margin-left:20px;
}

.back-button {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border: 0.5px solid black;
  border-radius: 50%;
  text-align: center;
  line-height: 20px;
  cursor: pointer;
  margin-bottom: 20px;
  background-color: white;
}
body {
  font-family: 'Sorts Mill Goudy', serif;
  background-color: #f9f9f9;
  color: #333;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  margin-bottom:70px;
}

.logo {
  font-family: 'Cursive', sans-serif;
  font-size: 2em;
}

nav ul {
  list-style-type: none;
}

nav ul li {
  display: inline;
  margin-right: 15px;
}

nav ul li a {
  text-decoration: none;
  color: black;
}

nav ul li a:hover {
  color: grey;
}

/* Styling for the floating button container */
.floating-button-container {
  position: fixed;
  bottom: 20px;
  right: 20px; /* Adjust to your desired position */
  z-index: 10;
}

/* Styling for the circular button */
.circle-icon {
  z-index: 99;
  position: fixed;
  bottom: 20px;
  right: 20px; /* Adjust to your desired position */
  border-radius: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.1); /* 50% opacity */
  backdrop-filter: blur(2px);
}

.circle-icon img {
  width:120px;
  border-radius: 100%;
}

/* Styling for the hidden container */
.hidden-container {
  display: none;
  position: relative;
  right:0px;
  width:80%;
  z-index: -1;
  padding:15px;
  background-color: #f3f3f3;
  border-radius: 10px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
}

.hidden-container form {
  margin-top: 10px;
}

.hidden-container input[type="text"] {
  padding: 10px;
  border: 1px solid #c8c8c8;
  border-radius: 5px;
  width: calc(100% - 100px);
}

.hidden-container button[type="submit"] {
  padding: 10px;
  border: none;
  background-color: #5f8fc3;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

.hidden-container button {
  border-radius: 5px;
  border:none;
  text-decoration: none;
}

.hidden-container button:hover {
  background-color: white;
  color: black;
}


/* Post List */
.post-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.post {
  position: relative; /* Ensures the tape stays relative to the post container */
  background-color: white;
  border-radius: 10px;
  padding: 15px;
  border-radius: 10px;
  z-index: 0;
}

.comment-section {
  display: block;
  height:200px;
  align-items: center;
  padding-top:100px;
}

.comment-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.post-content {
  position: relative; /* Ensures post content stays above the overlay */
  z-index: 2; /* Keeps content above the overlay */
  padding: 20px; /* Adjust padding for readability */
}


/* Styling for the masking tape */
.post::before {
  content: '';
  position: absolute;
  top: -15px; /* Adjust to position tape above the card */
  left: 70px; /* Adjust to the desired horizontal position */
  width: 120px; /* Adjust width of tape */
  height: 30px; /* Adjust height of tape */
  background: url('imgs/tape.svg') no-repeat center center;
  background-size: contain;
  z-index: 99;
  transform: rotate(-5deg); /* Rotate tape at a 55-degree angle */
}

/* Adjust the tape for different screen sizes (optional) */
@media screen and (max-width: 768px) {
  .post::before {
 display: none;
  }
}

.post-thumbnail {
  height: 150px;
  background-color: #ddd;
  text-align: center;
  line-height: 150px;
  margin-bottom: 15px;
}

.post-meta {
  margin-bottom: 10px;
}

.post-title {
  font-size: 1.2em;
  margin-bottom: 5px;
}

.caption {
  font-size: 0.9em;
  color: grey;
}

.date {
  font-size: 0.8em;
  color: lightgrey;
}

.read-more {
  display: block;
  text-align: center;
  padding: 10px;
  font-size:10px;
  background-color: #f0f0f0;
  text-decoration: none;
  color: #333;
  border:0px;
}

.read-more:hover {
  background-color: #fff;
}

/* Post Actions */
.post-actions {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
}

.comment-button, .share-button, .heart-button {
  background-color: #f0f0f0;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}

.comment-button:hover, .share-button:hover, .heart-button:hover {
  background-color: #ddd;
}

/* Responsive for Mobile */
@media screen and (max-width: 600px) {
  .post-list {
    grid-template-columns: 1fr;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    padding-top: 10px;
  }
}

/* Post Thumbnail Image Styling */
.post-thumbnail {
  width: 100%; /* Ensure the image takes the full width of its container */
  max-height: 210px; /* Optional: Limit the height for better scaling */
  object-fit:cover; /* Ensures the image scales properly without stretching */
  background-color: #fff; /* Fallback in case of missing image */
}

.post-thumbnail img {
  width: 100%; /* Make sure the image is fully responsive */
  height: 100%;
  border-radius:10px;
  object-fit: contain; /* Ensures the image scales and maintains aspect ratio */
}

/* Category Link Styling */
.category-link {
  display: block;
  text-transform: uppercase;
  text-align: center;
  font-weight: bold;
  font-size: 0.9em;
  margin-bottom: 10px;
  text-decoration: none;
  color: #333;
  margin-top:10px;
}

.category-link:hover {
  color: #888;
}

/* Full-width Blog Post */
.full-post {
  min-width: 800px;
  margin-left:-120px;
}

/* Styling for the masking tape */
.full-post::before {
  content: '';
  position: absolute;
  top: -15px; /* Adjust to position tape above the card */
  left: 350px; /* Adjust to the desired horizontal position */
  width: 120px; /* Adjust width of tape */
  height: 30px; /* Adjust height of tape */
  background: url('imgs/tape.svg') no-repeat center center;
  background-size: contain;
  z-index: 99;
  transform: rotate(-5deg); /* Rotate tape at a 55-degree angle */
}


.post.full-post {
  border: 1px solid #ddd;
  padding: 20px;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}

.back-button {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 0.5px solid black;
  border-radius: 50%;
  text-align: center;
  line-height: 20px;
  cursor: pointer;
  margin-bottom: 20px;
  background-color: white;
}

.back-button:hover {
  background-color: #f0f0f0;
}

/* Responsive Handling */
@media screen and (max-width: 768px) {
  .full-post {
    min-width: 90vw;
  }
}

/* Desktop Post List Grid Layout */
.post-list {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 columns on desktop */
  gap: 20px;
}

/* Responsive for Mobile: Adjust to 2x2 grid on smaller screens */
@media screen and (max-width: 768px) {
  .post-list {
    grid-template-columns: 1fr 1fr; /* 2 columns on mobile */
    grid-template-rows: auto;
    gap: 10px; /* Reduced gap between items */
  }

  .post {
    padding: 10px; /* Optional: Adjust padding for smaller screens */
  }

  .post-thumbnail {
    max-height: 150px; /* Smaller thumbnail height for mobile */
  }

  .post-title {
    font-size: 1em; /* Adjust font size to fit on smaller screens */
  }

  .caption, .date {
    font-size: 0.8em; /* Smaller text for mobile */
  }

  .read-more {
    padding: 8px 10px; /* Adjust button size for mobile */
  }
}

.additional-content {
  border: 1px solid gray;
  display: flex;
  justify-content: center;
  min-width:100vw;
  position: absolute;
  left:0;
  bottom:0;
}


/* Custom styles for the templates */

.container.sunny-corner .logo img {
  width:200px;

}
.container.sunny-corner nav ul li {
  display: inline;
  margin-right: 15px;
}

.container.sunny-corner nav ul li a {
  text-decoration: none;
}

.container.seoul-diaries .logo img {
  width: 200px;
}

.container.seoul-diaries nav ul li {
  display: inline;
  margin-right: 15px;
}

.container.seoul-diaries nav ul li a {
  text-decoration: none;
}

.comments-area {
  max-width: 100%;
  padding: 20px;
  background-color: #f9f9f9;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-list li {
  margin-bottom: 20px;
}

.comment-form {
  margin-top: 40px;
}



/* General comment section styling */
#comments {
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
}

.comment-list {
  list-style-type: none;
  padding-left: 0;
}

.comment-list li {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.comment-list .comment-author-avatar {
  float: left;
  margin-right: 10px;
}

.comment-list .comment-content {
  overflow: hidden;
}

/* For smaller screens */
@media (max-width: 768px) {
  .comment-list li {
      padding-bottom: 15px;
  }

  .comment-list .comment-author-avatar {
      width: 30px;
      height: 30px;
      margin-right: 5px;
  }

  .comment-list .comment-content {
      font-size: 14px;
  }

  .comment-form-wrapper textarea#comment {
      width: 100%;
      height: 120px;
      font-size: 14px;
  }

  .submit {
      width: 100%;
      padding: 10px;
      font-size: 16px;
  }
}

/* Ensure comments don't overlap with blog content */
.single-post-container .post-content,
.single-post-container #comments {
  clear: both;
  padding-top: 20px;
}

/* Comment navigation */
.comment-navigation {
  margin-top: 20px;
  text-align: center;
}

.comment-navigation .nav-previous,
.comment-navigation .nav-next {
  display: inline-block;
  margin: 0 10px;
}

@media (max-width: 768px) {

  .single-post-container {
    width:90vw!important;
  }
  
  .comment-navigation .nav-previous,
  .comment-navigation .nav-next {
      display: block;
      margin-bottom: 10px;
  }
}

/* Styling for no-comments message */
.no-comments {
  font-style: italic;
  color: #555;
  padding: 10px;
}

/* Ensure form elements are responsive */
.comment-form-wrapper textarea#comment {
  width: 100%;
  height: 100px;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
  resize: vertical;
}

.submit {
  background-color: black;
  color: #fff;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
}

.submit:hover {
  background-color: lightskyblue;
}