:root{
  --primary:#621EEE;
  --primary-600:#5a19e0;
  --primary-700:#4c16bf;
  --bg:#fafafe;
  --card:#fff;
  --text:#0f172a;
  --brand:#621EEE;
  --muted:#475569;
  --border:#e5e7eb;
}

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap');
* {
    box-sizing: border-box;
}


@font-face {
    font-family: 'fontum'; /* Font adı */
    src: url('fontum.otf') format('opentype'); /* Modern tarayıcılar için */
    font-weight: normal;
    font-style: normal;
}

body{
  margin:0;
  
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
}

.container {
    margin-top: 64px;
    padding: 20px;
}













/* Mobil uyum */

@media screen and (max-width: 768px) {
    .tip-card {
        flex-direction: column; /* Mobilde görsel ve metin dikey sıralanır */
    }

    .tips-list {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

     h1 {
        display: none;
    }

    .tip-card {
        display: flex;
        align-items: center;
        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        overflow: hidden; /* Görsel taşmasını engellemek için */
    }

    .image-container {
        width: 40%; /* Görselin genişliği kartın %40’ı olacak */
        aspect-ratio: 4 / 3; /* 4:3 oranını sağlamak için */
        overflow: hidden; /* Konteynerin dışına taşmayı engelle */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .image-container img {
        width: 100%; /* Görsel genişliğini konteynerle eşleştir */
        height: 100%; /* Görsel yüksekliğini konteynerle eşleştir */
        object-fit: cover; /* Görseli kırparak konteynere sığdır */
        object-position: center; /* Görseli merkezde konumlandır */
    }


    .tip-container {
        width: 100%; /* Metin kısmı kalan alanı kaplar */
        display: flex; /* Flexbox kullanıyorsanız */
        flex-direction: column;
        align-items: flex-end; /* Yatayda sağa hizala */
        padding: 0px;
        margin: 0px;
    }

    .text-container {
        width: 100%; /* Metin kısmı kalan alanı kaplar */
        padding: 8px;
    }

    .text-container h2 {
        font-size: 16px;
        color: #333;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .text-container p {
        font-size: 14px;
        color: #555;
        margin-bottom: 15px;
    }

    .tip-btn {
        display: flex;
        height: 40px;
        padding: 8px 16px;
        margin-bottom: 8px;
        margin-right: 8px               ;
        width: 55%;
        background-color: #6200EE; /* Mavi arka plan */
        color: white; /* Yazı rengi */
        text-decoration: none; /* Alt çizgiyi kaldır */
        border-radius: 5px; /* Kenarları yuvarlat */
        font-size: 14px;
        text-align: center;
        align-items: center;
        justify-content: center;
        transition: background-color 0.3s ease; /* Hover geçiş efekti */
    }

    .tip-btn:hover {
        background-color: #0056b3; /* Hover efekti için koyu mavi */
    }

    .image-container {
        flex: none;
        width: 100%; /* Görsel tam genişlikte olur */
    }
}






#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #6200EE;
    color: #fff;
    padding: 20px;
    text-align: center;
    z-index: 1000;
    display: none;
    flex-direction: column;
}

#cookie-banner p{
    color: #fff;
    text-align: left;

}

#cookie-banner .div-button{
    display: flex;
    flex-direction: column;

}
#cookie-banner .cookieButton{
    background: #FFFFFF;
    border: none;
    color: #000;
    padding: 10px 20px;
    margin-top: 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
    text-align: center;
}
#cookie-banner .cookieButton2{
    background: #e8e8e8;
    border: none;
    color: #000;
    padding: 10px 20px;
    margin-top: 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
    text-align: center;
}

#cookie-settings-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 10px 15px; /* Yan ve üst boşluklar optimize edildi */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 95%; /* Mobil görünümde daha fazla genişlik */
    max-width: 600px; /* Genişlik artırıldı */
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    font-family: 'Poppins', sans-serif;
}

#cookie-settings-panel h2 {
    font-size: 18px;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
}

#cookie-settings-panel p {
    font-size: 13px; /* Daha kompakt bir metin görünümü */
    color: #555;
    line-height: 1.6;
    margin: 5px 0; /* Daha dar boşluklar */
    padding: 0;
}

#cookie-settings-panel label {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

#cookie-settings-panel input[type="checkbox"] {
    margin-right: 10px;
}

#cookie-settings-panel a {
    color: #6200EE;
    text-decoration: underline;
}

