@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
:root {
    --background-color: #1e252b;
    --text-color: #eaeaea;
    --border-color: #181818; /* Sınır rengi */
    --button-hover-bg-color: #252222; /* Buton hover arka plan */
    --secondary-bg-color: #0e0e0e; /* İkincil arka plan */
    --secondary-text-color: #fff; /* İkincil metin */
    --box-shadow-border: rgba(1, 1, 1, 0.4) 0px 7px 29px 0px;
    --follow-button-background: #1f2831;
    --submit-button-background: #1f2831;
    --profile-border-color: #111;
    --post-button-background:#202020;
    --navbar-background: #1d1d1c;
    --post-color: #000;
}
.light-theme {
    --background-color: #f1f2f6;
    --text-color: #111;
    --border-color: #ddd; /* Sınır rengi */
    --button-hover-bg-color: #ddd; /* Buton hover arka plan */
    --secondary-bg-color: #ececec; /* İkincil arka plan */
    --secondary-text-color: #000; /* İkincil metin */
    --box-shadow-border: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    --follow-button-background: #e7f3ff;
    --submit-button-background: #e7f3ff;
    --profile-border-color: #fff;
    --post-button-background:#ececec;
    --navbar-background: #bbbbbb;
    --post-color: #fff;
}

.dark-theme {
    --background-color: #1e252b;
    --text-color: #eaeaea;
    --border-color: #181818; /* Sınır rengi */
    --button-hover-bg-color: #252222; /* Buton hover arka plan */
    --secondary-bg-color: #0e0e0e; /* İkincil arka plan */
    --secondary-text-color: #fff; /* İkincil metin */
    --box-shadow-border: rgba(1, 1, 1, 0.4) 0px 7px 29px 0px;
    --follow-button-background: #1f2831;
    --submit-button-background: #1f2831;
    --profile-border-color: #111;
    --post-button-background:#202020;
    --navbar-background: #1d1d1c;
    --post-color: #000;
}

* {
    margin: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
    color: var(--text-color);
}

body {
    background: var(--background-color);
    color: var(--text-color);
}

/* Izgara desenini oluşturmak için bir div veya body öğesine uygulayabileceğiniz stil */
.grid-background {
    /* Ana arka plan rengi siyah */
    background-color: var(--background-color);
    
    /* Izgara deseni oluşturmak için 'repeating-linear-gradient' kullanıyoruz */
    /* Bu, yatay ve dikey çizgileri tekrar tekrar çizer */
    background-image: 
        /* Yatay çizgiler */
        repeating-linear-gradient(
            #1e1e1e 0, /* Çizgi rengi: Koyu gri */
            #1e1e1e 1px, /* Çizgi kalınlığı: 1 piksel */
            transparent 1px, /* Şeffaf boşluk başlıyor */
            transparent 32px /* Şeffaf boşluk boyutu: 32 piksel (bir kare boyutu) */
        ),
        /* Dikey çizgiler */
        repeating-linear-gradient(
            90deg, /* Dikey olması için 90 derece döndürüyoruz */
            #1e1e1e 0, /* Çizgi rengi: Koyu gri */
            #1e1e1e 1px, /* Çizgi kalınlığı: 1 piksel */
            transparent 1px, /* Şeffaf boşluk başlıyor */
            transparent 32px /* Şeffaf boşluk boyutu: 32 piksel */
        );
    
    /* Sayfanın tamamını kaplaması için */
    width: 100%;
    height: 100vh;
}


.hydrated {
    visibility: visible !important;
}

.navbar-dock{
    display: none;
}

.sidebar {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 70px;
    height: auto;
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    z-index: 1000;
    border-right: var(--border-color);
}

.sidebar a {
    margin: 20px 0;
    color: var(--text-color);
    font-size: 24px;
    text-decoration: none;
}

.sidebar a:hover {
    color: #00bfff;
}


.login-btn {
    font-size: 16px;
    color: white;
    text-align: center;
}

.profile-btn {
    cursor: pointer;
}

