/*
Theme Name: WBC Theme
Author: Ahmed K.
Description: WBC Theme is a custom WordPress theme designed for a personal blog. It features a clean and modern design, inspired by Medium's writing style, with a focus on readability and user experience.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wbc-theme
*/

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap");


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Space Grotesk", sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: #f2f2f2;
}

.scrollbar-hide {
  -ms-overflow-style: none; /* Internet Explorer 10+ */
  scrollbar-width: none; /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

@keyframes fade-in {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.animation {
  opacity: 0;
}

.fade-in {
  animation: fade-in 0.5s ease-in 0s 1 normal none;
  opacity: 1;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in {
  animation: fade-in 0.5s ease-in-out;
}

.x {
  border: 2px solid black;
}
.xw {
  border: 2px solid white;
}

/* Medium-inspired Content Styling */
.prose {
  font-family: "Georgia", serif;
  color: #292929;
  line-height: 1.8;
  letter-spacing: -0.003em;
}

/* Headings */
.prose h1 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 2.5em;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 1.5em;
  margin-bottom: 0.7em;
  letter-spacing: -0.015em;
}

.prose h2 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.9em;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2em;
  margin-bottom: 0.7em;
  letter-spacing: -0.01em;
}

.prose h3 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.5em;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.8em;
  margin-bottom: 0.6em;
}

/* Paragraphs */
.prose p {
  margin-bottom: 2em;
  font-size: 1.25em;
}

.prose p:first-of-type:first-letter {
  font-size: 1.25em;
  font-weight: 700;
}

/* Lists */
.prose ul,
.prose ol {
  margin-bottom: 2em;
  padding-left: 1.5em;
}

.prose ul {
  list-style-type: none;
}

.prose ul li {
  position: relative;
  margin-bottom: 1em;
  font-size: 1.25em;
}

.prose ul li:before {
  content: "";
  position: absolute;
  left: -1.5em;
  top: 0.75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #292929;
}

.prose ol {
  list-style-type: decimal;
  counter-reset: list;
}

.prose ol li {
  margin-bottom: 1em;
  font-size: 1.25em;
}

/* Blockquotes - Medium style */
.prose blockquote {
  font-style: italic;
  font-weight: 400;
  border-left: 3px solid rgba(0, 0, 0, 0.84);
  padding-left: 2em;
  margin-left: -2.3em;
  margin-right: 0;
  padding-bottom: 0.2em;
  padding-top: 0.2em;
  margin-top: 2em;
  margin-bottom: 2em;
  font-size: 1.25em;
  letter-spacing: -0.01em;
  color: rgba(0, 0, 0, 0.76);
}

/* Links */
.prose a {
  color: #03a87c; /* Medium's green color */
  text-decoration: none;
  border-bottom: 1px solid #03a87c;
  transition: all 0.2s ease;
}

.prose a:hover {
  color: #018f69;
  border-bottom-color: #018f69;
}

/* Images */
.prose img {
  max-width: 100%;
  height: auto;
  margin: 2.5em auto;
  display: block;
  border-radius: 4px;
}

.prose figure {
  margin: 2.5em 0;
}

.prose figcaption {
  text-align: center;
  font-size: 0.875em;
  color: rgba(0, 0, 0, 0.68);
  margin-top: 0.8em;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Code blocks */
.prose pre {
  background-color: #f8f8f8;
  border-radius: 4px;
  padding: 1.5em;
  overflow-x: auto;
  margin: 2em 0;
  font-size: 0.875em;
}

.prose code {
  font-family: "Menlo", "Monaco", "Courier New", monospace;
  background-color: rgba(0, 0, 0, 0.05);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 1.1em;
}

/* Horizontal rule */
.prose hr {
  border: none;
  text-align: center;
  margin: 2.5em auto;
  height: auto;
}

.prose hr:before {
  content: "...";
  display: inline-block;
  letter-spacing: 0.6em;
  font-size: 1.5em;
  color: rgba(0, 0, 0, 0.68);
}

/* Tables */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 1em;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.prose th,
.prose td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  padding: 0.75em 0.5em;
  text-align: left;
}

.prose th {
  font-weight: 600;
}

/* WordPress specific alignment classes */
.prose .alignleft {
  float: left;
  margin-right: 2em;
  margin-bottom: 1.5em;
  margin-top: 0.5em;
}

.prose .alignright {
  float: right;
  margin-left: 2em;
  margin-bottom: 1.5em;
  margin-top: 0.5em;
}

.prose .aligncenter {
  clear: both;
  display: block;
  margin: 2.5em auto;
}

/* Medium-like highlighting for selected text */
::selection {
  background-color: #ffe9bc;
}

@media (max-width: 768px) {
  .prose p,
  .prose ul li,
  .prose ol li {
    font-size: 1.1em;
  }

  .prose h1 {
    font-size: 2em;
  }

  .prose h2 {
    font-size: 1.6em;
  }

  .prose h3 {
    font-size: 1.3em;
  }
}

#site-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff; /* Or match your background */
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#site-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ccc;
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.wp-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem;
  border-left: 4px solid #3b82f6;
  background: rgba(59, 130, 246, 0.05);
  font-style: italic;
  position: relative;
}

.wp-content blockquote::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 10px;
  font-size: 60px;
  color: rgba(59, 130, 246, 0.2);
  font-family: Georgia, serif;
}
