/* style.css */

body {
    background-color: #f0f2f5;
    font-family: Arial, sans-serif;
}

@media (max-width: 768px) {
    .reply-btn, .reply-form {
        pointer-events: auto !important;
        z-index: 9999 !important;
    }
}

/* Yorum Avatarı */
.media img {
    border: 2px solid #fff159;
}

/* Yorum Metni */
.media-body p {
    background-color: #f1f3f5;
    padding: 10px;
    border-radius: 10px;
}

/* Gönder Butonu */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.navbar {
    background-color: #4267B2;
    margin-bottom: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
}

.navbar-brand {
    color: #fff;
    font-weight: bold;
}

.navbar-brand:hover {
    color: #ddd;
}

.navbar-nav .nav-link {
    color: #fff;
}

.navbar-nav .nav-link:hover {
    color: #ddd;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px; /* Mobilde daha iyi hizalama için padding */
}

.card {
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 15px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
}

.category-card,
.new-items-card {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.post-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

.post-body img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.post-body p {
    font-size: 14px;
    color: #333;
}

.hidden {
    display: none !important;
}

.mobile-nav {
    display: none;
    background-color: #ffffff;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.mobile-nav button {
    flex: 1;
    border: none;
    background-color: #4267B2;
    color: #fff;
    padding: 10px;
    font-size: 14px;
    cursor: pointer;
}

.mobile-nav button:hover {
    background-color: #365899;
}

/* Footer */
footer h5 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #fff;
}

footer p,
footer li {
    font-size: 14px;
    line-height: 1.6;
}

footer a {
    color: #cce5ff;
    transition: color 0.3s;
}

footer a:hover {
    color: #fff;
    text-decoration: underline;
}

footer i {
    margin-right: 10px;
}

footer {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
}

.carousel-inner img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

.reply-btn {
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 10;
}

.reply-form {
    position: relative;
    z-index: 100;
}

/* Mobilde Düzenlemeler */
@media (max-width: 768px) {
    .desktop-view {
        display: none !important;
    }

    .mobile-nav {
        display: flex;
    }

    footer {
        display: none !important;
    }

    /* Container ve Kartlar */
    .container {
        max-width: 100%;
        padding: 0 5px;
        margin: 0 auto;
    }

    .card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 10px auto;
        padding: 10px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    /* İlan kartları için özel düzenleme */
    .card.mb-4.d-block.d-md-none {
        width: 100% !important;
        max-width: 100% !important;
        margin: 10px auto !important;
        padding: 10px;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        background: #fff;
        border: 2px solid #fff159;
    }

    /* Eski carousel kuralları */
    .card-body.position-relative .carousel-inner,
    .card-body.position-relative .carousel-item {
        width: 100% !important;
        height: auto !important;
    }

    .card-body.position-relative .carousel-inner .carousel-item img {
        width: 100% !important;
        height: 200px !important;
        object-fit: cover;
    }

    .reply-btn {
        font-size: 20px;
        padding: 8px;
    }

    .reply-form textarea {
        font-size: 16px;
    }
}

@media (min-width: 769px) {
    .hidden {
        display: block !important;
    }
}

/* ---------- Mobilde 16:9 Tam Kaplama Carousel ---------- */
@media (max-width: 768px) {
  /* Carousel konteynerlerini otomatik yükseklik ve 16:9 oranla sınırla */
  .carousel-inner,
  .carousel-inner .carousel-item {
    height: auto !important;
    aspect-ratio: 16 / 9;
  }

  /* Resmi kapsayıcıya tam oturt, inline height'ı iptal et */
  .carousel-inner .carousel-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-height: none !important;
  }
}

/* Masaüstünde de tam kaplama istersen */
@media (min-width: 769px) {
  .carousel-inner .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: none;
  }
}
/* carousel-img sınıfı: tam genişlik, otomatik yükseklik, cover */
.carousel-img {
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
}