.profile {
    display: flex;
    width: 100%;
    max-width: 1200px; /* Masaüstü için maksimum genişlik belirlenmesi */
    height: auto; /* Yüksekliği içerik boyutuna göre ayarlayın */
    padding: 10px;
    column-gap: 30px;
    align-items: center;
    font-weight: 300;
    flex-wrap: wrap; /* Mobil uyumluluk için satır sarmalamayı etkinleştir */
}

.profile-name{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    row-gap: 5px;
    font-weight: 400;
}

.profile-name-width{
    display: flex;
    column-gap:10px;
    justify-content:space-between;
    width: 580px;
    align-items: center;
}

.profile-name span{
    font-size: 25px;
}

.icons{
    font-size: 30px;
}


.content {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
    margin-top: 15px;
}

.emit {
    display: flex;
    flex-direction: column;
    padding: 10px;
    font-size: 14px;
    font-weight: 400;
    max-width: 100%; /* Maksimum genişlik belirler */
    width: 100%; /* Varsayılan genişlik */
    box-sizing: border-box; /* Padding genişliğe dahil edilir */
    margin-top: 5px;
    border-bottom: 1px solid var(--border-color);
}

.emit-profile{
    display: flex;
    align-items: center;
    column-gap: 10px;
}
.emit-name{
    width: 100%;
    display: flex;
    column-gap: 5px;
    align-items: center;
    justify-content: space-between;
}
.emit-img img{
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.emit-name a{
    text-decoration: none;
    font-weight: 600;
    color: var(--text-color);
}
.emit-content{
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}
.emit-image img{
    max-width: 100%; 
    max-height: 400px;
    border-radius: 4px;
}

.date{
    color: #929292;
    font-size: 12px;
}
.text{
    color: #929292;
    text-align: center;
    padding: 10px;
    text-decoration: none;
}

.color-929292{
    color: #929292;
}

.input{
    padding: 10px;
    border: none;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--background-color);
}
.input-2{
    padding:10px;
    border: 1px solid var(--border-color);
    border-radius:20px;
    width: 100%;
    background-color: var(--background-color);

}
.input-border-none{
    border: none;
    width: 100%;
}

.submit{
    padding: 10px 20px;
    border: none;
    background: #006BFF;
    color: #fff;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.submit-follow{
    background: var(--follow-button-background);
    color: #006BFF;
    border-radius: 20px;
    cursor: pointer;
    padding: 5px 20px;
    border: none;
}
.submit-settings{
    padding: 5px 20px;
    background: var(--follow-button-background);
    cursor: pointer;
    border-radius: 20px;
    color: #006BFF;;
}
.submit:hover, .submit-follow:hover, .submit-settings:hover{
    background-color: #0056cc;
    color: #fff;
}
.button{
    padding: 10px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    color: #000;
    font-weight: bold;
}
.form{
    display: flex;
    align-items: center;
    column-gap: 20px;
}

.login, .register{
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;

}
.login-content, .register-content{
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    background: var(--background-color);
    z-index: 1;
    padding: 10px;
}

.login-logo{
    display: flex;
    justify-content: center;
    align-items: center;
}

input:focus, textarea:focus {
    outline: none;
    box-shadow: none;
}
.textarea{
    resize: none;
    height: 150px;
    border: 1px solid var(--border-color);
    border-radius:20px;
    padding: 10px;
    font-size: 14px;
    background: var(--background-color);
}


@media only screen and (max-width: 850px) {
    .profile {
        flex-direction: column; /* Elemanları dikey hizalayarak daha iyi görünüm */
    }
    .content {
        width: 70vw;
        max-width: 70vw;
        margin-top: 50px;
        margin-bottom: 50px;
    }
    .login-logo{
        display: none;
    }
}

