﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(-45deg, #d0f0fd, #b3e5fc, #a2d9f7, #81d4fa, #cfefff);
    background-size: 400% 400%;
    animation: gradientAnimation 10s ease infinite;
    margin: 0; /* Tarayıcı varsayılan boşluklarını kaldırır */
    padding: 0;
    overflow-x: hidden; /* Yatay kaydırmayı engeller */
}

html {
    width: 100%;
    overflow-x: hidden; /* Body dışında taşmalar için de yatay kaydırmayı engeller */
}


@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


.video-section {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.category-title {
    color: #007bff;
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

.video-card {
    background-color: #f1f9ff;
    border: 1px solid #007bff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 315px; /* Sabit yükseklik */
}

    .video-card:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    /* Video Kartı Stil */
    .video-card iframe {
        width: 100%;
        height: 100%; /* Yüksekliği tamamen dolduracak şekilde */
        border: none;
        border-radius: 8px; /* Yuvarlatılmış köşeler */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Hafif gölge efekti */
    }

@media (max-width: 768px) {
    .video-card iframe {
        height: 200px;
    }

    .video-section {
        left: 0px;
        position: relative;
        padding: 4px;
        max-width: 398px;
    }

    .video-card {
        left: 11px;
        position: relative;
    }

}

@media only screen and (max-width: 388px) {
 



    .footer {
        background-color: #0056b3;
        color: white;
        text-align: center;
        padding: 15px;
        font-size: 0.9em;
    }



    /* 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;
        }

  

   

    .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);
            }

    .dropdoawn {
        position: relative;
    }

    .dropdoawn-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 */
    }

        .dropdoawn-content li {
            padding: 10px 15px;
            transition: background-color 0.3s, color 0.3s;
        }

            .dropdoawn-content li a {
                color: #009cfb;
                font-weight: bold;
                text-decoration: none;
                font-size: 16px;
                display: block;
            }

                .dropdoawn-content li a:hover {
                    background-color: rgba(0, 156, 251, 0.1); /* Hafif mavi arka plan */
                    color: #0056b3; /* Yazı rengi koyulaşsın */
                }

    /* Dropdown Menü Hover */
    .dropdoawn:hover .dropdoawn-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);
        }



    /* 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 */
        }

        .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; /* Aralarındaki boşluk */
            justify-content: flex-end;
            align-items: center; /* Dikeyde hizalama */
            width: auto; /* Genişliği otomatik yaparak daha esnek olmasını sağladık */
            margin-right: 40px;
        }

            .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ı */
        }

     

        /* Active menu toggle */
        .naav-linkss.active {
            display: flex; /* Menü açıldığında flex ile gösterilsin */
        }
    }










    /* Pop-up penceresi stili */
    .popup {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        justify-content: center;
        align-items: center;
        z-index: 1100;
    }

    /* Pop-up içeriği stili */
    .popup-content {
        background: linear-gradient(90deg, #1e88e5, #2196f3); /* Mavi tonları kullanıldı */
        width: 80%; /* Genişlik ayarlandı */
        height: 70vh; /* Yükseklik %70 ekranın */
        display: flex;
        border-radius: 15px;
        border: 5px solid #fff; /* Beyaz çerçeve eklendi */
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
        overflow: hidden;
        animation: fadeIn 0.3s ease;
        position: relative;
        padding: 20px;
        box-sizing: border-box;
        margin: auto;
    }

    /* Sol ve sağ bölümler */
    .left-section, .right-section {
        flex: 1;
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    /* Sağ bölümdeki ayırıcı */
    .right-section {
        border-left: 2px solid #fff; /* Sağ tarafla sol tarafı ayıran çizgi */
    }

    /* Başlık stilleri */
    h2 {
        margin-bottom: 20px;
        font-size: 28px;
        color: #fff; /* Beyaz renk kullanıldı */
        font-weight: bold;
    }

    /* Buton stilleri */
    .button {
        margin: 15px 0;
        padding: 15px 25px;
        background: #fff;
        color: #1e88e5; /* Mavi tonları kullanıldı */
        text-decoration: none;
        border-radius: 10px;
        border: none;
        cursor: pointer;
        transition: background 0.3s, transform 0.2s;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        font-size: 18px;
        width: 80%;
    }

        .button:hover {
            background: #f1f1f1;
            transform: translateY(-2px);
        }

        .button:focus {
            outline: none;
        }

    /* Kapat butonu */
    .close-button {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 40px; /* Butonun genişliği */
        height: 40px; /* Butonun yüksekliği */
        font-size: 30px;
        color: #fff;
        background: none;
        border: 2px solid #fff; /* Butonun kenarlığı */
        text-align: center; /* Yazıyı ortalamak için */
        cursor: pointer;
        display: flex; /* İçeriği ortalamak için */
        align-items: center; /* İçeriği dikey ortalamak için */
        justify-content: center; /* İçeriği yatay ortalamak için */
    }

        .close-button:hover {
            color: #d32f2f;
            border-color: #d32f2f; /* Hover durumunda kenarlık rengi değişiyor */
        }

    /* Fade-in animasyonu */
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: scale(0.8);
        }

        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    /* Mobil cihazlar için düzenlemeler */
    @media only screen and (max-width: 768px) {
        .popup-content {
            width: 90%; /* Pop-up genişliği mobilde %90'a düştü */
            height: auto; /* Yükseklik içeriğe göre otomatik olacak şekilde ayarlandı */
            flex-direction: column; /* İçeriğin dikey hizalanması */
            padding: 15px; /* İçerik için padding biraz küçültüldü */
        }

        .left-section, .right-section {
            padding: 10px; /* İçerik boşlukları küçültüldü */
        }

        .button {
            width: 100%; /* Butonlar tam genişlik olacak şekilde ayarlandı */
            padding: 12px 20px; /* Buton padding'i küçültüldü */
            font-size: 16px; /* Buton yazı boyutu küçültüldü */
        }

        h2 {
            font-size: 22px; /* Başlık boyutu küçültüldü */
        }
    }

    /* Daha küçük cihazlar için (örneğin telefonlar) */
    @media only screen and (max-width: 480px) {
        .popup-content {
            width: 95%; /* Pop-up genişliği daha küçük cihazlarda %95 olacak */
            padding: 10px; /* Daha az padding */
        }

        h2 {
            font-size: 18px; /* Başlık boyutu daha da küçültüldü */
        }

        .button {
            padding: 8px 10px; /* Buton padding'i daha da küçültüldü */
            font-size: 14px; /* Buton yazı boyutu küçültüldü */
        }
    }
