/* ================== */
/* Main color variables */
:root {
  --accent: #1b73e8;
  --bg: #fff;
  --radius: 8px;
}


header { display: none; }
header.loaded { display: block; }





/* ================== */
/* Reset body */
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background-color: #fff;
  color: #333;
}

/* ================== */
/* Header: logo + search */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
















.site-header {
  background: var(--bg);
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.logo img {
  height: 42px;
}

/* ================== */
/* Search form */
.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 25%;
  min-width: 160px;
}

.search-form input {
  flex: 1;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 15px;
  outline: none;
}

.search-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(27, 115, 232, 0.1);
}

.search-form button {
  height: 40px;
  padding: 0 14px;
  background: #37C8CF;
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

.search-form button:hover {
  background: #2ab2b9;
}


/* ================== */
/* Preview Input + Button */
.preview-control {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 20px auto 5px auto;
  max-width: 600px;
}

.preview-control input {
  flex: 1;
  padding: 12px 14px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.preview-control input:focus {
  border-color: #1b73e8;
  box-shadow: 0 0 0 3px rgba(27, 115, 232, 0.15);
}

.preview-control button {
  padding: 12px 20px;
  background: #37C8CF;
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.preview-control button:hover {
  background: #2ab2b9;
  transform: translateY(-1px);
}



/* Font Details Section */
.font-details {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  margin-top: 40px;
}

/* Left Column - Image Slider */
.font-left {
  width: 60%;
  position: relative;
}

.slider {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.slides {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.slides img {
  width: 100%;
  height: auto;
  flex-shrink: 0;
  border-radius: 10px;
}

/* Slider Buttons */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  background-color: rgba(0, 0, 0, 0.4);
  border: none;
  padding: 12px 18px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  transition: background 0.3s;
}

.prev:hover, .next:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.prev { left: 10px; }
.next { right: 10px; }

/* Right Column */
.font-right {
  width: 40%;
}

.info-heading {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  background: #e9e9e9;
  color: #333;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 14px;
}

/* License and Designer */
.font-license,
.font-designer {
  font-size: 15px;
  color: #444;
  margin-bottom: 20px;
}

/* Tabs Section */
.font-tabs {
  margin-top: 60px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
}

/* Tab Buttons */
.tab-buttons {
  display: flex;
  border-bottom: 2px solid #eee;
  background: #f8f8f8;
}

.tab-btn {
  flex: 1;
  padding: 14px 0;
  font-weight: 600;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-btn.active {
  background: #1b73e8;
  color: #fff;
}


.generator-preview {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 20px;
  min-height: 120px;
  cursor: text;
  outline: none;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  word-wrap: break-word;
  white-space: pre-wrap;
  line-height: 1.4;
  display: block;
text-align: center;
}


.tab-btn:hover {
  background: #e9e9e9;
}

.language-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;                /* space between tags */
  margin-top: 8px;
}

.language-tag {
  display: inline-block;
  padding: 6px 12px;
  background-color: #E9E9E9;
  color: #000;
  border-radius: 20px;
  font-size: 14px;
  cursor: default;
  transition: background 0.3s;
}

/* Tab Content */
.tab-content {
  display: none;
  padding: 25px;
  font-size: 15px;
  color: #444;
  line-height: 1.6;
}

.tab-content.active {
  display: block;
}

/* Font Generator */
.generator-box {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.generator-box input {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.generator-box button:hover {
  background: #155fc2;
}

/* Comments Section */
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.comment-form button {
  align-self: flex-start;
  background: #1b73e8;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.comment-form button:hover {
  background: #155fc2;
}


.character-map {
  margin-top: 20px;
}

.characters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #f9f9f9;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.character-map h4 {
  font-size: 18px;  /* increase as needed */
  font-weight: 600; /* optional: make it bold */
  margin-bottom: 15px; /* spacing below the heading */
}

.characters span {
  display: inline-block;
  width: 70px;
  height: 70px;
  text-align: center;
  line-height: 70px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;   /* uses the same font as preview */
  font-size: 32px;
  cursor: default;
  user-select: none;
  transition: background 0.2s;
}

.characters span:hover {
  background: #1b73e8;
  color: #fff;
}

/* Download Button */
.download-btn.large {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: #37C8CF;
  color: white;
  padding: 14px 0;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s;
}

.download-btn.large:hover {
  background: #2ab2b9;
}

/* ================== */
/* View all button */
.view-all-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.view-all-button {
  background: #37C8CF;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.view-all-button:hover {
  background: #2ab2b9;
  transform: translateY(-2px);
}

/* ================== */
/* Menu row */
.menu-row {
  background: #F9F9F9;
  border-top: 1px solid #eee;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 80px;
  height: 50px;
  align-items: center;
}

.menu li a {
  text-decoration: none;
  color: #777;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
}

.menu li a:hover {
  color: #000;
}

/* ================== */
/* Main content */
main {
  margin: 0;
  padding: 20px 40px 40px 40px;
  max-width: 1200px;
  line-height: 1.6;
  font-size: 16px;
  color: #333;
}

main h1 {
  margin: 0 0 10px 0;
  line-height: 1.4;
}

/* Horizontal line under heading */
.category-line {
  height: 1px;
  background-color: #ddd;
  max-width: calc(100% - 20px);
  margin: 0 auto 60px auto;
}

/* Category heading */
.category-heading {
  color: #555;
  text-align: center;
  margin: 30px 0 15px;
  font-weight: 600;
  font-size: 32px;
}

/* ================== */
/* Posts grid */
.category-posts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

/* Post card */
.post-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #333;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card img {
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.post-card h3 {
  margin: 10px 0 5px 0;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.post-meta {
  font-size: 14px;
  color: #777;
  text-align: center;
}

/* Hover effect */
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}



/* Pagination Styling */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 50px auto;
  flex-wrap: wrap;
}

.pagination button {
  background: #ffffff;
  border: 1px solid #ccc;
  color: #333;
  padding: 8px 14px;
  font-size: 15px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.pagination button:hover {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
  transform: translateY(-2px);
}

.pagination button.active {
  background: linear-gradient(135deg, #007bff, #0056d6);
  color: #fff;
  border: none;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  transform: scale(1.05);
}

.pagination button:disabled {
  background: #eee;
  color: #aaa;
  border: 1px solid #ddd;
  cursor: not-allowed;
  box-shadow: none;
}

@media (max-width: 600px) {
  .pagination button {
    padding: 6px 10px;
    font-size: 14px;
  }
}





/* Responsive grid */
@media (max-width: 1024px) {
  .category-posts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .category-posts {
    grid-template-columns: 1fr;
  }
}

/* ================== */
/* Footer */
.site-footer {
  background: var(--bg);
  border-top: 1px solid #eee;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.03);
  margin-top: 60px;
  padding: 40px 0 0 0;
  font-family: Inter, Arial, sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-cols {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

/* Individual column */
.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-col h3 {
  color: #333;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
  position: relative;
}

/* Remove colored lines */
.footer-col h3::after {
  content: none;
}

.footer-col.quick-links {
  text-align: center;
}

.footer-col.follow-us {
  text-align: right;
}

.footer-col p {
  color: #666;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  text-decoration: none;
  color: #777;
  font-size: 15px;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  background: #f9f9f9;
  border-top: 1px solid #eee;
  padding: 15px 0;
  text-align: center;
  font-size: 14px;
  color: #777;
}

/* Responsive footer */
@media (max-width: 768px) {
  .footer-cols {
    flex-direction: column;
    gap: 25px;
    align-items: center;
  }
  .footer-col {
    text-align: center !important;
  }
}

/* ================== */
/* Font Post Layout */
.font-post {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

/* Left column (80%) */
.font-left {
  flex-basis: 80%;
}

.font-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

/* Apply color + no underline to the link itself */
.font-title a {
    color: #000 !important;          /* Black */
    text-decoration: none !important; /* No underline */
}

.font-title a:hover {
    color: #000 !important;          
    text-decoration: none !important;
}


.font-category {
  color: #888;
  font-size: 14px;
  margin-bottom: 10px;
}

.font-preview {
  text-align: left;
  color: #333;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  margin-top: 10px;
  background: #fafafa;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}


/* Right column (20%) */
.font-right {
  flex-basis: 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.font-license {
  font-size: 16px;
  color: #444;
  margin-bottom: 15px;
  font-weight: 500;
}

/* Buttons group */
.button-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 12px 0;
  width: 180px;
  text-align: center;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Download button */
.download-btn {
  border: 2px solid #1b73e8;
  color: #1b73e8;
  background: #fff;
}
.download-btn:hover {
  background: #1b73e8;
  color: #fff;
}

/* More Information button */
.info-btn {
  border: 2px solid #28a745;
  color: #28a745;
  background: #fff;
}
.info-btn:hover {
  background: #28a745;
  color: #fff;
}

/* Responsive for Font Post */
@media (max-width: 768px) {
  .font-post {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .font-left,
  .font-right {
    flex-basis: 100%;
  }

  .font-right {
    align-items: center;
  }

  .btn {
    width: 160px;
  }
}

/* ================== */
/* Responsive tweaks */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  .menu {
    gap: 18px;
    font-size: 14px;
  }
  main {
    padding: 20px 20px 40px 20px;
  }
}