@media only screen and (max-width: 480px) {

    .profile {
        width: 100vw;
        flex-direction: column;
        align-items: center; /* İçeriği ortala */
        font-size: 13px;
    }
    .profile-name-width{
        width: 93vw;
        align-items: center;
    }
    .content {
        width: 100vw;
        max-width: 100vw;
        margin-top: 50px;
        margin-bottom: 50px;
    }

    .emit {
        font-size: 13px;
        line-height: 1.4; /* Daha iyi okunabilirlik */
        max-width: 480px; /* Mobil genişlikte tam uyum */
    }
    .emit-image img{
        max-width: 100%; 
        height: auto;
        border-radius: 4px;
    }
    .emit-content p a{
        word-wrap: break-word; /* Uzun linkleri kırar */
        word-break: break-all;
    }

    .tabs {
        display: flex;
        margin-bottom: 10px;
        width: 100%;
    }
    .tab-button{
        font-size: 14px;
    }
    .logo-banner{
        width: 100vw;
        max-width: 100vw;
    }
    .post-image{
        max-width: 210px;
        max-height: 85px;
        object-fit:cover; 
        object-position: center;
        border-radius:4px;
    }
    .login-logo{
        display: none;
    }

    .sidebar{
        display: none;
    }

    .navbar-dock {
        position: fixed;
        bottom: 0px;
        background: rgba(49, 53, 51, 0.7); /* Hafif saydam yeşilimsi ton */
        display: flex;
        justify-content: center;
        align-items: center;
        column-gap: 40px;
        width: 100%;
        max-width: 460px;
        left: 50%;
        transform: translateX(-50%);
        box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(10px);
        z-index: 3;
    }
    
    .navbar-dock a {
        width: 50px;
        height: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: all 0.3s ease-out;
    }
    
    /* Özel ikon arka plan renkleri */
    .navbar-dock a:nth-child(1) { background: none; }
    .navbar-dock a:nth-child(2) { background: none; }
    .navbar-dock a:nth-child(3) { background: none; }
    .navbar-dock a:nth-child(4) { background: none; }
    .navbar-dock a:nth-child(5) { background: none; }
    
    .navbar-dock ion-icon {
        font-size: 30px;
        color: white;
        background: rgba(0, 0, 0, 0);
    }
    
    .profile-menu {
        display: none; /* Başlangıçta gizli */
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        background-color: var(--secondary-bg-color);
        padding: 10px;
        padding-bottom: 35px;
        width: 460px;
        opacity: 0; /* Başlangıçta görünmez */
        transition: opacity 0.5s ease-out, bottom 0.5s ease-out;
        z-index: 2;
        border-radius: 30px 30px 0 0;
    }
    
    .profile-menu ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
        background-color: var(--secondary-bg-color);
    }
    
    .profile-menu ul li a {
        color: var(--secondary-text-color);
    }
    
    .profile-menu li a {
        text-decoration: none;
        font-size: 16px;
        display: block;
        padding: 10px;
        background-color: var(--secondary-bg-color);
    }
    
    
    .profile-menu li a:hover {
        font-weight: bold;
    }
    .search-container{
        margin: 60px auto 0;
    }
    
}

.container {
    margin-top: 10px;
    text-align: center;
  }
  
  .form-group {
    margin-bottom: 15px;
  }
  .form-label{
    border-bottom: 1px solid #ececec;
    padding: 5px;
    cursor: pointer;
    font-weight: bold;
  }
  
  input[type="file"] {
    display: none;
  }
  
  .preview img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ddd;
    margin-top: 15px;
  }
  



.alert {
    padding: 15px;
    margin-bottom: 20px;
    position: relative;
    font-size: 16px;
    text-align: center;
}

.alert.success {
    background-color: #F4F6FF;
    color: #111;
    border: 1px solid #F4F6FF;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


h1{
    padding-left: 10px;
}

.background-none{
    background: none;
}

.info-boxs{
    display: flex;
    column-gap: 10px;
}
.info-box{
    display: flex;
    flex-direction: column;
    color: #fff !important;
    padding: 10px;
    border: 1px solid #ececec;
    border-radius: 4px;
    width: 100px;
    height: 100px;
    text-align: center;
    row-gap: 10px;
    align-items: center;
}

.settings-display{
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    text-align: center;
    z-index: 1;
    padding: 10px;
    border-radius: 4px;
}

.btn-view {
    text-decoration: none;
}

.emit-button{
    align-items: center;
}

.post-button{
    margin-top: 2px;
    display: flex;
    gap:10px;
}
.post-button a{
    font-size: 18px;
    text-decoration: none;
    color: #c9c9c9;
    align-items: center;
}
.post-button a:hover{
    color: var(--text-color);
}
.post-button-background:hover{
    padding:5px;
    background: var(--post-button-background);
    border-radius: 10px;
}

.replies {
    border-left: 2px solid #ddd;
    padding-left: 10px;
}

.reply {
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--text-color);
}

