@import url("common.css");
@import url("animation.css");

html {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.with-scrollbar {
    scrollbar-width: auto !important;
    -ms-overflow-style: auto !important;
}

.font-esthetic {
    font-family: 'Sacramento', cursive !important;
}

.font-arabic {
    font-family: 'Noto Naskh Arabic', serif !important;
}

.img-center-crop {
    width: 13rem;
    height: 13rem;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

html[data-bs-theme="dark"] .btn-transparent {
    background-color: rgba(var(--bs-dark-rgb), 0.5) !important;
    backdrop-filter: blur(0.5rem);
}

html[data-bs-theme="light"] .btn-transparent {
    background-color: rgba(var(--bs-light-rgb), 0.5) !important;
    backdrop-filter: blur(0.5rem);
}

.loading-page {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1056;
}

html[data-bs-theme="light"] .color-theme-svg {
    color: rgb(255, 255, 255);
    background-color: var(--bs-light);
}

html[data-bs-theme="dark"] .color-theme-svg {
    color: rgb(0, 0, 0);
    background-color: var(--bs-dark);
}

html[data-bs-theme="light"] .bg-light-dark {
    background-color: rgb(var(--bs-light-rgb));
}

html[data-bs-theme="dark"] .bg-light-dark {
    background-color: rgb(var(--bs-dark-rgb));
}

html[data-bs-theme="light"] .bg-white-black {
    background-color: rgb(var(--bs-white-rgb));
}

html[data-bs-theme="dark"] .bg-white-black {
    background-color: rgb(var(--bs-black-rgb));
}

.bg-cover-home {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mask-image: linear-gradient(0.5turn, transparent, black 40%, black 60%, transparent);
}

.width-loading {
    width: 25%;
}

.cursor-pointer {
    cursor: pointer;
}

@media screen and (max-width: 992px) {
    .width-loading {
        width: 50%;
    }
}

@media screen and (max-width: 576px) {
    .width-loading {
        width: 75%;
    }
}

svg {
    display: block;
    line-height: 0;
    shape-rendering: geometricPrecision;
    backface-visibility: hidden;
}

.svg-wrapper {
    overflow: hidden !important;
    transform: translateZ(0) !important;
}

.no-gap-bottom {
    margin-bottom: -0.75rem !important;
}
/* Comment Cards */
.comments-carousel {
    min-height: 380px;
    max-height: 380px;
    overflow: hidden;
    position: relative;
}

.comments-track {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.comment-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 110px;
    display: flex;
    flex-direction: column;
}

.comment-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-text {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow: hidden;
    max-height: 200px;
    overflow-y: auto;
}

/* Comments Carousel Indicators */
.comments-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.comments-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #999;
    background-color: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.comments-indicators button.active {
    background-color: #999;
    transform: scale(1.3);
}

.comments-indicators button:hover {
    border-color: #666;
    transform: scale(1.15);
}

html[data-bs-theme="dark"] .comment-card {
    background-color: rgba(var(--bs-dark-rgb), 0.3) !important;
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-bs-theme="dark"] .comments-indicators button {
    border-color: #666;
}

html[data-bs-theme="dark"] .comments-indicators button.active {
    background-color: #666;
}

/* News Section */
.news-highlight {
    border: 1px dashed rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, rgba(255, 214, 165, 0.45), rgba(255, 168, 168, 0.35));
}

.news-highlight-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    color: #fff;
    background: linear-gradient(135deg, #ff9a3c, #ff3e7a);
    flex-shrink: 0;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.news-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.75rem 1.25rem rgba(0, 0, 0, 0.12);
}

.news-badge {
    width: 36px;
    height: 36px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.news-toast {
    background: linear-gradient(135deg, #ff9a3c, #ff3e7a);
}

.news-toast-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    flex-shrink: 0;
}

html[data-bs-theme="dark"] .news-highlight {
    border-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(255, 157, 91, 0.2), rgba(255, 90, 155, 0.2));
}

html[data-bs-theme="dark"] .news-card {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.25);
}
