/* Carousel */
.carousel-item {
    overflow: hidden;
    border-radius: 0.5rem;
}
.carousel-item-next,
.carousel-item-prev,
.carousel-item.active {
    transition: none;
}

/* Card */
.card { 
    margin-bottom: 30px;
}
.card-img-top {
    transition: opacity 0.5s ease;
}
.card-img-top.hover-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}
.card:hover .card-img-top {
    opacity: 0;
}
.card:hover .card-img-top.hover-img {
    opacity: 1;
}

/* Badge */
.badge-label {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.badge-featured {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1;
}
.badge-best-seller {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 1;
}

/* Favorite Icon */
.favorite-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Breaking News */
.breaking-news {
    height: 30px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.breaking-news .news-container {
    flex: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
}
.breaking-news p {
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0;
    line-height: 30px;
    text-align: left;
    padding-left: 10px;
    animation: slide 16s linear infinite;
}
.breaking-news p:nth-child(2) {
    animation-delay: 4s;
}
.breaking-news p:nth-child(3) {
    animation-delay: 8s;
}
.breaking-news p:nth-child(4) {
    animation-delay: 12s;
}
@keyframes slide {
    0% { top: 100%; }
    5% { top: 0; }
    25% { top: 0; }
    30% { top: -100%; }
    100% { top: -100%; }
}
.breaking-news p {
    opacity: 0;
}
.breaking-news p:nth-child(1) {
    animation: slide 16s linear infinite, fadeIn 1s forwards;
}
.breaking-news p:nth-child(2) {
    animation: slide 16s linear infinite 4s, fadeIn 1s 4s forwards;
}
.breaking-news p:nth-child(3) {
    animation: slide 16s linear infinite 8s, fadeIn 1s 8s forwards;
}
.breaking-news p:nth-child(4) {
    animation: slide 16s linear infinite 12s, fadeIn 1s 12s forwards;
}
@keyframes fadeIn {
    to { opacity: 1; }
}
.breaking-news .fixed-message {
    white-space: nowrap;
    margin-left: auto;
    padding-right: 10px;
}

/* Dropdown Menu */
.dropdown-menu .dropdown-item i {
    width: 20px; /* Sabit genişlik belirleniyor */
    text-align: center; /* İkonların ortalanması */
    margin-right: 10px; /* İkon ve metin arasında boşluk */
}
.dropdown-menu .dropdown-item {
    display: flex; /* İkon ve metni yan yana hizalamak için */
    align-items: center; /* Dikey olarak ortalanması */
}

/* Admin Styles */
#loading {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out;
} 
#loading.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Image */
.img-300x300 {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Short Description */
.short-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 3em;
    /* 2 satır yüksekliği */
}

/* Tabs */
.tab-content>.tab-pane {
    padding: 20px;
    border: 1px solid #dee2e6;
    border-top: none;
}
.nav-tabs .nav-link {
    border: 1px solid transparent;
    border-radius: 0;
    color: #495057;
}
.nav-tabs .nav-link.active {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}
.nav-tabs .nav-link:hover {
    border-color: #6c757d;
}

/* Login */
.separator {
    text-align: center;
    margin: 20px 0;
    position: relative;
}
.separator::before,
.separator::after {
    content: '';
    display: block;
    width: 40%;
    height: 1px;
    background: #ddd;
    position: absolute;
    top: 50%;
}
.separator::before {
    left: 0;
}
.separator::after {
    right: 0;
}

/* Register */
.form-check-label a {
    color: inherit;
    text-decoration: underline;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

footer {
    position: relative;
    margin-top: auto;
}

footer .container {
    margin-top: auto;
}