﻿/* Genel Ayarlar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Genel Sayfa Düzeni */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f4f8;
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #0044cc;
}

p {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
}

.content-container {
    margin-top: 40px;
    text-align: center;
}

h4 {
    font-size: 1.5rem;
    color: #0044cc;
    margin-bottom: 20px;
}

/* İlanlar Konteyneri */
.ilanlar-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 kolonlu grid düzeni */
    gap: 20px;
    padding: 0;
    margin-top: 20px;
}

.ilan-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .ilan-card:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    }

.ilan-image {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

    .ilan-image img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

.no-image {
    width: 100%;
    height: 200px;
    background-color: #f0f4f8;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .no-image i {
        color: #aaa;
    }

.ilan-price {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 68, 204, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1.1rem;
}

.ilan-info {
    padding: 15px;
}

    .ilan-info h4 {
        font-size: 1rem;
        color: #333;
        margin: 0;
    }

    .ilan-info p {
        font-size: 1rem;
        color: #555;
        margin: 5px 0;
    }

        .ilan-info p.ilan-detail {
            display: inline-block;
            margin-right: 15px;
        }

            .ilan-info p.ilan-detail:last-of-type {
                margin-right: 0;
            }

            .ilan-info p.ilan-detail:not(:last-of-type):not(:empty)::after {
                content: " / ";
                margin-left: 5px;
            }



.text-muted {
    color: #888;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination-btn {
    background-color: #0044cc;
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

    .pagination-btn:hover {
        background-color: #0033aa;
    }

    .pagination-btn:disabled {
        background-color: #cccccc;
        cursor: not-allowed;
    }

    .pagination-btn.active {
        background-color: #0033aa;
    }

    .go-home-link {
    color: #007bff; /* Mavi renk */
    text-decoration: none; /* Alt çizgiyi kaldırır */
}

.go-home-link:hover {
    text-decoration: underline; /* Hover durumunda alt çizgi ekler */
}




/* Navbar */
.navbaar {
    background: linear-gradient(90deg, #009cfb, #0056b3);
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbaar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

    .logo img {
        width: 50px;
        height: auto;
        margin-right: 10px;
    }

    .logo span {
        color: white;
        font-size: 22px;
        font-weight: bold;
        letter-spacing: 1px;
        display: none;
    }

.haamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.line {
    height: 4px;
    width: 25px;
    background-color: white;
    margin: 3px 0;
}

.naav-linkss {
    margin-top: 0px;
    list-style: none;
    display: flex;
    gap: 30px;
    justify-content: center;
}

    .naav-linkss a {
        color: white;
        text-decoration: none;
        font-size: 18px;
        font-weight: bold;
        position: relative;
        padding: 5px 0;
        transition: color 0.3s, transform 0.3s;
    }

        .naav-linkss a:hover {
            color: #5fff00;
            transform: scale(1.1);
        }

/* Dropdown container */
.custom-dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown content */
.custom-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border-radius: 8px; /* Kenarları yuvarlat */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* Daha yumuşak gölge */
    z-index: 1000;
    min-width: 180px; /* Biraz daha geniş */
    opacity: 0;
    transform: translateY(20px); /* Yumuşak animasyon için */
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none; /* Fare olaylarını devre dışı bırak */
}

    /* Dropdown list items */
    .custom-dropdown-content li {
        padding: 10px 15px;
        transition: background-color 0.3s, color 0.3s;
    }

        /* Links inside dropdown */
        .custom-dropdown-content li a {
            color: #009cfb;
            font-weight: bold;
            text-decoration: none;
            font-size: 16px;
            display: block;
        }

            /* Link hover effect */
            .custom-dropdown-content li a:hover {
                background-color: rgba(0, 156, 251, 0.1); /* Hafif mavi arka plan */
                color: #0056b3; /* Yazı rengi koyulaşsın */
            }

/* Dropdown hover effect */
.custom-dropdown:hover .custom-dropdown-content {
    opacity: 1;
    transform: translateY(0); /* Yumuşak şekilde yukarı gelsin */
    pointer-events: auto; /* Fare olaylarını geri aç */
}


.auth-buttoons {
    display: flex;
    gap: 15px;
    align-items: center; /* Öğeleri hizalar */
}

    .auth-buttoons a {
        color: white;
        text-decoration: none;
        padding: 8px 15px;
        border-radius: 4px;
        transition: background-color 0.3s, transform 0.3s;
    }

    .auth-buttoons .login {
        border: 1px solid #0197f6;
    }

    .auth-buttoons .post-ad {
        background-color: white;
        color: #009cfb;
        font-weight: bold;
        padding: 8px 15px;
        border-radius: 4px;
    }

    .auth-buttoons a:hover {
        background-color: rgba(255, 255, 255, 0.8);
        transform: scale(1.05);
    }

/* Username Tasarımı */
.user-name {
    background-color: transparent; /* Şeffaf arka plan */
    color: white; /* Username yazı rengi */
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold; /* Kalın yazı */
    text-align: center;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
    border: 2px solid white; /* Beyaz çerçeve */
}

    .user-name:hover {
        background-color: white; /* Üzerine gelince arka plan beyaz olsun */
        color: #009cfb; /* Yazı rengi değişsin */
        transform: scale(1.05);
    }

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.line {
    height: 4px;
    width: 25px;
    background-color: white;
    margin: 3px 0;
}


/* Mobile View */
@media only screen and (max-width: 768px) {
    .navbaar {
        padding: 10px 15px; /* Daha küçük padding */
        background-color: #0277bd; /* Navbar arka planını mavi yapalım */
    }

    .navbaar-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap; /* Satırda sıkışmasın */
    }

    .logo {
        margin-right: 30px;
        color: white; /* Logo rengi beyaz */
    }

    /* Hamburger menü ikonu */
    .hamburger {
        display: flex;
        flex-direction: column;
        position: relative;
        left: 252px;
    }

    /* Hamburger menü açıkken, menu öğeleri görünür olmalı */
    .naav-linkss.active {
        display: flex;
        z-index: 1000;
    }

    .naav-linkss {
        display: none; /* Menü öğeleri mobilde gizlensin */
        position: absolute;
        top: 80px;
        left: 180px;
        right: 0;
        background-color: #0277bd; /* Menü arka planı mavi */
        flex-direction: column; /* Dikey açılacak şekilde düzenlendi */
        width: 100%;
        justify-content: flex-start; /* Dikeyde başlangıç hizası */
        gap: 10px;
        padding: 10px 0; /* Dikey boşluk */
        border-radius: 8px; /* Yuvarlatılmış köşeler */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Hafif gölge efekti */
        width: 53%;
    }

        .naav-linkss a {
            padding: 12px 20px;
            font-size: 13px;
            text-align: center;
            color: white; /* Menü öğeleri beyaz */
            text-decoration: none;
            border-radius: 4px; /* Menü öğelerine yuvarlak köşe ekleyelim */
            transition: background-color 0.3s ease, transform 0.3s ease; /* Animasyon */
        }

            .naav-linkss a:hover {
                background-color: #01579b; /* Hoverda daha koyu mavi */
                transform: scale(1.05); /* Hover sırasında biraz büyümesini sağlıyoruz */
            }



    .auth-buttoons {
        display: flex;
        gap: 5px;
        justify-content: flex-end;
        align-items: center;
        width: auto;
        margin-right: 58px;
    }

        .auth-buttoons a {
            padding: 8px 12px; /* İç boşlukları artırdım */
            font-size: 12px; /* Yazı boyutunu düzelttim */
            text-align: center; /* Yazı ortalanacak */
            white-space: nowrap; /* Metnin satır atlamaması için */
        }

            .auth-buttoons a:hover {
                background-color: #01579b; /* Hoverda koyu mavi */
            }

    .user-name {
        padding: 8px 12px;
        font-size: 14px;
        color: white; /* Beyaz yazı */
    }





    .music-container {
        margin-left: 6px;
        display: none;
    }

    .pencere-icerik {
        transform: scale(0.8);
        transform-origin: top left;
        left: 34px;
        top: 43px;
        height: 323px !important;
    }
}
/* 420px ve altı için özel ayarlar */
@media only screen and (max-width: 400px) {
    .navbaar-container {
        padding: 5px; /* Daha küçük padding */
    }

    .logo {
        font-size: 18px; /* Logo boyutunu küçült */
        margin-right: 10px; /* Daha az margin */
    }

    .naav-linkss {
        left: 183px;
        width: 51%;
    }

    .auth-buttoons {
        margin-right: 32px;
        */ position: relative;
        left: -31px;
        position: relative;
    }

    .pencere-icerik {
        transform: scale(0.7);
        left: 50px;
        top: 30px;
        height: 272px !important;
    }

    .haamburger {
        margin-top: 5px;
        margin-right: -9px;
    }
}




/* Dropdown İçeriği */
.dropdown-content {
    display: none; /* Varsayılan olarak gizli */
    position: absolute;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 120000;
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

    /* Liste Elemanları */
    .dropdown-content li {
        padding: 10px 15px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

        .dropdown-content li:last-child {
            border-bottom: none;
        }

        /* Link Stili */
        .dropdown-content li a {
            font-size: 14px;
            color: #009cfb;
            text-decoration: none;
            font-weight: bold;
            display: block;
            transition: color 0.3s, background-color 0.3s;
        }

            /* Hover Efekti */
            .dropdown-content li a:hover {
                background-color: rgba(0, 156, 251, 0.1);
                color: #0056b3;
            }

/* Çıkış Yap Butonu */
.logout-btn {
    font-size: 14px;
    color: #ff4d4d;
    font-weight: bold;
    background: none;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: color 0.3s;
}

    .logout-btn:hover {
        background-color: rgba(255, 77, 77, 0.1);
        color: #b30000;
    }

/* Dropdown Hover Aktif Etme */
.dropdown:hover .dropdown-content {
    display: block; /* Hover sırasında içeriği göster */
}

.auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center; /* Öğeleri hizalar */
}

    .auth-buttons a {
        color: white;
        text-decoration: none;
        padding: 8px 15px;
        border-radius: 4px;
        transition: background-color 0.3s, transform 0.3s;
    }

    .auth-buttons .login {
        border: 1px solid #0197f6;
    }

    .auth-buttons .post-ad {
        background-color: white;
        color: #009cfb;
        font-weight: bold;
        padding: 8px 15px;
        border-radius: 4px;
    }

    .auth-buttons a:hover {
        background-color: rgba(255, 255, 255, 0.8);
        transform: scale(1.05);
    }










/* Genel Footer Stil */
.footer {
    background: linear-gradient(90deg, #009cfb, #0056b3);
    color: white;
    padding: 40px 20px;
    text-align: center;
    font-size: 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.footer-content, .footer-section {
    flex: 1;
    margin: 20px;
    min-width: 250px;
    font-size: 1rem;
}

.footer-contact {
    text-align: left;
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: 17px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-info {
    position: relative;
    margin: 8px;
    font-size: 0.8rem;
    left: -7px;
    text-align: left;
}

.nav-links {
    list-style: none;
    padding: 0;
}

    .nav-links li {
        margin: 0;
        font-size: 1rem;
    }

.footer-link {
    text-decoration: none;
    color: white;
    white-space: nowrap;
}

    .footer-link:hover {
        text-decoration: underline;
    }

.footer-social {
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.social-icon {
    margin: 0 10px;
    display: inline-block;
    transition: transform 0.3s;
}

    .social-icon img {
        width: 36px;
        height: 36px;
    }

    .social-icon:hover {
        transform: scale(1.1);
    }

.footer-bottom {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 10px;
}

    .footer-bottom p {
        margin: 0;
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.8);
    }

/* Responsive Düzen */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column; /* Alanları dikey olarak yerleştir */
        align-items: center; /* İçeriği ortala */
    }

    .footer-content, .footer-section {
        min-width: 100%; /* Her bölüm tam genişlik kaplasın */
        margin: 10px 0; /* Daha az dış kenar boşluğu */
        text-align: center; /* Mobilde metinleri ortaya hizala */
    }

    .footer-contact {
        text-align: center; /* Mobilde sola hizalamak yerine ortaya hizala */
    }

    .social-icons {
        flex-wrap: wrap; /* İkonlar taşarsa alta geçsin */
    }

    .social-icon {
        margin: 5px; /* Mobilde ikonlar arası daha az boşluk */
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 20px 10px; /* Daha az boşluk */
    }

    .footer-title {
        font-size: 1.2rem; /* Başlık boyutunu küçült */
    }

    .footer-info {
        font-size: 0.7rem; /* Bilgi metni daha küçük */
    }

    .footer-bottom p {
        font-size: 0.8rem; /* Footer alt yazısı daha küçük */
    }
}


/* Yüzen Dil Seç Butonu */
#floating_button {
    position: absolute;
    top: 15px;
    left: 254px;
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    z-index: 9999;
    font-size: 16px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    scale: 0.8;
}

    #floating_button:hover {
        background-color: #45a049; /* Hover efektinde buton rengi değişimi */
    }

/* Dil Seçme öğesinin başlangıçta gizli olmasını sağlar */
#google_translate_element {
    display: none;
    position: fixed;
    top: 38px;
    left: -79px;
    background-color: #4caf50;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 9998;
    width: 305%;
    max-width: 4000px;
}


@media (max-width: 768px) {
    /* Butonun mobilde konumu ve boyutu */
    #floating_button {
        top: 10px;
        left: 20px; /* Butonu daha içeri al */
        padding: 8px 16px; /* Butonun boyutunu küçült */
        font-size: 14px; /* Yazı boyutunu küçült */
        scale: 0.7; /* Butonun genel boyutunu küçült */
    }

        /* Hover efekti aynı kalabilir */
        #floating_button:hover {
            background-color: #45a049;
        }

    /* Dil Seçme öğesi mobilde daha dar bir görünüm sağlar */
    #google_translate_element {
        top: 48px; /* Butonun altına hizala */
        left: 10px; /* Ortaya hizala */
        width: 90%; /* Daha dar bir genişlik */
        max-width: 100%; /* Ekran boyutuna göre genişlik */
        padding: 8px; /* İç boşluğu küçült */
        display: none;
    }
}
