/*DEBUG:*/
/** {*/
/*    border: 1px solid red !important;*/
/*}*/

body {
    font-family: 'Vazirmatn', sans-serif;

}


.animated-sky-background {
    /* The background is now composed entirely of radial-gradient blobs */
    background-image:
        radial-gradient(circle at 15% 15%, rgba(135, 206, 235, 0.6) 0%, transparent 20%),
        radial-gradient(circle at 80% 30%, rgba(162, 210, 255, 0.6) 0%, transparent 25%),
        radial-gradient(circle at 90% 70%, rgba(189, 224, 254, 0.6) 0%, transparent 20%),
        radial-gradient(circle at 45% 85%, rgba(162, 210, 255, 0.6) 0%, transparent 25%),
        radial-gradient(circle at 10% 90%, rgba(189, 224, 254, 0.6) 0%, transparent 15%);

    min-height: 100vh;
    background-size: 200% 200%; /* Made slightly larger for more varied movement */

    /* Animation definition remains the same */
    animation: moveBackground 40s ease-in-out infinite alternate;
}

/* Keyframes remain the same */
@keyframes moveBackground {
    from {
        background-position: 0% 0%;
    }
    to {
        background-position: 100% 100%;
    }
}


#theme-toggler {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    z-index: 1050; /* High z-index to stay on top */
}

.text-purple {
    color: #0080ff !important;
}

.text-light-blue {
    color: #88c0fc !important;
}

.text-white {
    color: #ffffff !important;
}


.custom-hero-image {
    height: 30rem;
    width: auto;
    object-fit: contain;
}


.swiper-container-wrapper {
    position: relative;
    width: 100%;
}

.swiper-button-prev,
.swiper-button-next {
    top: 50%;
    transform: translateY(-50%);
}


.swiper-button-prev {
    left: -15px;
}


.swiper-button-next {
    right: -15px;
}


:root {
    --swiper-navigation-color: #007bff;
    --swiper-navigation-size: 30px;
}

.my-image-icon {
    filter: invert(0%);
}

html[data-bs-theme="dark"] .my-image-icon {
    filter: invert(100%) brightness(200%);
}

.svg-dynamic-color {
    fill: currentColor;
}

.svg-invert-color {
    filter: invert(0);
}

html[data-bs-theme="dark"] .svg-invert-color {
    filter: invert(1);
}

.tiny-icon {
    width: 7rem;
    height: 7rem;
}

.footer-bg {
    background-color: #eaf2ff;
}

html[data-bs-theme="dark"] .footer-bg {
    background-color: #2b2b2b;
}

.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    color: white;
    text-decoration: none;
    margin-right: 0.5rem; /* Changed to margin-right for RTL spacing */
    font-size: 1.2rem;
    transition: transform 0.2s ease-in-out;
}
.social-icon:hover {
    transform: translateY(-3px);
}
.social-icon.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-icon.youtube { background-color: #1c1c1c; }
.social-icon.telegram { background-color: #0088cc; }


.card-thumbnail-placeholder {
    width: 100px;
    height: 100px;
}

/* Styles the image to fill the placeholder without distortion */
.card-thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This is the key part */
    border-radius: 0.375rem; /* Optional: adds rounded corners */
}


.messages-container {
    position: fixed;
    top: 6rem; /* Adjust to be below your navbar */
    right: 1.5rem;
    z-index: 1056; /* Higher than the navbar's z-index */
    width: 350px;
}

.chapter-header {
    display: flex;
    align-items: stretch; /* Make both items fill the header height */
}

.chapter-header .accordion-button {
    flex-grow: 1; /* Allows the main button to take up the available space */
}

.chapter-action-form {
    display: flex;
    align-items: center;
    padding: 0 1.25rem; /* Match Bootstrap's accordion button padding */

    /* Match the accordion's border */
    border-left: var(--bs-accordion-border-width) solid var(--bs-accordion-border-color);
}

/* Match the background color of the accordion button */
.chapter-header .accordion-button:not(.collapsed) + .chapter-action-form {
    background-color: var(--bs-accordion-active-bg);
}

.comment-content {
    /* Flexbox fix: allows the parent container to shrink, preventing overflow */
    min-width: 0;

    /* Standard property for breaking long words */
    overflow-wrap: break-word;

    /* A more aggressive property to force a break at any character */
    word-break: break-all;
}

/*Review stuff*/
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    font-size: 2rem;
    color: #d3d3d3;
}
.star-rating input {
    display: none;
}
.star-rating label {
    cursor: pointer;
    padding: 0 0.1em;
    transition: color 0.2s;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #ffc107;
}

#notification-dropdown-container .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

