/*
Theme Name: Minimal Grid
Description: Very minimal, responsive, all-white theme — 3-column grid, single column on mobile. Keeps existing markdown editor support.
Version: 1.0
Author: you
*/

:root{
  --max-width: 1600px;
  --gap: 24px;
  --radius: 12px;
  --shadow: 0 4px 12px rgba(0,0,0,0.05);
  --border-style: dotted;
  --border-color: #ddd;
}

*{box-sizing: border-box;margin:0;padding:0}
html,body{height:100%}
body{
  background: #f7f7f7;
  color:#000;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  font-family: "Roboto Slab", serif;
  font-optical-sizing: auto;
  font-style: normal;
  line-height:1.65;
  padding: 20px;
}

/* Main container wrapper */
.site-container {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Site wrapper */
.site {
  padding: 0 40px;
  width: 100%;
}

h1,h2,h3,h4{
  font-family: "Unbounded", sans-serif;
  font-optical-sizing: auto;
  font-weight:600;
  font-style: normal;
}

a{
  text-decoration:none;
  color:#222;
}

/* Header */
.site-header{
  padding: 40px 0 30px;
  border-bottom: 1px var(--border-style) var(--border-color);
}
.site-branding h1{
  font-family: "Unbounded", sans-serif;
  font-weight:700;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: #000;
  margin: 0;
}

.site-branding h1 a {
  color: #000;
}

/* ==========================================================================
   Landing Page Styles
   ========================================================================== */

/* Main container */
.landing-container {
 
  width: 100%;
  min-height: 500px;
  position: relative;
}


.posts-list{

display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 16px;
}

/* Left Column - Tags */
.tags-sidebar {
  padding: 40px 30px 40px 0;
  border-right: 1px var(--border-style) var(--border-color);
  position: relative;
  overflow: hidden;
}

.tags-title {
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 25px;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 10px;
  border-bottom: 1px var(--border-style) var(--border-color);
}

.tags-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.logo_top{

width:12%;
height:auto;
position:absolute;
top:2vh;
right:4%;

}

.logo_top img{

width:100%;
height:auto;
}

.tag-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px var(--border-style) transparent;
}

.tag-item:hover {
  background-color: #f8f8f8;
  padding-left: 8px;
  padding-right: 8px;
  margin: 0 -8px;
}

.tag-item:last-child {
  border-bottom: 1px var(--border-style) transparent;
}

.tag-name {
  font-family: "Roboto Slab", serif;
  font-size: 14px;
  color: #333;
}

.tag-count {
  font-family: "Roboto Slab", serif;
  font-size: 12px;
  color: #666;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 10px;
  min-width: 24px;
  text-align: center;
}

.no-tags {
  font-family: "Roboto Slab", serif;
  font-size: 14px;
  color: #999;
  font-style: italic;
  padding: 10px 0;
}

/* Right Column - Posts */
.posts-main {
   
  position: relative;
}

/* Filter */
.posts-filter {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px var(--border-style) var(--border-color);
}

#posts-search {
  width: 100%;
  padding: 14px 18px;
  font-family: "Roboto Slab", serif;
  font-size: 16px;
  border: 1px var(--border-style) #aaa;
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

#posts-search:focus {
  outline: none;
  border-color: #222;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

.filter-count {
  font-family: "Roboto Slab", serif;
  font-size: 13px;
  color: #666;
  display: block;
  text-align: right;
}

/* Entry Box */
.entry_box {
  
  
  align-items: flex-start;
  
  gap: 25px;
  padding: 4px 0;
  border-bottom: 1px var(--border-style) var(--border-color);
  transition: all 0.3s ease;
}

.entry_box:last-child {
  border-bottom: none;
}

/* Thumbnail (33%) */
.entry-thumbnail {
  width: 99.99%;
  flex-shrink: 0;
}

.entry-thumbnail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
  display: block;
  border: 1px var(--border-style) var(--border-color);
}

