
/* ############################## BODY ######################*/
/* I will improve these parts ( I am not a frontend engineer :D)*/
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #e9ecef;
}

header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 20px 60px;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.site-name {
    font-size: 33px;
    font-weight: bold;
    color: #333;
    justify-self: start;
}

nav {
    display: flex;
    gap: 20px;
    justify-self: center;
    font-weight: 500;
}

nav a {
  color: #333;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 18px;
  font-weight: 600; 
  letter-spacing: 0.3px; 
}

nav a:hover {
    background-color: #1192e9;
    color: white;
}

nav a.active {
    background-color: #4cb2f7fb;
    color: white;
}

.search-container {
    position: relative;
    justify-self: end;
}

.search-icon {
    font-size: 18px;
    color: #333;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-icon:hover {
    background-color: #333;
    color: white;
}

.search-input {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 50px;
    padding: 6px 12px;
    font-size: 14px;
    border: 1px solid #333;
    border-radius: 20px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.search-input.active {
    opacity: 1;
    pointer-events: auto;
    right: 60px;
}

.highlight-e {
    color: #007BFF;
    font-weight: bold;
}



/* ============== Blog Intro ====================== */
.blog-intro {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 60px 5%;
  background: linear-gradient(145deg, #f0f0f0, #cacaca);
  box-shadow: 
    5px 5px 10px #bebebe,
    -5px -5px 10px #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.intro-content {
  flex: 1;
  min-width: 300px;
}

.intro-image {
  flex: 1;
  min-width: 300px; 
  max-width: 100%; 
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  align-self: flex-start; 
}

.intro-image img {
  width: 100%;
  height: auto;
  display: block; 
  object-fit: cover;
  transition: transform 0.3s ease;
}

.intro-image img:hover {
  transform: scale(1.02);
}

.image-caption {
  text-align: center;
  padding: 12px;
  font-size: 0.9rem;
  color: #6c757d;
  font-style: italic;
}

h1 {
  font-size: 2.5rem;
  color: #212529;
  margin-bottom: 15px;
  font-weight: 700;
}

.tagline {
  font-size: 1.2rem;
  color: #495057;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.tagline::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: #4dabf7;
}

.intro-text {
  column-width: 400px;
  column-gap: 40px;
  line-height: 1.7;
  color: #343a40;
  max-width: 600px;
}

.highlight {
  background: linear-gradient(120deg, #d0ebff 0%, #a5d8ff 100%);
  padding: 2px 6px;
  border-radius: 4px;
}

.cta-box {
  margin-top: 30px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border-left: 4px solid #4dabf7;
}

.cta-button {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #4dabf7;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: #339af0;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(77, 171, 247, 0.4);
}

@media (max-width: 768px) {
  .blog-intro {
      flex-direction: column;
      padding: 40px 5%;
  }
  
  h1 {
      font-size: 2rem;
  }
  .intro-text {
    column-width: auto;
}
}

.justified-text {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  margin-bottom: 1.2em;
  line-height: 1.7;
}

.intro-text p {
  text-align: justify;
  text-justify: inter-word;
  word-spacing: -0.05em; 
  margin-bottom: 1.2em;
  line-height: 1.7;
  hyphens: none; 
}


.cta-box p {
  margin-bottom: 0.8em;
}

/* ############################## MAIN ARTICLES  #####################################*/
.main_container {
    display: flex;
    gap: 20px;
    justify-self: center;
    
}

.art_box {
    width: 70%;
    min-width: 250px;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    background-color: #000000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.slider-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    background-color: #fff;
    position: relative;
}

.slider {
    display: flex;
    width: 100%;
    transition: transform 2s ease;
}

.slide {
    flex: 0 0 100%;
    max-width: 750px;
    height: 500px;
    position: relative;
}

.slide a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slide img {
    width: 100%;
    height: 100%;
    display: block;
}




/* DOT KISIMI */
.dots {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.dot {
    width: 12px;
    height: 12px;
    background: #bbb;
    border-radius: 50%;
    margin: 0 6px;
    cursor: pointer;
}
/* === SLIDER === */
.dot.active {
    background: #1192e9;
}

/* === END SLIDER === */

/* === SLIDER === */

.article-info {
  padding-left: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 70%);
  color: #fff;
  z-index: 2;
}


.article-info .meta a, .article-info .meta span {
  color: #f0f0f0;
  text-decoration: none;
}

.article-info .meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
  margin-bottom: 6px;
}

/* Ortak stil */
.meta span {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
  color: white;
  background-color: rgba(18, 148, 50, 0.1);
  text-transform: uppercase;
  display: inline-block;
  line-height: 1;
}


.category.ai {
  background-color: #e63946;
}

.category.sql {
  background-color: #1d3557;
}

.category.electronics {
  background-color: #2a9d8f;
}


.meta .date {
  background-color: #6c757d;
}

.meta .author {
  background-color: #343a40;
  text-transform: none; 
}
.article-info .title {
    text-align: left;
    width: 100%;
    font-size: 26px;
    font-weight: 700;
    margin-top: 5px;
    line-height: 1.3;
    color: #ffffff;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

/* Sağ Sol Tuşları */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.4);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%; /* ikon boyutu */
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  user-select: none;
  transition: background-color 0.3s ease;
}

.slider-arrow.left {
  left: 10px;
  background-image: url("images/previous.png");
}

.slider-arrow.right {
  right: 10px;
  background-image: url("images/next.png");
}

.slider-arrow:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

/* =============== Pop Box ============== */

.pop_box {
  width: 30%;
  min-width: 350px;
  max-width: 350px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.pop_article_list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pop_article {
  background-color: #f9f9f9;
  padding: 10px 15px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.pop_article .pop_title {
  font-weight: 600;
  font-size: 15px;
  color: #333;
}
.pop_article .category {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  width: fit-content;
  text-transform: uppercase;
  font-weight: bold;
  color: white;
}
.pop_buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.pop_button {
  flex: 1;
  padding: 8px 12px;
  background-color: #f1f1f1;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pop_button:hover {
  background-color: #e0e0e0;
}

.pop_button.active {
  background-color: #4dabf7;
  color: white;
}

.pop_div {
  font-size: 15px;
  line-height: 1.6;
}

.pop_div h3 {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
}
.pop_article:hover {
  background-color: #e9ecef;
}

.pop_article .pop_title {
  font-weight: 600;
  font-size: 15px;
  color: #333;
}

.pop_article .category {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  width: fit-content;
  text-transform: uppercase;
  font-weight: bold;
  color: white;
}

.pop_article .author {
  padding: 3px 10px;
  border-radius: 20px;
  background-color: #343a40;
  color: white;
  font-size: 11px;
  font-weight: bold;
  display: inline-block;
  width: fit-content;
  font-style: normal;
  text-transform: none;
}

.meta_line {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}


/* =================== SÖZ =================== */


.parallax-container {
  position: relative;
  height: 65vh;
  overflow: hidden;
  isolation: isolate;
}

.parallax-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://source.unsplash.com/1600x900/?universe');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: brightness(0.7) contrast(1.2);
  transform: scale(1.1);
  z-index: -1;
}

.quote-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 2rem;
}

.quote-box {
  background: rgba(15, 23, 42, 0.85);
  padding: 3rem 4rem;
  border-radius: 12px;
  border-left: 5px solid #4dabf7;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  max-width: 600px;
}

.quote-text {
  font-family: 'Georgia', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  margin: 0;
}

.quote-author {
  font-family: 'Georgia', serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-style: italic;
  color: #d0ebff;
  margin-top: 1.5rem;
  text-align: right;
}

/* MOBIL UYUMLULUK */
@media (max-width: 768px) {
  .parallax-container {
      height: 70vh;
  }
  
  .parallax-image {
      background-attachment: scroll;
      transform: scale(1.2);
  }
  
  .quote-box {
      padding: 2rem;
  }
  
  .quote-text {
      font-size: 1.8rem;
  }
  
  .quote-author {
      font-size: 1.2rem;
  }
}

/* YENİ YER */

.category_section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1210px;        
  margin: 60px auto 0 auto; 
  padding: 0 20px;          
  
}

