/* public/css/satici.css */

/* Genel Stil Ayarları */
.sat-container {
    max-width: 78.2rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: 130px;
    padding: 20px;
    background-color: #F5F6F5;
}

.sat-row {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
}

.sat-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

.sat-col-sidebar {
    flex: 0 0 24%;
    max-width: 24%;
}

.sat-col-content {
    flex: 0 0 77%;
    max-width: 77%;
}

/* Profil Kartı */
.sat-profile-card {
    width: 100%;
    height: 200px;
    background: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.sat-profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 20px;
}

.sat-profile {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    background-color: #ccc;
    background-size: cover;
    background-position: center;
    margin-top: 10px;
}

.sat-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.sat-button {
    padding: 5px 15px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    
}

.sat-follow-btn {
    background-color: #007782;
    color: white;
    
}

.sat-follow-btn:hover {
    background-color: #005a5e;
}

/* Paylaşım Dropdown Menüsü */
.sat-share-btn {
    background-color: white;
    color: #007782;
    margin-top: 16px;
    border: 1px solid #007782;
    border-radius: 14px;
    height: 39px;
    font-size: 1rem;
    font-weight: normal;
    line-height: 1;
    font-family: 'roboto', sans-serif;
}

.sat-share-btn:hover {
    background-color: #005a5e;
    color: white;
     border: 1px solid #007782;
}

.sat-share-dropdown {
    position: relative;
    display: inline-block;
}

.sat-share-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 150px;
    border-radius: 5px;
}

.sat-share-menu a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.sat-share-menu a:hover {
    background-color: #f1f1f1;
    color: #007782;
}

.sat-share-menu.open {
    display: block;
}

.sat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sat-info h1 {
    margin: 0;
    font-size: 24px;
    color: #333;
    font-family: "Bree Serif", serif;
    font-weight: 400;
    font-style: normal;
}

.sat-stats {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.sat-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 16px;
    color: #333;
}

.sat-stat span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #007782;
    color: white;
    font-weight: bold;
    margin-top: 5px;
}

/* Slider */
.sat-slider-container {
    width: 100%;
    max-width: 1250px;
    height: auto;
    margin: 0 auto 20px auto;
    overflow: hidden;
    position: relative;
}

.sat-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.sat-slider img {
    width: 100%;
    max-width: 210px;
    height: 210px;
    object-fit: cover;
    margin: 0 5px;
    border-radius: 8px;
}

.sat-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.sat-left {
    left: 10px;
}

.sat-right {
    right: 10px;
}

.sat-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.sat-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.sat-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

/* Sayfalama */
.sat-containeea {
    width: 100%;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sat-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 5px;
}

.sat-page-num, .sat-page-nav {
    font-size: 0.90rem;
    color: #007782;
    padding: 6px 10px;
    border: 1px solid #007782;
    border-radius: 3px;
    text-decoration: none;
    background-color: white;
    transition: background-color 0.3s, color 0.3s;
}

.sat-page-num:hover, .sat-page-nav:hover {
    background-color: #007782;
    color: white;
}

.sat-page-num.active {
    background-color: #007782;
    color: white;
}

.sat-page-nav.disabled {
    color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
    background-color: white;
}

.sat-pagination-info {
    font-size: 0.80rem;
    color: #666;
    text-align: center;
    margin-top: 5px;
}

.sat-hakkimizda {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.sat-hakkimizda h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
}

.sat-hakkimizda p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    padding: 10px;
}

.yorum-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.yorum-modal {
    background: white;
    padding: 20px;
    border-radius: 5px;
    width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}

.yorum-listesi {
    list-style: none;
    padding: 0;
}

