/* 🔹 Temel Sıfırlama ve Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 🔹 Ana İçerik */
.content {
    flex: 1;
    width: 100%;
    padding: 20px;
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* 🔹 Logo */
.logo-container {
    margin-bottom: 30px;
}

.google-logo {
    width: 270px;
    height: auto;
}

/* 🔹 Arama Çubuğu Güncellemeleri */
.search-bar {
    position: relative;
    border: 1px solid #ddd;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 50px;
    width: 800px;
    max-width: 90%;
    margin: 0 auto;
    background-color: #f8f9fa;
}

.search-bar form {
    height: 100%;
    width: 100%;
    display: flex;
    padding: 0;
    border-bottom: 3px solid #ca2b27;
}

.search-bar form .search-icon-area {
    width: 70px;
    background-color: #ca2b27;
    border: 1px solid #ca2b27;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    height: 100%;
    transition: all 0.3s ease;
}

.search-bar form .search-icon-area:hover {
    background-color: #b41e22;
}

.search-bar form .search-icon-area .icon {
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
}

.search-bar form input {
    background: transparent;
    border: none;
    padding: 5px 15px;
    color: #333;
    outline: none;
    box-shadow: none;
    height: 50px;
    flex: 1;
    height: 100%;
    font-size: 16px;
    width: 100%;
}

.main-search {
    position: relative;
}

.main-search:before {
    content: " ";
    position: absolute;
    width: 0;
    height: 0;
    left: 28px;
    right: auto;
    top: auto;
    bottom: -32px;
    border: 16px solid;
    border-color: #ca2b27 transparent transparent #ca2b27;
    z-index: 1000;
}

.main-search:after {
    content: " ";
    position: absolute;
    width: 0;
    height: 0;
    left: 31px;
    right: auto;
    top: auto;
    bottom: -24px;
    border: 13px solid;
    border-color: #ffffff transparent transparent #ffffff;
    z-index: 1001;
}

.icon {
    color: #9aa0a6;
    font-size: 24px;
    
}

/* 🔹 Sonuçlar Konteyneri */
.results-container {
    width: 800px;
    max-width: 90%;
    margin: 35px auto 20px;
    background-color: rgb(255, 255, 255);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: none;
    max-height: 70vh;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

.results-container.visible {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 🔹 Sonuç Öğeleri */
.result-item {
    padding: 15px;
    border-bottom: 1px solid rgba(243, 145, 145, 0.1);
    cursor: pointer;
    opacity: 0;
    transform: translateY(-10px);
    animation: itemSlideDown 0.3s ease-out forwards;
    text-align: left; /* Yazıları sola hizala */
    
}

.result-item:nth-child(1) { animation-delay: 0s; }
.result-item:nth-child(2) { animation-delay: 0.05s; }
.result-item:nth-child(3) { animation-delay: 0.1s; }
.result-item:nth-child(4) { animation-delay: 0.15s; }
.result-item:nth-child(5) { animation-delay: 0.2s; }
.result-item:nth-child(6) { animation-delay: 0.25s; }
.result-item:nth-child(7) { animation-delay: 0.3s; }
.result-item:nth-child(8) { animation-delay: 0.35s; }
.result-item:nth-child(9) { animation-delay: 0.4s; }
.result-item:nth-child(10) { animation-delay: 0.45s; }
.result-item:nth-child(11) { animation-delay: 0.48s; }
.result-item:nth-child(12) { animation-delay: 0.49s; }
.result-item:nth-child(13) { animation-delay: 0.50s; }

@keyframes itemSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-item:last-child {
    border-bottom: none;
}

.result-item:hover {
    background-color: rgba(235, 134, 134, 0.05);
}
.etiket-bilgi {
    color: #c72232;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Bilgi Kutusu Stili */
.info-box {
    background-color: #ffffff; /* Arka plan rengi */
    padding: 15px; /* Yazıların etrafına boşluk */
    border-radius: 8px; /* Köşeleri yuvarlak yap */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Hafif gölge */
    margin-top: 10px; /* Sorudan biraz uzaklaştır */
    border: 1px solid #ddd; /* Kenarlık ekle */
    position: relative;
    z-index: 1000;
}

.info-box p {
    margin: 0; /* Paragrafın varsayılan margin'ini kaldır */
    line-height: 1.5; /* Satır aralığını artır */
}

.info-box.error {
    background-color: #ffe6e6; /* Hata mesajı için farklı bir arka plan rengi */
    border-color: #ffcccc; /* Hata mesajı için farklı bir kenarlık rengi */
}
/* 🔹 Favori Butonları */
.favorite-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1500;
    background-color: #c82333;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
}

.favorite-toggle:hover {
    background-color: #b41e22;
}

/* 🔹 Favoriler Sidebar */
#favorites {
    position: fixed;
    top: 0;
    left: -100%;
    width: 400px;
    height: calc(100vh - 100px);
    background-color: white;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: left 0.2s ease;
    z-index: 2000;
    overflow-y: auto;
    margin-bottom: 0;
    border-radius: 0 10px 10px 0;
}

#favorites.visible {
    left: 0;
}

#favorites h3 {
    margin-bottom: 20px;
    margin-top: 40px;
    color: #333;
    text-align: center;
    font-size: 18px;
}

