/* Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #4a6cf7;
    --bg-color: #ffffff;
    --text-color: #333333;
    --border-color: #e0e0e0;
    --shadow: 0 6px 6px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* 🔹 Firefox için */
input[type=number] {
  -moz-appearance: textfield;
}
input[type=date]{
        padding-block: 1px;
    padding-inline: 2px;
}

.dark-mode {
    --primary-color: #6b8aff;
    --bg-color: #1a1a1a;
    --text-color: #f0f0f0;
    --border-color: #333333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar Stilleri */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
    margin-left: 5px;
    line-height: 13px;
}

.logo a img {
    width: 45px;
}


.search-bar {
    flex: 1;
    margin: 0 15px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px;
    border-radius: 25px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    outline: none;
    transition: var(--transition);
}

.search-bar input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 108, 247, 0.2);
}

.navbar-actions {
    display: flex;
    align-items: center;
}

.theme-toggle,
.menu-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-color);
    cursor: pointer;
    margin-left: 15px;
    transition: var(--transition);
}

.theme-toggle:hover,
.menu-toggle:hover {
    color: var(--primary-color);
}
.p{
    color: var(--text-color);
}

/* ana içerik aside */
.container {
    display: flex;
    gap: 2rem;
    
   
}

.content {
    flex: 1;
    overflow: hidden;

}
aside{
    display: none;
}
/* Arama sonuçları stilleri */
.search-results {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--border-color);
    
}
.search-results {
        position: fixed !important;
        top: 70px !important;
        left: 10px !important;
        right: 10px !important;
        max-height: 60vh !important;
        z-index: 1001 !important;
    }
    
    .search-bar {
        margin: 0 10px;
    }



.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.search-result-item:hover {
    background: rgba(74, 108, 247, 0.1) !important;
    transform: translateX(2px);
    transition: all 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none !important;
}

.result-category {
    border-bottom: 1px solid var(--border-color);
}



/* içerik bölümü */
/* Hoş geldiniz kartı */
.welcome-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.welcome-card h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.welcome-card h3 {
    color: var(--primary-color);
    margin-top: 1.5rem;
}

.welcome-card p {
    line-height: 1.6;
    margin: 0.5rem 0;
}

.welcome-card .links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
    justify-content: center;
}

.welcome-card .links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.welcome-card .btn {
    display: inline-block;
    margin-top: 1rem;
    background-color: #00704a;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.welcome-card .btn:hover {
    background-color: #005d3e;
}

/* Kartlar bölümü */
.cards-section {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 3rem;
    
}
.h2-bölüm{
    display: flex;
    align-items: center;
    justify-content: center;
}

.cards-section h2 {
    background-color: #00704a;
    color: #fff;
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    margin-bottom: 1rem;
    
    
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.card {
    flex: 1;
    min-width: 250px;
    min-height: 150px;
    border: 1px solid #00704a;
    border-radius: 0.8rem;
    padding: 1rem;
    box-shadow: var(--shadow);
}

.card .badge {
    display: inline-block;
    background-color: #00704a;
    color: #fff;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.card h3 {
    margin: 0.5rem 0;
}

.card p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0.8rem;
}

.card .date {
    font-size: 0.8rem;
    color: gray;
    text-align: right;
    display: block;
}

/* Burası categories kart bölümü başlangıçı */

.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(375px, 1fr));
  grid-gap: 40px;
  list-style: none;
  justify-content: center;
  justify-items: center;
}

.post-item {
  padding: 20px;
  box-shadow: var(--shadow);
  border-radius: 20px;
   min-width: 330px;
   max-width: 330px;

  
}

.post-body {
  display: flex;
  flex-direction: column;
}

.post-title {
  text-transform: capitalize;
  font-size: 20px;
  display: -webkit-box;

  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow: hidden;
}

.post-content {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 5px 0;
}
.post-id{
    color: #5f5f6185;
    font-size: 0.9rem;
}