.category_block {
  padding: 20px;
  box-shadow: 12px 12px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.2s ease;
  background-color: #ffffff; 
}



.category_header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  position: relative;
  text-align: center;
}

.category_header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #222;
  margin: 0;
}


.nav_arrows {
  position: absolute;
  right: 0;
  display: flex;
  gap: 10px;
}

.nav_arrows .arrow {
  width: 28px;
  height: 28px;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 65%;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  border-radius: 50%;
}

.nav_arrows .arrow:hover {
  background-color: rgba(0, 0, 0, 0.1);
  transform: scale(1.1);
}
.arrow.prev {
  background-image: url('images/previous.png');
}

.arrow.next {
  background-image: url('images/next.png');
}
.category_cards {
  display: flex;
  scroll-behavior: smooth;
  overflow-x: auto;
  overflow-y: visible;
  gap: 20px;
  scrollbar-width: none;
  padding-top: 10px;
}
.category_cards::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.category_card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
  height: 285px;
  flex: 0 0 calc(50% - 10px);
}

.category_card:hover {
  transform: translateY(-5px);
}

.category_card img {
  width: 100%;
  height: 160px;

}

.category_card .meta_line {
  display: flex;
  gap: 8px;
  padding: 10px 12px 0;
  flex-wrap: wrap;
}

.category_card .author {
  background-color: #343a40;
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: bold;
  text-transform: none;
  display: inline-block;
}

.category_card .date {
  background-color: #6c757d;
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: bold;
  text-transform: none;
  display: inline-block;
}


.category_card .title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  padding: 0 12px 12px 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}





/* ================ Footer ===================== */

.site-footer {
  margin-top: 50px;
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 40px 0 20px;
  font-family: 'Arial', sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}


.footer-brand img {
  margin-bottom: 20px;
}


.footer-links {
  display: flex;
  gap: 50px;
}

.footer-column p {
  max-width: 300px;
  color: #bdc3c7;
  font-size: 14px;
  line-height: 1.6;
  word-wrap: break-word;
  text-align: justify;
}

.footer-column h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 5px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: #3498db;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column li {
  margin-bottom: 8px;
}

.footer-column a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: #3498db;
}

/* SOSYAL MEDYA İKONLARI */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-links a {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.social-links a:hover {
  background-color: #3498db;
  transform: translateY(-3px);
}

/* COPYRIGHT */
.copyright {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #bdc3c7;
  font-size: 14px;
}

.copyright strong {
  color: #fff;
}


@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');


@media (max-width: 768px) {
  .footer-container {
      flex-direction: column;
      align-items: center;
      text-align: center;
  }
  
  .footer-links {
      flex-direction: column;
      gap: 30px;
      margin: 20px 0;
  }
  
  .footer-column h3::after {
      left: 50%;
      transform: translateX(-50%);
  }
}