.favorites-list {
    margin-bottom: 20px;
}

.favorite-item {
    padding: 12px;
    margin: 8px 0;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.favorite-item:hover {
    background-color: #f1f3f4;
}


/* Kullanıcı Notları Bölümü */
.user-notes {
    margin-bottom: 20px;
}

.user-notes textarea:focus {
    border-color: #ff0000; /* Kırmızı renk */
    outline: none; /* Varsayılan mavi outline'ı kaldır */
}

.user-notes textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
    font-family: Arial, sans-serif;
    font-size: 14px;
}
/* 🔹 E-posta Formu */
.email-form {
    padding: 0px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
}

.email-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.email-form input:focus {
    outline: none;
    border-color: #ce2226;
}

.email-form button {
    width: 100%;
    padding: 10px;
    background-color: #c82333;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}


/* 🔹 Footer */
footer {
    background-color: #c82333;
    padding: 12px 0;
    margin-top: auto;
}

.footerContainer {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footerContent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.contactInfo {
    color: white;
    font-size: 16px;
}

.contactInfo a {
    color: white;
    text-decoration: none;
}

.red-text {
    color: white;
    font-weight: bold;
}

.spacer {
    margin: 0 8px;
}

.socialIcons {
    display: flex;
    gap: 30px;
}

.socialIcons a {
    color: white;
    font-size: 26px;
}

.footerBottom {
    margin-top: 12px;
    text-align: center;
    color: white;
    font-size:12px;
}

.divider {
    height: 1px;
    background-color: rgba(39, 10, 10, 0.2);
    margin: 8px 0;
}

.designer {
    font-size:12px;
    opacity: 1;
}

.designer .email {
    color: white;
    text-decoration: none;
    opacity: 0.8;
}

.fav-checkbox, .remove-fav-checkbox {
    accent-color: rgb(202, 43, 39);
}

/* 🔹 Mobil ve Tablet Ortak Düzenlemeler */
@media (max-width: 1024px) {
    .content {
        margin-top: 70px;
        padding-top: 20px;
    }

    #favorites {
        width: 100%;
        height: 100vh;
        max-height: none;
        padding: 20px;
        border-radius: 0;
        top: 0;
        margin: 0;
        background-color: rgba(255, 255, 255, 0.98);
    }

    .favorite-toggle {
        position: fixed;
        top: 15px;
        left: 15px;
        padding: 6px 12px;
        font-size: 12px;
        min-width: auto;
    }

    .footerContent {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .contactInfo {
        flex-direction: column;
        gap: 8px;
    }

    .spacer {
        display: none;
    }

    .socialIcons {
        justify-content: center;
        margin: 10px 0;
    }

    footer {
        padding: 10px 0;
    }

    .footerBottom {
        margin-top: 10px;
    }

    .designer {
        font-size: 10px;
    }
}

/* 🔹 Mobil Düzenlemeler */
@media (max-width: 767px) {
    body {
        min-height: 100vh;
    }

    .content {
        padding: 15px;
        margin-top: 70px;
    }

    .google-logo {
        width: 200px;
    }

    .search-bar {
        height: 45px;
        width: 95%;
    }

    .results-container {
        width: 95%;
        margin: 15px auto;
        max-height: 60vh;
        position: relative;
        top: 10px; /* Arama çubuğundan biraz aşağıya kaydır */
    }

    /* Arama çubuğundaki üçgenin mobildeki konumu */
    .main-search:before {
        left: 10px; /* Üçgenin sol pozisyonunu ayarla (mobilde daha sola) */
        bottom: -28px; /* Üçgenin arama çubuğuna olan mesafesini ayarla */
        border-width: 14px; /* Üçgenin boyutunu küçült */
    }

    .main-search:after {
        left: 13px; /* Üçgenin sol pozisyonunu ayarla (mobilde daha sola) */
        bottom: -20px; /* Üçgenin arama çubuğuna olan mesafesini ayarla */
        border-width: 11px; /* Üçgenin boyutunu küçült */
    }

    /* Bilgi Kutusu Mobil Stili */
    .info-box {
        width: 100%; /* Bilgi kutusunun genişliğini tam yap */
        padding: 10px; /* Padding'i azalt */
        margin-top: 5px; /* Sorudan biraz daha yakın yap */
        font-size: 14px; /* Yazı boyutunu küçült */
        box-sizing: border-box; /* Padding ve border'ı genişliğe dahil et */
        max-height: 150px; /* Maksimum yükseklik belirle */
        overflow-y: auto; /* İçerik uzunsa kaydırma çubuğu göster */
    }

    .info-box p {
        margin: 0; /* Paragrafın varsayılan margin'ini kaldır */
        line-height: 1.4; /* Satır aralığını azalt */
    }

    .result-item {
        padding: 10px; /* Soruların padding'ini azalt */
    }
}
/* 🔹 Tablet Düzenlemeler */
@media (min-width: 768px) and (max-width: 1024px) {
    .search-bar {
        width: 90%;
    }

    .results-container {
        width: 90%;
    }
}