#cookie-settings-panel button {
    background: #6200EE;
    border: none;
    color: #fff;
    padding: 10px 20px;
    margin-top: 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
    text-align: center;
}

#cookie-settings-panel button:hover {
    background: #5e00e0;
}

#cookie-settings-panel button:nth-child(2) {
    background: #ccc;
    color: #333;
}

#cookie-settings-panel button:nth-child(2):hover {
    background: #bbb;
}

/* Switch Tasarımı */
.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #6200EE; /* Ana renginiz */
}

input:focus + .slider {
    box-shadow: 0 0 1px #6200EE;
}

input:checked + .slider:before {
    transform: translateX(18px);
}

.switch-label {
    font-size: 14px;
    color: #333;
    margin-left: 10px;
    vertical-align: middle;
}

.share-button {
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.share-button img {
    width: 20px;
    height: 20px;
}

.share-button:hover img {
    filter: brightness(1.2); /* Hover efekti için parlaklık artırma */
}



/* Masaüstü görünüm */
@media screen and (min-width: 1024px) {
    #cookie-settings-panel {
        max-height: 80vh; /* Panelin maksimum yüksekliği ekranın %80’i kadar */
        overflow-y: auto; /* Dikey kaydırma ekleyin */
        width: 60%;

    }
    h1 {
        font-family: 'fontum', sans-serif; /* İlk tercih özel font, ikinci tercih fallback */
        color: white;
        width: 70%;
        text-align: right;
        margin-top: 0px;
        right: 0px;
        margin-right: 24px;
        font-size: 28px;
        margin-bottom: 5px;
    }

    .tip-card {
        display: flex;
        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 10px;
        margin: 0px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        overflow: hidden; /* Görsel taşmasını engellemek için */
    }

    .image-container {
        width: 40%; /* Görselin genişliği kartın %40’ı olacak */
        aspect-ratio: 4 / 3; /* 4:3 oranını sağlamak için */
        overflow: hidden; /* Konteynerin dışına taşmayı engelle */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .image-container img {
        width: 100%; /* Görsel genişliğini konteynerle eşleştir */
        height: 100%; /* Görsel yüksekliğini konteynerle eşleştir */
        object-fit: cover; /* Görseli kırparak konteynere sığdır */
        object-position: center; /* Görseli merkezde konumlandır */
    }


    .tip-container {
        height: 100%;
        width: 60%; /* Metin kısmı kalan alanı kaplar */
        display: flex; /* Flexbox kullanıyorsanız */
        flex-direction: column;
        align-items: flex-end; /* Yatayda sağa hizala */
        padding: 0px;
        margin: 0px;
    }

    .text-container {
        height: calc(100% - 32px);
        width: 100%;
        display: flex;
        flex-direction: column;
        padding: 3px 6px;
        margin: 0px;
    }


    .text-container h2 {
        font-size: 14px;
        color: #333;
        font-weight: bold;
        margin-top: 0px;
        margin-bottom: 4px;
    }

    .text-container p {
        font-size: 12px;
        color: #555;
        margin-top: 4px;
        margin-bottom: 4px;
    }

    .tip-btn {
        display: flex;
        height: 32px;
        padding: 0px 10px;
        margin-bottom: 8px;
        margin-right: 8px               ;
        width: 55%;
        background-color: #6200EE; /* Mavi arka plan */
        color: white; /* Yazı rengi */
        text-decoration: none; /* Alt çizgiyi kaldır */
        border-radius: 5px; /* Kenarları yuvarlat */
        font-size: 12px;
        text-align: center;
        align-items: center;
        justify-content: center;
        transition: background-color 0.3s ease; /* Hover geçiş efekti */
    }

    .tip-btn:hover {
        background-color: #0056b3; /* Hover efekti için koyu mavi */
    }


    .tips-list {
        margin: 0px auto;
        display: grid;
        width: 90%;
        gap: 30px;
        grid-template-columns: repeat(2, 1fr); /* Bir satırda maksimum 3 sütun */
        
    }

    

    #cookie-banner {
        width: 100%;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #6200EE;
        color: #fff;
        padding: 20px;
        text-align: center;
        z-index: 1000;
        display: none;
    }
    #cookie-banner p{
        width: 100%;
        color: #fff;
        left: 24px;
        text-align: left;

    }

    #cookie-banner .div-button{
        width: 520px;
        right: 24px;
        display: flex;
        flex-direction: row;

    }
    #cookie-banner .cookieButton{
        background: #FFFFFF;
        border: none;
        color: #000;
        padding: 10px 20px;
        margin-top: 20px;
        margin-right: 20px;
        font-size: 16px;
        margin-left: auto;
        cursor: pointer;
        border-radius: 5px;
        width: 240px;
        text-align: center;
    }
    #cookie-banner .cookieButton2{
        background: #e8e8e8;
        border: none;
        color: #000;
        padding: 10px 20px;
        margin-top: 20px;
        margin-right: 20px;
        font-size: 16px;
        cursor: pointer;
        border-radius: 5px;
        width: 240px;
        text-align: center;
    }


    .mobil-nav-buttons {
        display: none;
    }
}



