/* =========================
   COMPONENTS (Shared UI)
   - Album Carousel
   - Pagination
   - Share Links
   - Common Buttons
   - Accordion 
========================= */


/* =========================
   ALBUM CAROUSEL
========================= */
.album-shell {
    border: 1px solid rgba(0,0,0,.06);
    overflow: hidden;
    box-shadow: 0 .8rem 2rem rgba(0,0,0,.06);
    background: #fff;
}

.album-carousel-img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    background: #f3f5f7;
    cursor: pointer;
    display: block;
}

@media (max-width:992px) {
    .album-carousel-img {
        height: 360px;
    }
}

.album-caption {
    background: linear-gradient(transparent, rgba(0,0,0,.65));
    color: #fff;
    padding: 14px 16px;
}

.album-thumbbar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px;
    border-top: 1px solid rgba(0,0,0,.06);
    background: #fff;
}

    .album-thumbbar::-webkit-scrollbar {
        height: 8px;
    }

    .album-thumbbar::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,.15);
        border-radius: 999px;
    }

.thumb-btn {
    border: 0;
    padding: 0;
    background: transparent;
    flex: 0 0 auto;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.thumb-img {
    width: 120px;
    height: 78px;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 12px;
    transition: transform .12s ease, box-shadow .12s ease;
    background: #f3f5f7;
}

.thumb-btn:hover .thumb-img {
    transform: translateY(-1px);
    box-shadow: 0 .6rem 1.2rem rgba(0,0,0,.12);
}

.thumb-btn:focus-visible .thumb-img {
    box-shadow: 0 0 0 3px rgba(139,0,0,.22);
    border-color: rgba(139,0,0,.45);
}

.thumb-badge {
    position: absolute;
    left: 8px;
    top: 8px;
    border-radius: 999px;
    padding: .2rem .55rem;
    font-size: .72rem;
}

/* Bootstrap carousel overlay iptali / küçük kontrol alanı */
#albumCarousel .carousel-control-prev,
#albumCarousel .carousel-control-next {
    width: 56px;
    opacity: 1;
    border: none;
    background: transparent !important;
}

#albumCarousel .carousel-control-prev-icon,
#albumCarousel .carousel-control-next-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background-color: rgba(0,0,0,.45);
    background-size: 18px 18px;
}

#albumCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#albumCarousel .carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(0,0,0,.65);
}

/* Opsiyonel custom nav */
#albumCarousel .album-nav {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(0,0,0,.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    line-height: 1;
}

    #albumCarousel .album-nav:hover {
        background: rgba(0,0,0,.65);
    }

/* =========================
   PAGINATION (Generic)
========================= */
.pagination-bar {
    margin-top: 28px;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
}

.page-size {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #2c3e50;
}

/* ID yerine scope’lu yazmak daha güvenli (aynı id yoksa da sorun olmaz) */
.pagination-bar #pageSizeSelect {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.12);
    outline: none;
}

.page-info {
    font-weight: 600;
    color: #2c3e50;
}

.pager {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pager-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.12);
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    transition: transform .08s ease, box-shadow .2s ease, opacity .2s ease;
}

    .pager-btn:hover {
        box-shadow: 0 8px 18px rgba(0,0,0,0.10);
        transform: translateY(-1px);
    }

    .pager-btn:disabled {
        opacity: .45;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

.page-numbers {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.page-ellipsis {
    min-width: 24px;
    height: 42px;
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 4px;
    font-weight: 700;
    color: #6c757d;
    user-select: none;
}

.page-number {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.12);
    background: #fff;
    cursor: pointer;
    font-weight: 700;
    color: #2c3e50;
    transition: transform .08s ease, box-shadow .2s ease, opacity .2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .page-number:hover {
        box-shadow: 0 8px 18px rgba(0,0,0,0.10);
        transform: translateY(-1px);
    }

    .page-number.active {
        background: var(--msb-bordo);
        color: #fff;
        border-color: var(--msb-bordo);
    }

@media (max-width:576px) {
    .pagination-bar {
        justify-content: center;
        gap: 10px;
        padding: 12px;
    }

    .page-info {
        width: 100%;
        text-align: center;
        order: -1;
        font-size: .9rem;
    }

    .page-size {
        font-size: .9rem;
    }

    .pager {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-numbers {
        gap: 4px;
    }

    .pager-btn,
    .page-number {
        min-width: 36px;
        width: 36px;
        height: 36px;
        padding: 0 6px;
        font-size: .9rem;
    }

    .page-ellipsis {
        min-width: 18px;
        height: 36px;
        font-size: .9rem;
    }
}

/* =========================
   SHARE LINKS (Generic)
========================= */
/* Paylaşım */
.share-section {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    /* Mobil sarmalamada güvenli min */
    row-gap: 10px;
}

    .share-section span {
        margin-right: 6px;
        font-weight: 600;
        color: #4b5563;
        font-size: .92rem;
    }

    .share-section a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin-left: 0;
        border-radius: 50%;
        text-decoration: none;
        color: white;
        transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
        box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
        flex: 0 0 auto;
    }

        .share-section a:hover {
            transform: translateY(-3px) scale(1.06);
            box-shadow: 0 10px 20px rgba(0, 0, 0, .25);
            filter: brightness(1.05);
        }

        .share-section a:focus-visible {
            outline: none;
            box-shadow: 0 0 0 3px rgba(139, 0, 0, .25), 0 6px 14px rgba(0, 0, 0, .18);
        }

.share-facebook {
    background-color: #1877f2;
}

.share-twitter {
    background-color: #000;
}

.share-whatsapp {
    background-color: #25D366;
}

.share-mail {
    background-color: #dd4b39;
}

.share-link {
    background-color: #6c757d;
}

/* Mobilde paylaş ikonlarını ortala ve dengeli yerleştir */
@media (max-width: 768px) {
    .share-section {
        justify-content: center;
        text-align: center;
        gap: 8px;
        row-gap: 10px;
    }

        .share-section span {
            display: block;
            width: 100%;
            text-align: center;
            margin-right: 0;
            margin-bottom: 4px;
        }

        .share-section a {
            width: 38px;
            height: 38px;
            font-size: .95rem;
        }
}

/* Küçük telefonlar – 5 ikon tek satırda kalsın diye boyutu küçült */
@media (max-width: 480px) {
    .share-section {
        gap: 6px;
    }

        .share-section a {
            width: 34px;
            height: 34px;
            font-size: .9rem;
        }

        .share-section a i {
            font-size: .85rem;
        }
}

/* Aşırı dar ekranlar */
@media (max-width: 360px) {
    .share-section {
        gap: 5px;
    }

        .share-section a {
            width: 30px;
            height: 30px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
        }

        .share-section a i {
            font-size: .78rem;
        }
}

/* =========================
   COMMON BUTTONS (Optional)
   - Eğer kullanıyorsanız işinize yarar.
========================= */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--msb-bordo), #a30000);
    color: #fff;
    border: none;
    padding: 11px 22px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-size: .92rem;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(139, 0, 0, .22);
}

    .back-button i {
        transition: transform .25s ease;
    }

    .back-button:hover {
        background: linear-gradient(135deg, #a30000, var(--msb-bordo));
        transform: translateY(-2px);
        color: #fff;
        text-decoration: none;
        box-shadow: 0 10px 22px rgba(139, 0, 0, .32);
    }

        .back-button:hover i {
            transform: translateX(-4px);
        }

    .back-button:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(139, 0, 0, .25), 0 6px 14px rgba(139, 0, 0, .22);
    }