.post-button {
  box-shadow: inset 0px 1px 0px 0px #fce2c1;
  background: linear-gradient(to bottom, #ffc477 5%, #fb9e25 100%);
  background-color: #ffc477;
  border-radius: 6px;
  border: 1px solid #eeb44f;
  display: inline-block;
  cursor: pointer;
  color: #ffffff;
  font-family: Arial;
  font-size: 15px;
  font-weight: bold;
  padding: 10px 24px;
  text-decoration: none;
  text-shadow: 0px 1px 0px #cc9f52;
  margin-top: 10px;
}

.post-button:hover {
  background: linear-gradient(to bottom, #fb9e25 5%, #ffc477 100%);
  background-color: #fb9e25;
}

.post-button:active {
  position: relative;
  top: 1px;
}
.post-a{
    color: var(--text-color);
    text-decoration: none;
}
/* Burası categories kart bölümü sonu */


/* Footer Stilleri */
footer {
    background-color: var(--bg-color);
    padding: 20px;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
   
}

footer p {
    color: var(--text-color);
    font-size: 0.9rem;
}
.footerA a{
    color: var(--text-color);
    font-size: 0.9rem;
}


/* Hamburger Menü */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background-color: var(--bg-color);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.close-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

.menu-items {
    list-style: none;
}

.menu-items li {
    margin-bottom: 15px;
}

.menu-items a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    display: block;
    padding: 10px 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.menu-items a:hover {
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}


/* 🍩 2. Tablet (min-width: 775px) */
@media (min-width: 775px) {
.search-results {
        position: fixed !important;
        top: 70px !important;
        left: 10px !important;
        right: 10px !important;
        max-height: 60vh !important;
        z-index: 1001 !important;
    }
    
    .search-bar {
        margin: 0 10px;
    }
    .card{
    min-width: 333px;
    min-height: 187px;
    position: relative;
}
.card .date{
    position: absolute;
    right: 10px;
    bottom: 10px;
}
.post-item{
    min-width: 340px;
    max-width: 340px;
}
  
}

/* 🖥️ 3. Web / Desktop (min-width: 1024px) */
@media (min-width: 1024px) {
  .menu-toggle{
    display: none;
  }
  .container{
    max-width: 1400px;
    margin: 2rem auto; /* Ortalar */
    width: 100%;
  }


aside {
    display: block;
    background-color: var(--bg-color);
    width: 260px;
    min-height: 100vh;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: var(--transition);
}

/* Liste düzeni */
aside ul {
    
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
}

/* Menü bağlantıları */
aside ul li a {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

/* Hover efekti */
aside ul li a:hover {
    background-color: rgba(74, 108, 247, 0.1);
    /* 🔧 Hover rengi — ana rengin yarı saydam tonu */
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Aktif (seçili) bağlantı */
aside ul li a.active {
    border-color: var(--primary-color);
    background-color: rgba(74, 108, 247, 0.15);
    /* 🔧 Aktif zemin tonu */
    color: var(--primary-color);
}
.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  list-style: none;
  margin-top: 3rem;
  justify-content: center; /* Grid'i yatayda ortalar */
  justify-items: center;   /* Kartları da ortalar */
}
.post-item{
      max-width: 340px;
      min-width: 340px;

}
/* arama kutusu*/
.search-bar {
    margin-left: auto; /* Bu satır sağa yaslar */
    margin-right: 10px;
}

/* Arama sonuçlarını sağa yasla */
.search-results {
    position: fixed !important;
    top: 70px !important;
    left: auto !important;
    right: 10px !important;
    max-height: 60vh !important;
    z-index: 1001 !important;
    width: 40% !important;
    max-width: 40% !important;
}
.card{
    min-width: 333px;
    min-height: 187px;
    position: relative;
}
.card .date{
    position: absolute;
    right: 10px;
    bottom: 10px;
}
}