/* ── Linuxero Main Stylesheet ── */

/* WordPress Core Alignment */
.alignleft { float: left; margin: 0.5rem 1.5rem 1.5rem 0; }
.alignright { float: right; margin: 0.5rem 0 1.5rem 1.5rem; }
.aligncenter { display: block; margin: 1.5rem auto; }
.alignwide { max-width: 1100px; margin: 1.5rem auto; }
.alignfull { max-width: 100vw; margin: 1.5rem calc(50% - 50vw); }

/* Comment support (minimal) */
.comments-area {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

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

/* WordPress gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.gallery-item img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* Captions */
.wp-caption {
  max-width: 100%;
  margin: 1.5rem 0;
}

.wp-caption-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* Screen reader text */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--accent);
  color: var(--bg-primary);
  padding: 0.5rem 1rem;
  z-index: 1000;
  font-family: var(--font-mono);
  font-weight: 600;
  border-radius: 0 0 var(--radius) 0;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* Search form */
.search-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 0.65rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.search-form button {
  padding: 0.65rem 1.25rem;
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.search-form button:hover {
  box-shadow: 0 0 15px var(--accent-glow);
}

/* Avatar */
.avatar-sm {
  border-radius: 50%;
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

/* Sticky posts */
.sticky .post-card {
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-dim);
}

/* By post author */
.bypostauthor {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}

/* Selection */
::selection {
  background: var(--accent);
  color: var(--bg-primary);
}

::-moz-selection {
  background: var(--accent);
  color: var(--bg-primary);
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Social Links */
.social-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-1px);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

/* Print */
@media print {
  .site-header, .site-footer, .nav-toggle, .pagination {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
}