.yorum-item {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

@media (max-width: 768px) {
    .sat-slider-container {
        height: 180px;
    }

    .sat-slider img {
        max-width: 180px;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .sat-slider-container {
        height: 150px;
    }

    .sat-slider img {
        max-width: 150px;
        height: 150px;
    }
}

/* Sidebar */
.sat-sidebar {
    width: 100%;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sat-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.sat-info-item:last-child {
    border-bottom: none;
}

.sat-info-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.sat-info-subitem {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #333;
}

.sat-info-item i {
    color: #007782;
}

.sat-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.sat-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.sat-btn-engelle {
    background-color: #dc3545;
    color: white;
}

.sat-btn-engelle:hover {
    background-color: #c82333;
}

.sat-btn-bildir {
    background-color: #ffc107;
    color: #333;
}

.sat-btn-bildir:hover {
    background-color: #e0a800;
}

/* Sekmeler */
.sat-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.sat-tab {
    padding: 10px 20px;
    background-color: #f1f1f1;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    color: #007782;
}

.sat-tab.active {
    background-color: #007782;
    color: white;
}

.sat-tab-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Bildirimler */
.sat-bildirim-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sat-bildirim-item {
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sat-bildirim-item p {
    margin: 0;
    font-size: 0.95rem;
}

.sat-bildirim-item span {
    font-size: 0.85rem;
    color: #666;
}

/* İlanlar (listing-page.css'ten güncellenmiş hali) */
.sat-header-band {
    width: 100%;
    max-width: 78.2rem;
    height: 3rem;
    background-color: #f1f5ff;
    margin: 10px auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 15px;
    border: 1px solid #ddd;
    position: relative;
}

.sat-header-content {
    display: flex;
    align-items: center;
    gap: 10px;
    width: auto;
}

.sat-left-section {
    display: flex;
    align-items: center;
    gap: 10px;
    order: 2;
}

.sat-toplam-ilan {
    font-size: 0.90rem;
    font-weight: 500;
    color: #007782;
    margin: 0;
    padding: 5px 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.sat-advanced-sort-dropdown {
    position: relative;
}

.sat-advanced-sort-toggle {
    background-color: #fff;
    color: #007782;
    padding: 5px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.90rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sat-advanced-sort-toggle:hover {
    background-color: #f1f1f1;
    color: #007782;
}

.sat-advanced-sort-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 200px;
    padding: 10px;
    border-radius: 5px;
}

.sat-advanced-sort-menu h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}

.sat-advanced-sort-menu label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.80rem;
    cursor: pointer;
    color: #555;
    transition: color 0.2s;
}

.sat-advanced-sort-menu input[type="radio"] {
    accent-color: #007782;
    margin-right: 8px;
    cursor: pointer;
}

.sat-advanced-sort-menu input[type="radio"]:checked + span,
.sat-advanced-sort-menu label:hover span {
    color: #007782;
}

.sat-advanced-sort-menu label:hover,
.sat-advanced-sort-menu input[type="radio"]:checked + label {
    color: #007782;
}

.sat-advanced-sort-menu.open {
    display: block;
}

.sat-advanced-sort-icon {
    font-size: 0.75rem;
    transform: rotate(0deg);
    transition: transform 0.2s ease;
}

.sat-advanced-sort-menu.open ~ .sat-advanced-sort-toggle .sat-advanced-sort-icon {
    transform: rotate(180deg);
}

.sat-listing-tab {
    cursor: pointer;
    padding: 8px 12px;
    margin-left: 5px;
    display: inline-flex;
    align-items: center;
}

.sat-listing-tab.active {
    background-color: #f0f0f0;
    font-weight: bold;
}

.sat-listing-tab i {
    margin-right: 5px;
}

.sat-page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
}

.sat-listing-tab-content {
    min-height: 1750px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    display: none;
    padding: 0;
    background-color: #fdfdfd;
    width: 100%;
    margin: 0;
}

.sat-listing-tab-content.active {
    display: block;
}

.sat-listing-tab-content::-webkit-scrollbar {
    width: 12px;
}

.sat-listing-tab-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sat-listing-tab-content::-webkit-scrollbar-thumb {
    background-color: #007782;
    border-radius: 4px;
}

.sat-listing-tab-content::-webkit-scrollbar-thumb:hover {
    background-color: #005f5f;
}

.sat-row {
    display: flex;
    gap: 5px;
    flex-wrap: nowrap;
    margin: 0;
}

.sat-listing-kapsayici {
    width: 52rem;
    max-width: 100%;
    min-height: 5.76rem;
    height: auto;
    display: flex;
    align-items: center;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #007782;
    border-radius: 8px;
    padding: 18px;
    margin: 0px auto;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 4px 0px;
}

.sat-listing-resim-liste {
    width: 150px;
    height: 140px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

.sat-listing-liste-orta-bolum {
    flex: 1;
    padding: 0 15px;
}

.sat-listing-trend-text {
    font-size: 0.90rem;
    font-weight: bold;
    color: #d9534f;
    margin-bottom: 3px;
}

.sat-trend-icon {
    color: #d9534f;
    font-size: 1rem;
    margin-left: 5px;
}

.sat-listing-liste-aciklama {
    font-size: 0.95rem;
    color: #333333;
    margin-bottom: 10px;
    margin-top: -5px;
    text-align: left;
    word-break: break-word;
    overflow-wrap: break-word;
}

.sat-listing-liste-altmenu a,
.sat-listing-liste-altmenu span {
    font-size: 0.85rem;
    color: #007782;
    text-decoration: none;
    margin-right: 5px;
}

.sat-listing-liste-altmenu a:hover {
    text-decoration: underline;
}

.sat-listing-liste-baslik {
    font-size: 1.2rem;
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-style: normal;
    margin-bottom: 8px;
    margin-top: -14px !important;
    text-align: left;
}

.sat-listing-liste-sag-bolum {
    text-align: right;
    width: 160px;
}

.sat-listing-fiyat {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2a9d8f;
}

.sat-listing-durum, .sat-listing-tarih {
    font-size: 0.95rem;
    color: #555;
    margin-top: 3px;
}

.sat-listing-btn-mesaj {
    margin-top: 8px;
    background-color: #fff;
    border: 1px solid #007782 !important;
    color: #007782;
    border-radius: 4px;
    padding: 4px 15px;
    transition: all .3s ease;
}

.sat-listing-btn-mesaj:hover {
    background-color: #007782;
    color: #ffffff !important;
}

.sat-listing-btn-teklif {
    margin-top: 8px;
    background-color: #fff;
    border: 1px solid #007782 !important;
    color: #007782;
    border-radius: 4px;
    padding: 4px 15px;
    transition: all .3s ease;
}

.sat-listing-btn-teklif:hover {
    background-color: #007782;
    color: #ffffff !important;
}

.sat-listing-card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Soldan sıralama */
    max-width: 920px;
    min-width: 920px; /* Minimum genişliği sabit tut */
    margin: 0 auto;
    padding: 0;
    gap: 10px; /* Sütunlar arası boşluk */
    box-sizing: border-box;
    background-color: white;
}

/* 1 ilan olduğunda sat-listing-card genişliğini ayarlama */
.sat-listing-card-container:has(.sat-listing-card:nth-child(1):last-child) .sat-listing-card {
    width: 310px !important; /* 1 ilan varsa genişlik 310px */
    max-width: 310px; /* Maksimum genişlik 310px */
}

/* 4 sütunlu düzen için sat-listing-card genişliği */
.sat-listing-card {
    width: calc(25% - 7.5px); /* (1250px / 4 - (10px * 3) / 4) = 312.5px - 7.5px */
    height: 21.5625rem; /* 345px */
    background-color: #ffffff;
    border: 1px solid #007782;
    border-radius: 0.625rem; /* 10px */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.5rem; /* 8px */
    position: relative;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease;
}

.sat-listing-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sat-listing-card-header {
    display: flex;
    align-items: center;
    height: 20px;
}

.sat-listing-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.sat-listing-profile-image {
    position: relative;
    margin-top: 5px;
    bottom: 5px;
}

.sat-listing-profile-image img {
    display: block !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    margin-top: 6px;
}

.sat-btn {
    background-color: #007782;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.sat-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.sat-listing-username {
    font-size: 1rem;
    color: #333333;
    margin-right: auto;
    padding-left: 7px;
}

.sat-listing-card-image {
    width: 100%;
    height: 200px;
    margin: 10px 0;
    overflow: hidden;
    position: relative;
}

.sat-listing-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sat-listing-fav-icon {
    color: #007782;
    font-size: 1.3rem;
    cursor: pointer;
    position: absolute;
    background: white;
    border-radius: 61px;
    padding: 3px;
    top: 3px;
    right: 9px;
    z-index: 1;
    padding: 5px 5px;
    height: 2rem;
}

.sat-listing-fav-icon.clicked {
    color: red;
}

.sat-listing-card-title {
    color: #333333;
    font-size: 1rem;
    margin: -5px 0;
    text-transform: capitalize;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 100%;
    font-family: "DM Sans", sans-serif;
}

.sat-listing-card-price-fav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 5px 0;
}

.sat-listing-price {
    color: #007782;
    font-size: 1.1rem;
    font-weight: bold;
    margin-left: 3px;
    margin-top: 1px;
    text-transform: capitalize;
}

.sat-listing-card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.90rem;
    color: gray;
}

.sat-listing-location {
    font-size: 0.85rem;
    margin-left: 3px;
}

.sat-empty-message {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 300px);
    width: 100%;
}

.sat-empty-message p {
    text-align: center;
    font-size: 1rem;
    color: #007782;
    padding: 20px;
    background-color: #f1f5ff;
    border-radius: 5px;
}

@media (min-width: 800px) and (max-width: 900px) {
    .sat-listing-card-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
        min-width: 0; /* Responsive tasarım için min-width kaldır */
        padding: 0;
        gap: 10px;
    }

    .sat-listing-card {
        width: calc(27.33% - 6.66px);
        height: 270px;
    }
}

@media (min-width: 901px) and (max-width: 1100px) {
    .sat-listing-card-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
        min-width: 0; /* Responsive tasarım için min-width kaldır */
        padding: 0;
        gap: 10px;
    }

    .sat-listing-card {
        width: calc(28.33% - 6.66px);
        height: 300px;
    }
}