/* p-Trakya İncisi - Ana Site Stilleri */

/* Genel Stiller */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* 25'li slider: altta numaralı pagination (1..25) */
.slider-bottom-numbers {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 12px 0 12px;
}
.slider-bottom-numbers .slider-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #222;
    border: 2px solid #e5e5e5;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}
.slider-bottom-numbers .slider-num.active {
    background: #e31d2d; /* kırmızı */
    color: #fff;
    border-color: #e31d2d;
}
.slider-bottom-numbers .slider-num:hover:not(.active) {
    border-color: #cfcfcf;
}
@media (max-width: 576px) {
    .slider-bottom-numbers { gap: 6px; }
    .slider-bottom-numbers .slider-num { width: 26px; height: 26px; font-size: 12px; }
}

a {
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}

/* Slider Pagination Stili */
.slider-bottom-pagination {
    text-align: center;
    margin-top: -10px;
    margin-bottom: 20px;
}

.pagination-container {
    display: inline-flex;
    background: #f8f9fa;
    border-radius: 5px;
    padding: 5px 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.page-num {
    display: inline-block;
    width: 35px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    margin: 0 2px;
    cursor: pointer;
    border-radius: 3px;
    font-weight: 600;
    font-size: 14px;
    color: #555;
    transition: all 0.2s ease;
    user-select: none;
}

.page-num:hover {
    background-color: #e9ecef;
}

.page-num.active {
    background-color: #dc3545;
    color: white;
}

.page-next {
    display: inline-block;
    width: 35px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    border-radius: 3px;
    background-color: #f8f9fa;
    color: #555;
    user-select: none;
}

.page-next:hover {
    background-color: #e9ecef;
}

/* Carousel Kontrolleri */
.carousel-control-prev, .carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    opacity: 0.8;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    width: 30px;
    height: 30px;
}

/* Carousel Pagination - Sayılı */
.carousel-pagination {
    position: static !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 2px;
    width: 100% !important;
    margin: 10px auto 20px auto !important;
    flex-wrap: wrap;
}

.carousel-pagination button {
    width: 35px !important;
    height: 30px !important;
    margin: 0 2px !important;
    border-radius: 4px !important;
    background-color: #f8f9fa !important;
    color: #333 !important;
    opacity: 1 !important;
    border: none !important;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-pagination button.active {
    background-color: #dc3545 !important;
    color: white !important;
}

.carousel-pagination button:hover:not(.active) {
    background-color: #e9ecef !important;
}

/* 5'li üst slider: sol dikey sayısal sayfalama */
.slider-left-pagination {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 5;
}
.left-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}
.left-page-num.active {
    background: #ffd100;
    color: #000;
}
.left-page-num:hover:not(.active) {
    background: rgba(0,0,0,0.75);
}

/* Slider aspect ratios */
.slider-img-21x9 {
    width: 100%;
    height: auto;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    object-position: top center;
    display: block;
}
.slider-img-16x9 {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* 3:4 (portrait) ratio for 24'lü slider */
.slider-img-3x4 {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* 25'li slider sayaç (current/total) */
.slider-counter {
    position: absolute;
    left: 8px;
    bottom: 8px;
    z-index: 6;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1;
}

/* Kart Stilleri */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Yazarlar Bölümü */
.author-card {
    transition: all 0.3s ease;
}

.author-card:hover {
    background-color: #f8f9fa;
}

/* Kategoriler */
.category-badge {
    transition: all 0.3s ease;
}

.category-badge:hover {
    transform: scale(1.05);
}

/* Ekonomik Göstergeler */
.economic-indicator {
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 2px 5px;
    border-radius: 3px;
    display: inline-block;
}

.economic-indicator.up {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

.economic-indicator.down {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

.economic-indicator i {
    margin-right: 4px;
}

.economic-indicator-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

/* Responsive Düzenlemeler */
@media (max-width: 768px) {
    .carousel-caption {
        padding: 10px;
    }
    
    .carousel-caption h2 {
        font-size: 1rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
        display: none;
    }
    
    .slider-bottom-pagination {
        margin-top: 0;
    }
    
    .page-num {
        width: 30px;
        height: 25px;
        line-height: 25px;
        font-size: 12px;
    }
}
