/* sidebar-slider.css */
:root {
  --blogcolor: #000;
  --softcolor: #fff;
  --solidcolor: #999;
}

.my-home-wrapper {
  width: 100%;
  position: relative;
  z-index: 1;
}

#my-home_container {
  width: 100%;
  box-sizing: border-box;
  border: 2px solid var(--blogcolor);
  border-radius: 10px;
  background: var(--softcolor);
  direction: rtl;
  overflow: hidden;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
}

body.darkmode #my-home_container {
  background: var(--solidcolor);
}

#my-home_container .my-home_header {
  background-color: var(--blogcolor);
  padding-top: 5px;
  padding-bottom: 10px;
  margin-bottom: 5px;
  color: var(--softcolor);
  text-align: center;
  font-weight: bold;
  width: 100%;
  line-height: 1.8;
  font-size: 14px;
  text-shadow: 2px 2px 4px black;
  position: relative;
  box-shadow:
    inset 6px 6px 12px rgba(150, 150, 150, 0.4), 
    inset -6px -6px 12px rgba(0, 0, 0, 0.7); 
}

#my-home_container .my-home_site_title {
  font-size: 11px;
}

#my-home_container .my-home_scroll_area {
  width: 100%;
  height: 100%;
  overflow-y: hidden;
  scrollbar-width: none;
}

#my-home_container .my-home_scroll_area::-webkit-scrollbar {
  display: none;
}

#my-home_container .my-home_card_container {
  display: flex;
  flex-direction: column;
  gap: 5px;
  direction: rtl;
  max-width: 100%;
  margin: 5px;
  position: relative;
}

#my-home_container .my-home_loading {
  text-align: center;
  padding: 20px;
  color: var(--blogcolor);
  opacity: 0.7;
}

#my-home_container .my-home_card {
  background: var(--softcolor);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-align: center;
  border: 2px solid var(--blogcolor);
  position: relative;
}

body.darkmode #my-home_container .my-home_card {
  background: var(--solidcolor);
}

#my-home_container .my-home_card:hover {
  transform: translateY(-3px);
}

#my-home_container .my-home_image_container {
  width: 100%;
  height: 120px;
  overflow: hidden;
  position: relative;
  border-bottom: 2px solid var(--blogcolor);
}

#my-home_container .my-home_image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

#my-home_container .my-home_card:hover .my-home_image {
  transform: scale(1.1);
  filter: brightness(1.05);
}

#my-home_container .my-home_content {
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  text-align: right;
}

#my-home_container .my-home_title {
  font-size: 12px;
  font-weight: bold;
  margin: 0 0 8px 0;
  color: var(--blogcolor);
  line-height: 1.3;
  transition: color 0.3s ease;
}

body.darkmode #my-home_container .my-home_title {
  color: var(--softcolor);
}

#my-home_container .my-home_card:hover .my-home_title {
  color: var(--solidcolor);
}

body.darkmode #my-home_container .my-home_card:hover .my-home_title {
  color: var(--blogcolor);
}

#my-home_container .my-home_meta {
  font-size: 10px;
  color: var(--solidcolor);
  opacity: 0.9;
  display: flex;
  flex-direction: column;
}

#my-home_container .my-home_meta > * {
  margin: 0;
  padding: 1px 0;
  line-height: 1.2;
}

#my-home_container .my-home_meta span {
  display: block;
  width: 100%;
  box-sizing: border-box;
  color: var(--blogcolor);
  text-align: right;
}

#my-home_container .my-home_meta span:first-child {
  font-size: 10px;
  font-weight: bold;
  color: var(--blogcolor);
  margin-bottom: 10px;
}

body.darkmode #my-home_container .my-home_meta span:first-child {
  color: var(--softcolor);
}

#my-home_container .my-home_meta .my-home_author_date_time {
  font-size: 8px;
  color: var(--solidcolor);
  display: block;
  text-align: right;
}

body.darkmode #my-home_container .my-home_meta .my-home_author_date_time {
  color: var(--softcolor);
}

.myHomeCategoryTranslationButton {
  background-color: var(--blogcolor);
  color: var(--softcolor);
  border: none;
  padding: 3px 6px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.6em;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 1;
  display: flex;
  align-items: center;
  white-space: normal;
  word-break: break-word;
}

.myHomeCategoryTranslationButton:before {
  content: "📌";
  font-size: 12px;
  margin-left: 5px;
}

.myHomeCategoryTranslationButton:hover {
  background-color: var(--softcolor);
  color: var(--blogcolor);
}

body.darkmode .myHomeCategoryTranslationButton:hover {
  background-color: var(--blogcolor);
  color: var(--softcolor);
}

@media only screen and (max-width: 768px) {
  #my-home_container {
    height: 700px;
  }
  #my-home_container .my-home_header {
    font-size: 13px;
    padding: 4px;
  }
  #my-home_container .my-home_site_title {
    font-size: 11px;
  }
}

@media only screen and (max-width: 480px) {
  #my-home_container {
    height: 735px;
    max-width: 100%;
  }
  #my-home_container .my-home_header {
    font-size: 12px;
    padding: 3px;
  }
  #my-home_container .my-home_site_title {
    font-size: 11px;
  }
}