.thumbnail-placeholder {
  width: 100%;
  height: 200px;
  background: #f8f8f8;
  border-radius: calc(var(--radius) - 4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-family: "Roboto Slab", serif;
  font-size: 14px;
  border: 1px var(--border-style) var(--border-color);
}

/* Content (66%) */
.entry-content {
  width: 99.66%;
  display: flex;
  flex-direction: column;
  padding: 5px 0;
}

.entry-title {
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 12px;
  color: #000;
  line-height: 1.3;
}

.entry-title a {
  color: #000;
  text-decoration: none;
  transition: color 0.2s ease;
}

.entry-title a:hover {
  color: #555;
  text-decoration: underline;
}

.entry-description {
  font-family: "Roboto Slab", serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 20px;
  flex-grow: 1;
}

.entry-meta {
  font-family: "Roboto Slab", serif;
  font-size: 14px;
  color: #666;
  padding-top: 10px;
  border-top: 1px var(--border-style) #eee;
}

/* No posts message */
.entry_box.no-posts {
  padding: 60px 0;
  border-bottom: none;
  justify-content: center;
  text-align: center;
}

.entry_box.no-posts .entry-content {
  width: 100%;
}

/* ==========================================================================
   Single Post View Styles
   ========================================================================== */

.single-article {
max-width: 900px;

  padding: 60px 0;
}

.entry-header {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px var(--border-style) var(--border-color);
}

.entry-header .entry-title {
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
  font-size: 36px;
  margin-bottom: 15px;
  color: #000;
  line-height: 1.3;
}

.entry-header .meta {
  font-family: "Roboto Slab", serif;
  font-size: 14px;
  color: #666;
}

.entry-content {
  font-family: "Roboto Slab", serif;
  font-size: 18px;
  line-height: 1.8;
  color: #111;
  margin-bottom: 60px;
}

.entry-content p {
  margin-bottom: 24px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: "Unbounded", sans-serif;

  color: #000;
}

.entry-content h2 {
  font-size: 1.2em;
}

.entry-content h3 {
  font-size: 24px;
}

.entry-content h4 {
  font-size: 20px;
}

.entry-content ul,
.entry-content ol {
  margin-left: 24px;
  margin-bottom: 24px;
}

.entry-content li {
  margin-bottom: 8px;
}

.entry-content a {
  color: #222;
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.entry-content a:hover {
  color: #FFF;
  background-color: #222;
   text-decoration: none;
}

.entry-content img {
  width: 100% !important;
  height: auto;
  border-radius: calc(var(--radius) - 4px);
  margin: 30px 0;
  border: 2px var(--border-style) var(--border-color);
}

.entry-content blockquote {
  border-left: 4px solid #000;
  padding-left: 24px;
  margin: 30px 0;
  font-style: italic;
  color: #555;
}

.entry-content pre,
.entry-content code {
  background: #f8f8f8;
  border: 1px var(--border-style) var(--border-color);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 16px;
  font-family: monospace;
}

.entry-content pre {
  padding: 20px;
  overflow-x: auto;
  margin: 30px 0;
}

.entry-content pre code {
  background: transparent;
  border: none;
  padding: 0;
}

.entry-footer {
  padding-top: 40px;
  border-top: 1px var(--border-style) var(--border-color);
}

.entry-footer .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.entry-footer .tags a {
  font-family: "Roboto Slab", serif;
  font-size: 14px;
  color: #666;
  text-decoration: none;
  border: 1px var(--border-style) #666;
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.entry-footer .tags a:hover {
  background: #f8f8f8;
  color: #000;
  border-color: #000;
}

/* ==========================================================================
   Original Grid Styles (Kept for other pages)
   ========================================================================== */

/* Grid of posts */
.posts-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  align-items: start;
  padding: 40px 0;
}

/* Card style */
.post-card{
  background: #fff;
  border: 1px var(--border-style) var(--border-color);
  border-radius: var(--radius);
  padding: 18px;
  overflow: hidden;
  display:flex;
  flex-direction:column;
  min-height: 250px;
  transition: transform 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
}

/* Thumbnail */
.post-card .thumb{
  width:100%;
  height:180px;
  border-radius: calc(var(--radius) - 4px);
  overflow:hidden;
  display:block;
  margin-bottom:15px;
  background: #f8f8f8;
  flex-shrink:0;
  border: 1px var(--border-style) var(--border-color);
}
.post-card .thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition: transform 0.3s ease;
}

.post-card:hover .thumb img {
  transform: scale(1.05);
}

/* Title */
.post-card h2{
  font-family: "Unbounded", sans-serif;
  font-weight:600;
  font-size: 20px;
  margin: 0 0 10px;
  color:#000;
  line-height: 1.4;
}

/* Excerpt/description */
.post-card .excerpt{
  font-size: 15px;
  color:#333;
  opacity:0.9;
  flex:1 1 auto;
  margin-bottom:15px;
  line-height: 1.6;
}

/* Tags */
.post-card .tags{
  font-size:13px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.post-card .tag{
  border:1px var(--border-style) #000;
  padding:5px 10px;
  border-radius:999px;
  font-size:12px;
  color: #666;
  transition: all 0.2s ease;
}

.post-card .tag:hover {
  background: #f8f8f8;
  color: #000;
}

/* Utility */
.meta{
  font-size:13px;
  color: #666;
  margin-bottom:10px;
}

/* Pagination */
.pagination {
  padding: 40px 0;
  border-top: 1px var(--border-style) var(--border-color);
  margin-top: 40px;
}

/* Site Footer */
.site-footer {
  background: #fff;
  padding: 30px 40px;
  border-top: 1px var(--border-style) var(--border-color);
  margin-top: 40px;
}

.site-info {
  font-family: "Roboto Slab", serif;
  font-size: 14px;
  color: #666;
  text-align: center;
}

/* Responsive */
@media (max-width: 1200px) {
  .site {
    padding: 0 30px;
  }
  
  .tags-sidebar {
    padding-right: 20px;
  }
  
  .posts-main {
    padding-left: 30px;
  }
  
  .site-container{
  
  width:900px;
  }
}

@media (max-width: 900px) {
  .landing-container {
    grid-template-columns: 30% 70%;
  }
  
  .entry-thumbnail {
    width: 40%;
  }
  
  .entry-content {
    width: 60%;
  }
  
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .single-article {
    padding: 40px 0;
  }
  
  .entry-header .entry-title {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .site {
    padding: 0 20px;
  }
  
  body {
    padding: 15px;
  }
  
  .landing-container {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .tags-sidebar {
    border-right: none;
    border-bottom: 1px var(--border-style) var(--border-color);
    padding: 30px 0;
    margin-bottom: 0;
  }
  
  .posts-main {
    padding: 30px 0;
  }
  
  .entry-thumbnail {
    width: 35%;
  }
  
  .entry-content {
    width: 65%;
  }
  
  .entry-thumbnail img,
  .thumbnail-placeholder {
    height: 180px;
  }
  
  .site-header {
    padding: 30px 0 20px;
  }
  
  .site-branding h1 {
    font-size: 26px;
  }
}

@media (max-width: 640px) {
  .site {
    padding: 0 15px;
  }
  
  body {
    padding: 10px;
  }
  
  .entry_box {
    flex-direction: column;
    gap: 20px;
    padding: 25px 0;
  }
  
  .entry-thumbnail,
  .entry-content {
    width: 100%;
  }
  
  .entry-thumbnail img,
  .thumbnail-placeholder {
    height: 200px;
  }
  
  .entry-title {
    font-size: 22px;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
    padding: 30px 0;
  }
  
  .post-card {
    min-height: 220px;
  }
  
  .post-card .thumb {
    height: 160px;
  }
  
  .single-article {
    padding: 30px 0;
  }
  
  .entry-header .entry-title {
    font-size: 26px;
  }
  
  .entry-content {
    font-size: 16px;
  }
  
  .site-footer {
    padding: 20px 15px;
  }
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce){
  * { transition: none !important; animation: none !important; }
}
