@import url(./styles.css);

body:has(p[data-img="true"]),
body:has(p[data-img="false"]),
body:has(#entries),
body:has(
  h1[class^="h-"],
  h2[class^="h-"],
  h3[class^="h-"],
  h4[class^="h-"],
  h5[class^="h-"],
  h6[class^="h-"]
) {
  --background-color: #ffffff;
  --primary-color: #0064e5;
  --highlight-color: rgba(0, 0, 0, 0.7);
  --secondary-color: #555555;
  --primary-text-color-button: #ffffff;
  --text-color-textarea: #000000;
  --primary-button-background: #004caf;
  --a-hover-background: #003f92;
  --button-upgrade: linear-gradient(135deg, #f59015, #f97316);
  --input-bg: #f0f0f0;
  --input-hover-bg: #e0e0e0;
  --input-border-color: #cccccc;
  --input-hover-border-color: #999999;
  --border-color: rgba(0, 0, 0, 0.2);
  --placeholder-color: rgba(0, 0, 0, 0.4);
  --chip-bg: rgba(0, 0, 0, 0.05);
  --chip-active-bg: #ddd;
  --chip-hover-bg: #ccc;
  --heading-align: center;
  --align-items: center;
  --justify-content: center;
 
  body * {
    box-sizing: border-box;
  }
 
  header {
    .nav-bar {
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      padding: 0.75rem;
 
      .nav-links {
        a {
          color: var(--highlight-color);
        }
 
        a:hover {
          color: var(--primary-color);
        }
      }
 
      .signin-button {
        color: rgb(24, 24, 27);
        border: 1px solid #333;
        transition:
          background-color 0.2s ease,
          color 0.2s ease;
 
        &:hover {
          background-color: #e5e7eb;
          color: var(--highlight-color);
        }
      }
    }
  }
 
  footer {
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
 
  main {
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
      color: var(--primary-color);
    }
 
    a,
    strong a {
      color: var(--primary-color);
      cursor: pointer;
      transition: color 0.2s ease;
 
      &:hover {
        color: #fb7185;
      }
    }
 
    blockquote {
      border-left: 4px solid var(--primary-color);
    }
 
    .loading-entry {
      width: 100%;
 
      &:after {
        border-top-color: var(--primary-color);
      }
    }
 
    .blogPost {
      justify-content: start;
 
      img {
        margin: 0;
      }
 
      h2 {
        margin: 0;
        padding-bottom: 0.1em;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
 
        line-height: 1.2em;
        max-height: 2.42em;
      }
    }
  }
}