.btn-details {
    background: linear-gradient(135deg, var(--msb-bordo), #a30000);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 6px 14px rgba(139, 0, 0, .22);
}

    .btn-details:hover {
        background: linear-gradient(135deg, #a30000, var(--msb-bordo));
        color: #fff;
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: 0 10px 22px rgba(139, 0, 0, .32);
    }

/* =========================
   ACCORDION
========================= */

/* Accordion */
.accordion {
    --bs-accordion-bg: transparent;
    --bs-accordion-border-color: transparent;
    --bs-accordion-border-radius: 12px;
    --bs-accordion-inner-border-radius: 12px;
    --bs-accordion-btn-color: var(--msb-mavi);
    --bs-accordion-active-color: white;
    --bs-accordion-active-bg: var(--msb-bordo);
    --bs-accordion-btn-focus-border-color: var(--msb-bordo);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(139, 0, 0, 0.25);
}

/* ✅ Başlık alanı tam genişlik olsun */
.accordion-item,
.accordion-header,
.accordion-button {
    width: 100% !important;
}

    /* ✅ Ok (chevron) tamamen kalksın */
    .accordion-button::after {
        display: none !important;
    }

/* Item */
.accordion-item {
    border-radius: 12px !important;
    overflow: hidden;
    margin-bottom: 25px;
    border: none;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
}

    .accordion-item:hover {
        box-shadow: 0 15px 35px rgba(139, 0, 0, 0.12);
        transform: translateY(-3px);
    }

/* Button */
.accordion-button {
    font-size: 1.5rem;
    font-weight: 600;
   /* padding: 25px;*/
    background:white;
    border-radius: 12px !important;
    display: flex;
    align-items: center;
    /* ✅ içerikleri tüm satıra yay */
    justify-content: space-between;
    transition: all 0.3s ease;
}



    .accordion-button.collapsed {
        border-left: 3px solid var(--msb-bordo);
        box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.2);
    }


    .accordion-button:not(.collapsed) {
        color: white;
        background: linear-gradient(135deg, var(--msb-bordo), #a00000);
        box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.2);
    }

        .accordion-button:not(.collapsed) .year-icon {
            background-color: rgba(255, 255, 255, 0.2);
            border: 2px solid rgba(255, 255, 255, 0.3);
        }

            .accordion-button:not(.collapsed) .year-icon i {
                color: white;
            }

        .accordion-button:not(.collapsed) .year-badge {
            background-color: rgba(255, 255, 255, 0.2);
            color: white;
        }

.year-icon {
    width: 60px;
    height: 60px;
    background-color: var(--msb-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    border: 2px solid var(--msb-medium);
    transition: all 0.3s ease;
}

    .year-icon i {
        color: var(--msb-bordo);
        font-size: 1.5rem;
        transition: all 0.3s ease;
    }

.year-header {
    display: flex;
    align-items: center;
    width: 100%;
}

.year-text {
    flex-grow: 1;
    text-align: left;
}

/* ✅ rozet sağa dayansın */
.year-badge {
    margin-left: auto;
    background-color: var(--msb-light);
    color: var(--msb-bordo);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid var(--msb-medium);
    transition: all 0.3s ease;
}

.accordion-body {
    padding: 0;
    background: white;
    border-radius: 0 0 12px 12px;
}
