/* static/css/style.css - GÜNCELLENMİŞ TAM HALİ */

body, html {
    margin: 0;
    padding: 0;
    background-color: #1a3a5a; /* Ana mavi renk */
    color: #f0f0f0; /* Genel metin rengi */
    font-family: 'Montserrat', sans-serif;
}

.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 20px 40px;
    box-sizing: border-box;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.top-logo, .lang-switch {
    font-size: 1em;
    font-weight: bold;
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
}

/* SADECE ANASAYFA'DA BÜYÜK LOGO */
.homepage .main-logo {
    text-align: center;
    margin-bottom: 60px;
}

.homepage .main-logo img {
    max-width: 450px;
    height: auto;
}

/* İÇ SAYFALARDAKİ KÜÇÜK LOGO */
.header-home-link {
    position: absolute;
    top: 20px;
    left: 30px;
    z-index: 9999;
}

.header-home-link img {
    height: 40px;
    width: auto;
    display: block;
}

.options-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-end;
    gap: 100px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.option-item {
    text-align: center;
    flex-shrink: 0;
    text-decoration: none;
    color: #f0f0f0;
}

.option-item img {
    max-width: 230px;
    height: auto;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.option-item:hover img {
    transform: scale(1.1);
}

.option-item h3 {
    font-size: 2.5em;
    margin: 0;
}

.option-item p {
    font-size: 0.9em;
    margin-top: 10px;
    color: #bdc3c7;
}

footer {
    display: flex;
    align-items: flex-start; /* DEĞİŞİKLİK: Bu satır elemanları üste hizalar */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 10px;
    padding-bottom: 50px;
    box-sizing: border-box;
}

.footer-text {
    max-width: 500px;
    font-size: 1em;
    text-align: left;
    color: #bdc3c7;
    line-height: 1.6;
    margin-left: 200px;
}

.about-link {
    position: relative;
    bottom: 18px;
    margin-left: auto;
    margin-right: 200px;
}

.about-link a {
    font-size: 1.6em;
    font-weight: bold;
    color: #f0f0f0;
    text-decoration: none;
}

.footer-social-icon {
    width: 32px;
    height: 32px;
}

.footer-social-icon:hover {
    opacity: 0.7; /* Üzerine gelince biraz soluklaşsın */
}

/* İçerik sayfaları */
.content-page {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* İçeriği dikeyde ortalar */
    align-items: center;     /* İçeriği yatayda ortalar */
    text-align: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.content-page h1 {
    font-size: 3em;
    margin-bottom: 30px;
}

/* Blog yazıları */
.blog-post {
    max-width: 700px;
    text-align: left;
    margin-bottom: 40px;
    border-bottom: 1px solid #335a81;
    padding-bottom: 20px;
}

.site-form {
    width: 100%;
    max-width: 500px; /* Formun maksimum genişliği */
    margin-top: 30px;
    /* Form, .content-page'in align-items:center kuralı sayesinde zaten ortalanacak */
}

.site-form p {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 15px;
}

.site-form label {
    margin-bottom: 5px;
}

.site-form input,
.site-form select {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    box-sizing: border-box;
}

.site-form button {
    margin-top: 20px;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    background-color: #f0f0f0;
    color: #1a3a5a;
    font-weight: bold;
    cursor: pointer;
    font-size: 1em;
}

.footer-line {
    width: 50%;
    max-width: 1200px;
    margin-left: 400px;
    margin-right: 400px;
    margin-top: 0;
    margin-bottom: 20px;
    border: none;
    height: 3px;
    background-color: #f0f0f0;
}

.social-icon {
    width: 28px;
    height: 28px;
    fill: #f0f0f0;
    transition: opacity 0.3s ease;
}

.social-icon:hover {
    opacity: 0.7;
}

.centered-image {
    max-width: 600px;
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 8px;
}

/* Hakkımızda gibi metin-odaklı sayfalar için paragraf stili */
.content-page {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 80vh; /* Yükseklik ayarı */
    text-align: center;
}

.form-wrapper {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    box-sizing: border-box;
}

/* İletişim bilgisi için olan paragrafın üstten daha fazla boşluğu olması için */
.content-page p:last-of-type {
    margin-top: 50px;
}

/* =================================== */
/* KART TASARIMI STİLLERİ              */
/* =================================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto; /* BU SATIR KARTLARI ORTALAR */
    margin-top: 50px;
}

.blog-card {
    text-decoration: none;
    color: #f0f0f0;
    background-color: #1f4a75; /* Kart arka plan rengi */
    border: 1px solid #4b6a88; /* İnce çerçeve */
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-image-container {
    width: 100%;
    height: 220px;
    background-color: #1a3a5a;
    display: flex;           /* İçeriği ortalamak için Flexbox'ı aktif eder */
    justify-content: center; /* Resmi yatayda ortalar */
    align-items: center;     /* Resmi dikeyde ortalar */
    overflow: hidden;        /* Çerçevenin dışına taşan kısımları gizler */
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Bu, resmi oranı koruyarak alanı kaplayacak şekilde sığdırır */
}

.card-content {
    padding: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-tags {
    margin-bottom: 15px;
}

.card-tags span {
    display: inline-block;
    background-color: #1a3a5a;
    border: 1px solid #4b6a88;
    padding: 4px 10px;
    border-radius: 15px; /* Yuvarlak etiketler */
    font-size: 0.8em;
    margin-right: 5px;
    margin-bottom: 5px;
}

.card-title {
    font-size: 1.4em;
    margin: 0 0 10px 0;
    flex-grow: 1; /* Başlığın kalan boşluğu doldurmasını sağlar */
}

.card-summary {
    font-size: 0.95em;
    color: #bdc3c7;
    line-height: 1.6;
}

.blog-detail-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 5px;
    margin-bottom: 40px;
}

.blog-post-content {
    max-width: 800px;
    text-align: left;
    line-height: 1.8;
    font-size: 1.1em;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 20px 0;
}

.detail-tags {
    text-align: center;
    margin-bottom: 30px;
}

.back-button {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #4b6a88;
    border-radius: 5px;
    text-decoration: none;
    color: #bdc3c7;
    transition: background-color 0.3s, color 0.3s;
    margin-bottom: 30px; /* Diğer içerikle arasına boşluk koyar */
    align-self: flex-start; /* ÖNEMLİ: Kendisini sola yaslar */
}

/* Arama Formu ve Etiket Linkleri */
.fikirlerle-header {
    width: 100%;
    max-width: 1200px;
    text-align: center;
}

.search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.search-form input {
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid #4b6a88;
    background-color: transparent;
    color: #f0f0f0;
    font-size: 1em;
    width: 280px;
}

.search-form button {
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    background-color: #f0f0f0;
    color: #1a3a5a;
    font-weight: bold;
    cursor: pointer;
}


.active-filter-container {
    display: inline-flex; /* Elemanları yan yana getirir */
    align-items: center;  /* Dikeyde ortalar */
    gap: 10px;            /* Aralarında boşluk bırakır */
    background-color: #1f4a75;
    border: 1px solid #4b6a88;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 1.2em;
}

.active-tag-label {
    font-weight: bold;
    color: #bdc3c7;
}

.clear-filter-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #4b6a88;
    color: #f0f0f0;
    border-radius: 50%; /* Yuvarlak yapar */
    text-decoration: none;
    font-size: 18px;
    line-height: 1;
    font-weight: bold;
    transition: background-color 0.2s;
}

.clear-filter-button:hover {
    background-color: #e74c3c; /* Üzerine gelince kırmızı olsun */
}


/* Katıl sayfası özel: Ortalanmış form görünümü */
.join-page {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 80vh;
    padding: 40px 20px;
    text-align: center;
}

.form-wrapper {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ABOUT ve Instagram ikonunu alt alta getirmek için */
.about-link a {
    display: block;      /* Her linkin kendi satırını kaplamasını sağlar */
    text-align: right;   /* Metni ve ikonu sağa yaslar */
    text-decoration: none; /* Alt çizgiyi kaldırır */
    color: #f0f0f0;     /* Renklerini belirler */
}

/* İkon ile ABOUT yazısı arasına boşluk koymak için */
.about-link a + a {
    margin-top: 15px; /* Sadece ikinci linke üstten boşluk uygular */
}

/* İkonun boyutunu ayarlamak için */
.footer-social-icon {
    width: 32px;
    height: 32px;
    fill: #f0f0f0;
}

/* Blog içeriğindeki linklerin rengini ayarlar */
.blog-post-content a {
    color: #87ceeb; /* Açık mavi bir ton, beyazdan daha iyi ayırt edilir */
    text-decoration: underline; /* Link olduğunu belli etmek için altını çizer */
}

.blog-post-content a:hover {
    color: #f0f0f0; /* Üzerine gelince beyaza dönsün */
}

/* =================================== */
/* BLOG DETAY SAYFASI ETİKET STİLİ     */
/* =================================== */

.detail-tags {
    text-align: center;
    margin-bottom: 40px; /* Başlıkla içerik arasına boşluk koyar */
    padding: 0;
}

.detail-tags .tag-link span {
    display: inline-block;
    background-color: #1f4a75;
    border: 1px solid #4b6a88;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    margin: 0 5px 10px 5px; /* Etiketler arası boşluk */
    color: #f0f0f0;
    text-decoration: none;
    transition: background-color 0.2s;
}

.detail-tags .tag-link:hover span {
    background-color: #4b6a88;
}

/* =================================== */
/* KATIL SAYFASI STİLLERİ              */
/* =================================== */

.join-container {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Kutuların aynı yükseklikte olmasını sağlar */
    gap: 40px;
    width: 100%;
    max-width: 1100px;
    margin-top: 30px;
    flex-wrap: wrap; /* Mobilde alt alta gelmesi için */
}

.join-option {
    flex: 1; /* Eşit genişlikte olmalarını sağlar */
    min-width: 320px; /* Minimum genişlik */
    padding: 30px;
    border: 1px solid #4b6a88;
    border-radius: 8px;
    background-color: #1f4a75;
    display: flex;
    flex-direction: column; /* İçeriği dikeyde düzenler */
}

.join-option h2 {
    font-size: 1.8em;
    margin-top: 0;
}

/* "Üye Ol" butonunun formun en altında kalmasını sağlar */
.join-option .site-form {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.join-option .site-form button {
    margin-top: auto; /* Butonu en alta iter */
}

/* Büyük "Üye Ol" butonu */
.button-primary {
    display: inline-block;
    margin-top: auto; /* Butonu en alta iter */
    padding: 15px 25px;
    background-color: #f0f0f0;
    color: #1a3a5a;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.2s ease;
}

.button-primary:hover {
    transform: scale(1.05);
}

/* =================================== */
/* RESPONSIVE DESIGN                   */
/* =================================== */

/* Tablet and smaller desktop screens */
@media (max-width: 1024px) {
  .page-container {
    padding: 15px 20px;
  }
  
  .options-grid {
    gap: 60px;
  }
  
  .option-item img {
    max-width: 200px;
  }
  
  .option-item h3 {
    font-size: 2.2em;
  }
  
  .footer-text {
    margin-left: 100px;
    font-size: 0.95em;
  }
  
  .about-link {
    margin-right: 100px;
  }
  
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 35px;
  }
}

/* Mobile landscape and tablet portrait */
@media (max-width: 768px) {
  .page-container {
    padding: 10px 15px;
  }
  
  .options-grid {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .homepage .main-logo img {
    max-width: 300px;
  }
  
  .option-item h3 {
    font-size: 2em;
  }
  
  .option-item img {
    max-width: 180px;
  }

  .footer-text {
    margin: 20px;
    text-align: center;
    font-size: 0.9em;
  }

  .about-link {
    margin: 20px auto;
    text-align: center;
  }

  .footer-line {
    margin: 30px auto;
    width: 80%;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
  }
  
  .search-form {
    flex-direction: column;
    gap: 15px;
  }
  
  .search-form input {
    width: 100%;
    max-width: 300px;
  }
  
  .join-container {
    flex-direction: column;
    gap: 30px;
  }
  
  .content-page h1 {
    font-size: 2.5em;
  }
  
  .blog-post-content {
    font-size: 1em;
  }
}

/* Mobile portrait */
@media (max-width: 480px) {
  .homepage .main-logo img {
    max-width: 250px;
  }
  
  .option-item h3 {
    font-size: 1.8em;
  }
  
  .option-item img {
    max-width: 150px;
  }
  
  .content-page h1 {
    font-size: 2em;
  }
  
  .page-container {
    padding: 10px;
  }
  
  .card-content {
    padding: 15px;
  }
  
  .join-option {
    padding: 20px;
    min-width: 280px;
  }
  
  .site-form input,
  .site-form select {
    padding: 8px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .header-home-link {
    top: 15px;
    left: 15px;
  }
  
  .header-home-link img {
    height: 35px;
  }
}