.policy-links {
    text-align: center; /* Yatayda ortalar */
    padding: 8px;
    border-top: 1px solid #ddd;
    font-size: 9px; /* Yazı tipini küçültür */
    color: #777; /* Gri renk */
    display: flex; /* Flexbox düzeni */
    flex-wrap: wrap; /* Satır taşması durumunda alt satıra geçer */
    justify-content: center; /* Öğeleri yatayda ortalar */
    gap: 10px; /* Öğeler arası boşluk */
    margin: 0px;
}

.policy-links a {
    
    flex: 1 0 calc(33% - 25px); /* En fazla 3 item yan yana */
    box-sizing: border-box; /* Padding ve border'ı dahil eder */
    text-align: center; /* Yazıyı ortalar */
    color: #777; /* Gri renk */
    text-decoration: none; /* Varsayılan olarak altını çizmez */
}

.policy-links a:hover {
    text-decoration: underline; /* Üzerine gelindiğinde altını çizer */
}






.navigation a.nav-buttons,
.navigation a.nav-buttons-home {
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
  /* mevcut .nav-buttons buton stillerini buraya taşıyabilirsin */
}
.navigation a[aria-current="page"] {
  background: rgba(255,255,255,0.15); /* yarı saydam beyaz arka plan */
  color: #fff;                    /* biraz kalın yazı */
  border-radius: 8px;
}

.navigation a[aria-current="page"] img.icon {
  filter: brightness(1.5); /* ikon biraz daha parlak */
}


.navigation{
  position:fixed; top:0; left:0; width:100%; height:56px;
  background:#6200EE; padding:10px 4px; display:flex; align-items:center;
  overflow:hidden; z-index:9998; gap:4px;
}
.navigation span{font-size:10px; color:#fff}
#page-logo{margin:0 8px; width:48px; height:48px; padding:10px; cursor:pointer}
.nav-buttons,.nav-buttons-home{
  height:56px; min-width:100px;
  background:#6200EE; border:none; color:#fff; font-size:12px; cursor:pointer;
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
  transition:background-color .3s ease;
}
.nav-buttons:hover,.nav-buttons-home:hover{background:#eead0e}
.icon{width:20px; height:20px}
#page-header{color:#fff; margin-left:auto; margin-right:24px; font-size:28px}

#page-logo{
  margin:0 8px; width:48px; height:48px; padding:10px; cursor:pointer;
}



@media (max-width:768px){
  .navigation{
    height:56px;
    padding:0 6px;
    gap:0;
    overflow-x:auto;               /* yatay kaydırma */
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x mandatory;  /* snap etkisi */
  }

  /* Linkler tek satırda, kaydırılabilir olsun */
  .navigation a.nav-buttons,
  .navigation a.nav-buttons-home{
    display:inline-flex;           /* <a> için doğru kullanım */
    align-items:center;
    justify-content:center;
    flex:0 0 auto;                 /* sıkışma yok, yan yana ak */
    min-width:auto;                /* min-width=100px sınırlamasını kaldır */
    padding:0 10px;
    height:56px;
    text-decoration:none;
    background:transparent;        /* arkaplan tek renk olsun */
    border-radius:8px;
    scroll-snap-align:center;
  }

  /* Metinleri gizle → sadece ikon (yer kazancı) */
  .navigation a.nav-buttons span,
  .navigation a.nav-buttons-home span{
    display:none;
  }

  /* İkonları bir tık büyüt */
  .navigation .icon{
    width:22px; height:22px;
  }

  /* Logo daha kompakt */
  #page-logo{
    height:32px; width:auto; padding:0; margin:0 6px 0 0; object-fit:contain;
  }

  /* Aktif sayfa vurgusu */
  .navigation a[aria-current="page"]{
    background:rgba(255,255,255,0.15);
  }

  /* iOS scroll bar gizle */
  .navigation::-webkit-scrollbar{ display:none; }
}


