/* =========================================================
   Collection single (original fixRead/read.php layout)
   Brand colors: Image Prompt AI coral + green
   ========================================================= */
:root {
  --read-accent: #F36072;
  --read-accent-2: #02c491;
  --read-grad: linear-gradient(135deg, #F36072, #02c491);
  --read-border: rgba(243, 96, 114, 0.25);
  --read-soft: rgba(243, 96, 114, 0.08);
}

html { scroll-behavior: smooth; }

.read-container {
  max-width: 1280px;
  width: 100%;
  margin: 40px auto 60px;
  padding: 0 24px;
  box-sizing: border-box;
  animation: fadeUpCard 0.8s ease backwards;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.read-grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  width: 100%;
  margin: 0 auto;
  align-items: start;
}
.read-main-col,
.read-sidebar-col {
  display: block;
  min-width: 0;
  width: 100%;
}

.minimal-text-block {
  width: 100%;
  margin: 20px 0 40px;
  padding: 20px 25px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}
.minimal-line {
  font-size: 15px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.quick-links-container {
  width: 100%;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--read-border);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(243, 96, 114, 0.05);
}
.quick-links-container h3 {
  font-size: 16px !important;
  margin-top: 0;
  margin-bottom: 15px !important;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}
.quick-links-list {
  max-height: 380px;
  overflow-y: auto;
  padding-right: 8px;
}
.quick-links-list::-webkit-scrollbar { width: 5px; }
.quick-links-list::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 10px; }
.quick-links-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.quick-links-list::-webkit-scrollbar-thumb:hover { background: var(--read-accent); }

.quick-link-item {
  display: block;
  font-size: 13px;
  color: #334155;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 12px;
  margin-bottom: 6px;
  background: #f8fafc;
  border-radius: 8px;
  transition: 0.2s ease;
  line-height: 1.4;
  white-space: normal;
}
.quick-link-item:hover { background: var(--read-soft); color: var(--read-accent); }

.read-p-card {
  scroll-margin-top: 100px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--read-border);
  box-shadow: 0 10px 30px rgba(243, 96, 114, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.read-p-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(243, 96, 114, 0.1);
  border-color: var(--read-accent);
}
.read-p-vis {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: #f8fafc;
  padding: 50px 15px 15px;
  border-right: none;
  border-bottom: 1px solid var(--read-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
}
.read-p-num {
  position: absolute;
  top: 15px;
  left: 15px;
  display: inline-flex;
  align-items: center;
  background: white;
  color: var(--read-accent);
  padding: 6px 14px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 11px;
  text-decoration: none;
  border: 1px solid var(--read-border);
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.read-p-vis img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}
.read-p-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 25px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.read-p-name {
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 800;
  color: var(--read-accent);
  margin-bottom: 15px;
  line-height: 1.4;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  display: block;
  width: 100%;
}
.read-p-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.read-tag {
  background: var(--read-soft);
  color: var(--read-accent);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s;
}
.read-tag:hover { background: var(--read-accent); color: white; }

.read-p-code {
  background: var(--read-soft);
  padding: 16px;
  border-radius: 12px;
  font-family: monospace;
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  border: 1px dashed rgba(243, 96, 114, 0.35);
  margin-bottom: 20px;
  max-height: 180px;
  overflow-y: auto;
}

.read-p-btns-container {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gallery-compact-row-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 4px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  transition: 0.2s;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid #f1f5f9;
  background: white;
  color: #64748b;
}
.gallery-save-btn { color: var(--read-accent); }
.btn-like.liked {
  color: var(--read-accent);
  background: var(--read-soft);
  border-color: var(--read-border);
}
.btn-action:hover {
  border-color: var(--read-border);
  background: #f8fafc;
}
.gallery-copy-full {
  width: 100%;
  border: none !important;
  border-radius: 8px;
  background: var(--read-grad) !important;
  color: white !important;
  padding: 12px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(243, 96, 114, 0.2);
  cursor: pointer;
}
.gallery-copy-full:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.screenshot-container {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  width: 100%;
}
.single-thumbnail-wrapper {
  width: 100%;
  max-width: 500px;
  margin: 0;
  display: flex;
  justify-content: center;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.single-thumbnail-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

@keyframes gradient-text {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.read-title {
  background: linear-gradient(-45deg, #F36072, #EE9624, #393464, #F36072);
  background-size: 300% 300%;
  animation: gradient-text 5s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  line-height: 1.35;
  font-size: clamp(20px, 2.8vw, 30px);
  font-weight: 800;
  white-space: normal;
  overflow-wrap: break-word;
  writing-mode: horizontal-tb;
}

.more-blog-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  position: relative;
}
.more-blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--read-accent);
  box-shadow: 0 15px 35px rgba(243, 96, 114, 0.1);
}
.more-blog-read-btn { color: #64748b; transition: 0.2s; }
.more-blog-card:hover .more-blog-read-btn { color: var(--read-accent); }
.card-full-link {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
}
.blog-meta-info a { position: relative; z-index: 2; }

.sidebar-blog-item:hover {
  background: var(--read-soft) !important;
  border-color: var(--read-border) !important;
}
.sidebar-blog-item:hover h4 { color: var(--read-accent) !important; }

.read-sec-title {
  margin-top: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--read-accent);
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px dashed var(--read-border);
}

.read-auth-row {
  display: flex;
  align-items: center;
  gap: 15px;
  background: white;
  padding: 15px 30px;
  border-radius: 100px;
  border: 1px solid #e2e8f0;
  margin: 40px auto 0;
  width: fit-content;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

/* Desktop / tablet / mobile layout handled by desktop-layout.css (loaded last).
   Intentionally no display:contents — it caused crushed multi-column desktop. */
