:root {
  --bg: #0f1724;
  --card: #0b1320;
  --muted: #9aa7c7;
  --text: #e6eef8;
  --accent: #0b5cff;
  --glass: rgba(255,255,255,0.03);
  --radius: 12px;
  --maxwidth: 1100px;
  --gap: 1rem;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: linear-gradient(180deg, #041126 0%, #071225 60%);
  color: var(--text);
  line-height: 1.5;
  padding: 32px 20px;
  display: flex;
  justify-content: center;
  font-size: 16px;
}

.site {
  width: 100%;
  max-width: var(--maxwidth);
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
}

/* Header */
header.site-header {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.profile-pic {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--accent), #0ff);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #041226;
  font-size: 20px;
  box-shadow: 0 6px 18px rgba(11,92,255,0.15);
}

h1 {
  font-size: 26px;
  margin: 0;
  line-height: 95%;
}

header .actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Sidebar */
aside.sidebar {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding: 22px;
  border-radius: var(--radius);
  top: 24px;
  height: fit-content;
  min-height: 220px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.02);
}

.search input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.04);
  background: transparent;
  color: var(--text);
  outline: none;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--glass);
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.02);
  cursor: pointer;
  user-select: none;
}

.tag.selected {
  background: var(--accent);
  color: white;
  border: none;
  box-shadow: 0 6px 20px rgba(11,92,255,0.12);
}

/* Main */
main.content {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.controls {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.controls .left {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
}

.btn.primary {
  background: linear-gradient(90deg, var(--accent), #48b7ff);
  color: #02102b;
  border: none;
  box-shadow: 0 8px 24px rgba(11,92,255,0.18);
}

/* Post cards */
.posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.post-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

/* */	
    
.post-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 6px auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
   }
	
.thumb {
  width: 45px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  margin: 15px 2px 0 0;
  box-shadow: 0 3px 8px rgba(0,0,0,0.35);
}

.post-text {
  flex: 1;
}

article.post {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 12px;
  padding: 16px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.02);
}

.post .meta {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 0 0;
}

.post h2 {
  margin: 3px 0 0 0;
  font-size: 17px;
}

.excerpt {
  flex: 1;
  color: var(--muted);
  font-size: 14px;
  margin-top: 3px;
}

/* Single post */
.single {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(2,8,15,0.5);
}

.single h3 {
  margin-top: 0;
}

.a {
	color:red;
}

.post-body {
  color: var(--muted);
  margin-top: 14px;
  white-space: pre-wrap;
}

/* Footer */
footer.site-footer {
  grid-column: 1 / -1;
  margin-top: 207px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.legalese {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}

/* Styling for the new image cycling feature (Carousel) */

.image-carousel {
    /* Position container relative to place buttons/tracker absolutely within it */
    position: relative;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    /* Center the contents (buttons and image) */
    justify-content: center; 
}

.image-carousel .post-image {
    /* FIX: Set image to 60% width and center it -- THIS WAS 40% */
    width: 50%; 
    height: auto;
    display: block;
    margin: 0 auto;
    /* Optional: Add a light border/shadow to define the image area */
    border: 1px solid var(--border-color, #ccc);
}

.carousel-btn {
    /* Style for the navigation arrows */
    /* Position is absolute relative to the .image-carousel container */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    line-height: 1;
    border-radius: 50%;
    transition: background 0.2s;
}
/* to hide arrows for single image */
.carousel-btn.disabled {
    opacity: 0.0; /* Dim the arrow */
    cursor: default;
    pointer-events: none; /* Prevents click events */
}

/* ... (rest of the carousel CSS remains the same) ... */
.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.carousel-tracker {
    /* Container for the dots */
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.tracker-dot {
    /* Individual dots */
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5); /* Semi-transparent white default */
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.2);
    transition: background 0.2s;
}

.tracker-dot.active {
    /* Active dot style */
    background: var(--primary-color, #0b5cff); /* Should match your theme's primary color */
    border: 1px solid white;
}


/* Mobile */
@media (max-width: 900px) {
  .site {
    display: block;
  }

  main.content {
    width: 100%;
    margin-bottom: 32px;
  }

  aside.sidebar {
    width: 100%;
    margin-top: 20px;
    position: relative;
    top: 0;
  }
}

/* Subscribe form */
form[name="subscribe"] {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 10px;
}

form[name="subscribe"] input,
form[name="subscribe"] button {
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
}

form[name="subscribe"] input {
  background: rgba(255,255,255,0.1);
  color: white;
}
	
/* Make the comment fields look consistent and add spacing */
.comment-form input,
.comment-form textarea {

  display: block;
  width: 100%;
  max-width: 600px; /* Adjust width — can increase or decrease */
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  margin: 0 0 10px 0;
  padding: 8px;
  box-sizing: border-box;
}

/* Make the textarea wider specifically */
.comment-form {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.comment-form textarea {
  width: 100%;
  max-width: 600px;
  min-height: 140px;
  resize: vertical;
}

/* Add padding above the labels generated by placeholders */
.comment-form input::placeholder,
.comment-form textarea::placeholder {
  padding-top: 6px;
}

/* Add spacing above the entire form section */
.comments h3 {
  margin-bottom: 12px;
  margin-top: 18px;
}

/* styling for comment posting */
.comment {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 3px solid var(--accent);
}
.comment strong {
    display: block;
    color: var(--text);
    font-size: 14px;
}
.comment .date {
    font-size: 11px;
    color: var(--muted);
}
.comment p {
    margin: 5px 0 0 0;
    font-size: 14px;
}

/* Sidebar slide animation ADDED 11/25 -- HERE TO END */
.sidebar {
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: translateX(0);
  opacity: 1;
}

.sidebar.collapsed {
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none; /* prevent clicking when hidden */
}

/* Show Sidebar button */
#showSidebarBtn {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  display: none;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
}