.tabs {
    display: flex;
}

.tab-button {
    flex: 1;
    padding: 10px 0;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    color: #929292;
}

.tab-button.active {
    color: var(--text-color);
}

/* Tab içeriği */
.tab-content {
    display: none;
}

.tab-content.hidden {
    display: none;
}

.tab-content:not(.hidden) {
    display: block;
}

#follow-btn {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#follow-btn:hover {
    background-color: #0056b3;
}

/* profile-reply sayfası içindir, aşağısı */
.reply-to {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #252222;
}

.reply-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.reply-profile img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.reply-profile span {
    font-weight: bold;
    color: var(--text-color);
}
/* profile-reply sayfası içindir, yukarısı */

.logo-banner{
    background: var(--background-color);
    position: fixed;
    display: flex;
    width: 100%;
    z-index: 2;
    top: 3%;
    left: 50%;
    height: 60px;
    transform: translate(-50%, -50%);
}

.logo-banner-content{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

/* Toast bildirimi stili */
.toast {
    visibility: hidden;
    min-width: 200px;
    background-color: #099fd1;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 10px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 80px;
    transform: translateX(-50%);
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.5s, visibility 0.5s;
}

/* Toast görünür olduğunda */
.toast.show {
    visibility: visible;
    opacity: 1;
}


.loading-spinner {
    text-align: center;
    margin: 20px 0;
}
.loading-spinner img {
    width: 40px;
    height: 40px;
}

ion-icon {
    transition: color 0.3s ease;
}

ion-icon[name="heart"] {
    color: red; /* Varsayılan olarak beğenilmişse kırmızı olur */
}

ion-icon[name="heart-outline"] {
    color: gray; /* Varsayılan olarak outline gri */
}

.search-container {
    max-width: 600px;
    margin: 20px auto 0;
    padding: 10px;
}
.search-container h2 {
    font-size: 30px;
    margin-bottom: 20px;
    text-align: center;
}
.search-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding:3px;
}
.search-form input[type="text"] {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 20px;
    outline: none;
    background: var(--background-color);
}
.search-form button {
    padding: 10px 20px;
    border: none;
    background-color: var(--submit-button-background);
    color: #006BFF;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.search-form button:hover {
    background-color: #0056cc;
    color: #fff;
}
.search-results {
    margin-top: 10px;
}
.search-results ul {
    list-style: none;
    padding: 0;
}
.search-results li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}
.search-results a {
    text-decoration: none;
    font-weight: bold;
}
.search-results a:hover {
    text-decoration: underline;
}

.profile-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.post-image{
    max-width: 265px; 
    height: 300px; 
    object-fit:cover; 
    object-position: center;
    border-radius:4px;
}

/* scroll özelliği*/

@layer utilities {
    .scrollbar-thin {
      scrollbar-width: thin; /* Firefox */
    }
    .scrollbar-blue {
      scrollbar-color: #3b82f6 transparent; /* Firefox */
    }
  
    /* WebKit (Chrome, Edge, Safari) */
    .scrollbar-blue::-webkit-scrollbar {
      width: 10px;
    }
    .scrollbar-blue::-webkit-scrollbar-track {
      background: transparent; /* beyazlık yok */
      border-radius: 10px;
    }
    .scrollbar-blue::-webkit-scrollbar-thumb {
      background: #3b82f6;
      border-radius: 10px;
    }
    .scrollbar-blue::-webkit-scrollbar-thumb:hover {
      background: #2563eb;
    }
  }
  

  
  /* scroll özelliği bitiş*/