/* assets/main.css */
body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: #f8f9fb;
  color: #222;
  margin: 0;
  padding: 0;
}

header, nav {
  background: #181a1b;
  color: #fff;
  padding: 0.7rem 0 0.5rem 0;
  text-align: center;
}

header h1 {
  margin: 0.2em 0 0.1em 0;
  font-size: 1.7rem;
}

a {
  color: #1fa2ff;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #0d8ddb;
}

.container {
  max-width: 800px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 2rem;
}

.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  margin-bottom: 1.5rem;
  padding: 1.5rem;
}

h1, h2, h3 {
  font-weight: 700;
  color: #181a1b;
}

nav a {
  margin: 0 1rem;
  color: #fff;
  font-weight: 500;
  font-size: 1.05rem;
}

nav a.active, nav a:hover {
  color: #1fa2ff;
}

footer {
  text-align: center;
  color: #888;
  padding: 2rem 0 1rem 0;
  font-size: 0.95em;
}

.profile-card {
  max-width: 250px;
  margin: 2rem auto 2.5rem auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  text-align: center;
}
.profile-card .profile-pic {
  width: 210px;
  height: 210px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #1fa2ff;
  margin-bottom: 1rem;
  box-shadow: 0 1px 6px rgba(31,162,255,0.12);
}
.profile-card h2 {
  margin: 0.5rem 0 0.5rem 0;
  font-size: 1.6rem;
  color: #181a1b;
}
.profile-card p {
  color: #444;
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}
.profile-links a {
  color: #1fa2ff;
  font-weight: 500;
  margin: 0 0.3rem;
  text-decoration: none;
}
.profile-links a:hover {
  color: #0d8ddb;
  text-decoration: underline;
}

.profile-card.large {
  max-width: 480px;
  padding: 2.5rem 2rem 2rem 2rem;
}
.profile-card .profile-links {
  margin-top: 1.2rem;
}
.profile-card .profile-links a {
  display: inline-block;
  margin: 0 0.5rem;
  font-size: 1.6rem;
  color: #1fa2ff;
  transition: color 0.2s, transform 0.2s;
}
.profile-card .profile-links a:hover {
  color: #0d8ddb;
  transform: scale(1.15);
}
.profile-card .profile-links i {
  vertical-align: middle;
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  max-width: 700px;
  margin: 2.5rem auto 0 auto;
}
.explore-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-decoration: none;
  color: #181a1b;
  padding: 0;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  min-height: 180px;
  position: relative;
}
.explore-card:hover {
  box-shadow: 0 4px 16px rgba(31,162,255,0.13);
  transform: translateY(-4px) scale(1.03);
}
.explore-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.explore-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.7em 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
  text-align: center;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  background: #1fa2ff;
  z-index: 2;
  transition: background 0.2s;
}
.explore-card:nth-child(1) .explore-label { background: #1fa2ff; }
.explore-card:nth-child(2) .explore-label { background: #ffb347; }
.explore-card:nth-child(3) .explore-label { background: #77dd77; }
.explore-card:nth-child(4) .explore-label { background: #ff6961; }

.tag-cloud {
  max-width: 700px;
  margin: 2.5rem auto 0 auto;
  padding: 1.2rem 1rem 1.2rem 1rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  text-align: center;
}
.tag-cloud h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #181a1b;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.tag-label {
  display: inline-block;
  margin: 0.25rem 0.4rem 0.25rem 0;
  padding: 0.35em 1em;
  border-radius: 999px;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  transition: transform 0.15s;
}
.tag-label:hover {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.art-entry {
  max-width: 800px;
  margin: 2.5rem auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 2.5rem 2rem 2rem 2rem;
}
.art-image-wrapper {
  text-align: center;
  margin-bottom: 2rem;
}
.art-main-image {
  max-width: 100%;
  max-height: 480px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(31,162,255,0.10);
  object-fit: contain;
}
.art-header {
  text-align: center;
  margin-bottom: 1.2rem;
}
.art-header h1 {
  margin-bottom: 0.3rem;
  font-size: 2.1rem;
  color: #181a1b;
}
.art-meta {
  color: #888;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.art-excerpt {
  display: block;
  color: #1fa2ff;
  font-weight: 500;
  margin-top: 0.3em;
}
.art-content {
  font-size: 1.08rem;
  color: #222;
  margin-top: 1.5rem;
}
@media (max-width: 600px) {
  .art-entry {
    padding: 1.2rem 0.5rem 1rem 0.5rem;
  }
  .art-main-image {
    max-height: 240px;
  }
}

/* Responsive container and cards */
@media (max-width: 700px) {
  .container,
  .profile-card,
  .profile-card.large,
  .art-entry,
  .tag-cloud {
    padding: 1rem 0.5rem;
    max-width: 98vw;
  }
  .explore-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 98vw;
  }
  .explore-card img {
    height: 110px;
  }
  .explore-card {
    min-height: 130px;
  }
  .profile-card .profile-pic {
    width: 120px;
    height: 120px;
  }
  .art-main-image {
    max-height: 180px;
  }
}

@media (max-width: 480px) {
  .explore-grid {
    grid-template-columns: 1fr;
  }
  .profile-card,
  .profile-card.large,
  .art-entry,
  .tag-cloud {
    padding: 0.5rem 0.2rem;
  }
  .profile-card .profile-pic {
    width: 80px;
    height: 80px;
  }
  .art-main-image {
    max-height: 120px;
  }
  nav a {
    font-size: 0.95rem;
    margin: 0 0.4rem;
  }
  header h1 {
    font-size: 1.1rem;
  }
  .explore-card img {
    height: 90px;
  }
  .explore-card {
    min-height: 110px;
  }
}

/* Make tag labels wrap and shrink on mobile */
@media (max-width: 600px) {
  .tag-label {
    font-size: 0.85rem;
    padding: 0.25em 0.7em;
    margin: 0.15rem 0.2rem 0.15rem 0;
  }
}

/* Mobile nav styles */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  position: absolute;
  top: 0.5rem;
  right: 1.2rem;
  z-index: 1001;
  cursor: pointer;
}
@media (max-width: 700px) {
  nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(24,26,27,0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }
  nav.open {
    display: flex;
  }
  nav a {
    display: block;
    margin: 1.2rem 0;
    font-size: 1.4rem;
  }
  .mobile-nav-toggle {
    display: block;
  }
  header {
    position: relative;
  }
}

.tag-page {
  max-width: 800px;
  margin: 2.5rem auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 2.5rem 2rem 2rem 2rem;
}
.tag-page h1 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #181a1b;
}
.tag-list .card {
  margin-bottom: 1.5rem;
}

.card, .art-entry, .tag-page {
  background: #fff;
}
.card h2, .art-header h1, .tag-page h1, .post-title{
  color: #1fa2ff;
  font-weight: 700;
}

/* Code block styling */
pre, code {
  font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
}
pre {
  background: #f6f8fa;
  color: #222;
  border-radius: 8px;
  padding: 1em 1.2em;
  overflow-x: auto;
  margin: 1.2em 0;
  font-size: 1em;
}
code {
  background: #f6f8fa;
  color: #c7254e;
  border-radius: 4px;
  padding: 0.15em 0.4em;
  font-size: 0.98em;
}
