:root {
    --dark-gray: #1F1F1E;
    --light-gray: #2C2C2B;
    --navy-blue: #131d4f;
    --maroon: #872946;
    --beigish: #e9e6d8;
    --sans-serif-body:'Cabin', Arial, Helvetica, sans-serif;
    --sans-serif-title:'Outfit', sans-serif;
    --serif-title:'EB Garamond', Georgia, 'Times New Roman', Times;

}

/* -- ACROSS THE SITE -- */
h3, h4, h5, h6 {
    font-family: var(--serif-title);
    letter-spacing: -0.03em;
    padding: 0rem !important;
}

h3 {
    font-size: 3.5rem !important;
    font-weight: 300 !important;
}

h4 {
    font-size: 2.75rem !important;
    font-weight: 300 !important;
}

h5 {
    font-size: 2rem !important;
    font-weight: 350 !important;
}

h6 {
    font-size: 1.4rem !important;
    font-weight: 400 !important;
}

h1, h2 {
    font-family: var(--sans-serif-title);
}

p {
    font-family: var(--sans-serif-body);
    color: var(--light-gray);
    font-size: 16px;
    margin-bottom: 0rem !important;
}

.p-hero {
    font-size: 18px;
    margin-top: 5px;
}

.emphasis-text {
    font-family: var(--sans-serif-title), sans-serif;
    text-decoration: none;
    color: var(--navy-blue);
    font-weight: 400;
}

.p-secondary {
    color: rgb(106, 116, 126) !important;
}

.char-count{
    font-size: 14px;
    color: rgb(106, 116, 126) !important;
    align-self: center;
}

.custom-modal-title {
    color: var(--light-gray);
    font-size: 20px;
    font-weight: 500;
}

.masonry-item-title {
    color: var(--light-gray);
    font-size: 22px;
    font-weight: 300;
}

/* Custom Buttons */
.custom-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #000;
}

.custom-button > p {
    margin-right: 2rem !important;
    margin-top: 0rem;
}

.custom-button-circle {
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--dark-gray);
    border-radius: 50%;
    position: relative;
    transition: all 0.35s ease-in;
}

.custom-button-circle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    transform: scale(0.25);
    transform-origin: center;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
}

.custom-button:hover > .custom-button-circle::after {
    transform: scale(0.8);
}

/* Primary variant */
.custom-button-primary .custom-button-circle::after {
    background-color: var(--navy-blue);
}
.custom-button-primary:hover .custom-button-circle {
    border-color: var(--navy-blue);
}

/* Secondary variant */
.custom-button-secondary .custom-button-circle::after {
    background-color: var(--beigish);
}
.custom-button-secondary:hover .custom-button-circle {
    border-color: var(--beigish);
}

/* Altered Bootstrap buttons */
.btn-aitchison {
    background-color: var(--navy-blue) !important;
    color: white !important;
    border: none;
    transition: background-color 0.3s ease;
}

.btn-aitchison:hover {
    background-color: #1a296d !important;
    color: white !important;
}

/* Modal */
.modal-title {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    font-size: 22px;
    color: var(--light-gray);
}

.bi-exclamation-triangle-fill {
    color:var(--maroon);
    font-size: 26px;
}

/* ---- GALLERY ---- */
/* ---- Filter trigger ---- */
.gallery-filter-heading {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    position: relative;
}

.gallery-filter-trigger {
    color: var(--maroon);
    cursor: pointer;
    font-family: var(--serif-title);
    font-weight: 500;
    font-size: 1.5rem;
    text-decoration: none;
}

.gallery-filter-trigger:hover,
.gallery-filter-trigger:focus-visible {
    color: lightslategray;
}

.dropend .dropdown-item.active,
.dropend .dropdown-item:active {
    background-color: var(--maroon);
    color: #fff;
}

/* ---- Pagination ---- */
.gallery-pagination {
    display: flex;
    gap: .35rem;
    justify-content: flex-start;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gallery-page-link {
    align-items: center;
    background: var(--beigish);
    border: 1px solid #e0e0e0;
    border-radius: .25rem;
    color: #212529;
    display: inline-flex;
    font-family: var(--sans-serif-title);
    font-size: .9rem;
    min-width: 2.25rem;
    height: 2.25rem;
    justify-content: center;
    padding: 0 .6rem;
    text-decoration: none;
}

.gallery-page-link:hover {
    border-color: var(--maroon);
    color: var(--maroon);
}

.gallery-page-item.active .gallery-page-link {
    background: var(--maroon);
    border-color: var(--maroon);
    color: #fff;
}

.gallery-page-item.disabled .gallery-page-link {
    color: #c2c2c2;
    pointer-events: none;
}

.gallery-page-ellipsis {
    align-items: center;
    color: var(--light-gray);
    display: inline-flex;
    height: 2.25rem;
    justify-content: center;
    min-width: 1.5rem;
}

@media (max-width: 575.98px) {
    .gallery-page-link {
        min-width: 2rem;
        height: 2rem;
        padding: 0 .45rem;
        font-size: .8rem;
    }
}

/* ---- ACCOUNT ---- */
/* ---- Tabs ---- */
.account-tabs {
    border-bottom: 2px solid #e9e9e9;
    gap: .25rem;
}

.account-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    font-weight: 600;
    padding: .75rem 1.25rem;
    transition: color .15s ease, border-color .15s ease;
}

.account-tabs .nav-link i {
    margin-right: .4rem;
}

.account-tabs .nav-link:hover {
    color: var(--navy-blue);
    border-color: var(--navy-blue);
}

.account-tabs .nav-link.active {
    background: transparent;
    color: var(--maroon);
    border-color: var(--maroon);
}

/* ---- Cards ---- */
.account-card {
    border: 1px solid var(--maroon) !important;
}

.account-card .card-header {
    background: transparent;
    border-bottom: 1px solid #e9e9e9;
    font-weight: 600;
}

/* ---- Delete ---- */
.account-danger-icon {
    color: var(--maroon);
    font-size: 2.25rem;
}

@media (max-width: 767.98px) {
    .account-tabs {
        gap: 0;
    }

    .account-tabs .nav-link {
        padding: .6rem .85rem;
        font-size: .9rem;
    }
}

/* -- MEMORY -- */
/* -- Make image size smaller and flex with name on bottom able to wrap -- */
.memory-container {
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: var(--light-gray);
}

.memory-reactions-container {
    gap: 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    background-color: var(--beigish);
}

.memory-reaction{
    grid-area: 0.5rem;
}

.memory-image{
    max-height: 100vh;
    object-fit: contain;
}

.messageLimitedInput {
    resize: none;
    overflow: hidden;
    max-height: 120px;
}

/* -- MASONRY -- */
.masonry-container {
    position: relative;
}

.masonry-item {
    width: 100%;
    padding: 0.55rem 0.55rem;
}

.masonry-item img {
    max-height: 500px;
    object-fit: cover;
    width: 100%;
}

.card:hover{
    transform: scale(1.02);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
}

.image-container {
    position: relative;
}

.image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.image-container:hover::before {
    opacity: 1;
}

.image-overlay {
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    padding: 0.5rem;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.image-overlay .btn,
.image-overlay .post-ratings-container {
    pointer-events: auto;
}

.expand-icon {
    position: absolute;
    color: white;
    opacity: 0;
    top: 50%;
    left: 50%;
    font-size: 2rem;
    position: absolute;
    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease;
}

.image-container:hover .expand-icon {
    opacity: 0.5;
}

.custom-card-body {
    text-align: left;
    padding: 1rem 1.5rem !important;
}

.btn-beigish {
    background-color: var(--beigish) !important;
}

.btn-beigish:hover {
    background-color:#d1ccb7 !important;
}

/* -- Reactions: Like/Dislike -- */
.post-ratings-container {
    background-color: var(--beigish);  
    padding: 6px 10px; 
    border-radius: 6px; 
    align-items: center; 
    gap: 12px;
    width: max-content;
    font-size: large;
}

.post-rating {
    align-items: center;
    cursor: default;
}

.post-rating-btn {
    margin-right: 6px;
    cursor: pointer;
    color: #555555;
    transition: 0.3s ease;
}

.post-rating-selected > .post-rating-btn,
.post-rating-selected > .post-rating-count {
    color: var(--maroon);
}

.post-rating > .post-rating-btn:hover {
    transform: scale(1.15);
}

/* -- LAYOUT -- */

#contentWrapper {
    min-height: 100vh;
    margin-left: 4.6rem;
    padding: 0rem 4rem; 
}

@media (max-width: 767.98px) {
    #contentWrapper {
        padding: 0rem 1.5rem;
        margin-left: 3.45rem;
    }
}

/* -- Toggle Password -- */
.toggle-password {
    float: right;
    margin-top: -42px;
    right: 25px;
    position: relative;
    z-index: 2;
    font-size: 1.2rem;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: var(--maroon);
}

/* -- Loader (used in upload page) -- */
#fullPageLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85); /* Semi-transparent black */
    z-index: 9999; /* Ensure this is higher than the Navbar's z-index */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* -- Header -- */
#ac25Header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    
    position: sticky;
    top: 0;
    z-index: 1000;
    
    font-weight: 700;
    padding: 1rem 1rem 1rem 4.6rem;
    background-color: white;
}

#ac25Header > h6 {
    margin: 0;
}

#ac25Header > h6 > a {
    text-decoration: none;
    color: var(--maroon);
}

/* -- Sibebar -- */

#sidebar {
    width: 75px;
    height: 100vh;
    height: 100dvh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1030;
    border-right: solid;
    border-right-width: 1px;
    padding: 1rem;    
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    background-color: var(--beigish);
}

@media (max-width: 767.98px) {
    #sidebar {
        width: 55px;
        padding: 0rem !important;
    }
}

#sidebar > .nav {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#sidebar .nav-link.active,
#sidebar .nav-link:hover {
    color: #fff;
    background-color: #712cf9;
}

/* -- Footer -- */
.site-footer {
    text-align: center;
    padding: 2.5rem 1rem;
    margin-left: 4.6rem;
    margin-top: 5rem;
    background-color: var(--light-gray);
}

@media (max-width: 767.98px) {
    .site-footer {
        margin-left: 3.45rem;
    }
}

.footer-line {
    margin: 0 0 0.4rem;
    font-size: 0.9rem;
    color:white;
}

.footer-contact {
    margin: 1rem 0 0;
    font-family: monospace, 'Courier New', Courier;
    font-size: 0.85rem;
    color: #888;
}

.footer-contact a {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.footer-contact a:hover {
    border-color: #888;
}

/* -- INDEX -- */
/* -- Hero -- */
.hero {
    /* top and bottom | left and right */
    padding: 4rem 0rem;
}

.batch-logo {
    width: 100px;
    height: auto;
}

@media (min-width: 992px) {
    .batch-logo {
        width: 180px;
    }
}

@media (min-width: 1250px) {
    .batch-logo {
        width: 250px;
    }
}

#urduLead {
    font-family: 'Noto Nastaliq Urdu';
    margin-bottom: 2.1rem;
    text-align: left;
    color: var(--light-gray);
}

.not-authenticated-prompt {
    padding: 1rem 0rem;
}

/* -- Dashboard -- */

.dashboard {
    padding: 3rem 0rem;
    text-align: left;
}

.dashboard h4 {
    font-size: 2rem;
}

.dashboard h2 {
    color: var(--maroon);
    font-weight: 200;
    font-size: 2rem;
}

.dashboard-username {
    font-weight: bold;
    font-size: 18px;
    color: var(--light-gray);
}

#scrollAnimation .bi-chevron-down {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-top: 2px;
    margin-top: 3rem;
    font-size: larger;

    width: 20px;
    height: 25px;
    border-radius: 50%;

    background-color: var(--navy-blue); 
    color: white;

    animation: bounceArrow 2s infinite;
}

@keyframes bounceArrow {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0); /* Normal position */
    }
    40% {
        transform: translateY(6px); /* Smooth dip downwards */
    }
    60% {
        transform: translateY(3px); /* Subtle rebound slightly upward */
    }
}

@media (max-width: 992px) {
    #scrollAnimation .bi-chevron-down {
        display: none;
    }
}

.dashboard-icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: var(--light-gray);
    border-radius: 12px;
}

.dashboard-icon{
    font-size: 22px; 
    color:white;
}

.dashboard-stat{
    margin-left: 0.5rem;
    margin-bottom: 0;
}

/* -- LOGIN -- */

.form-text-secondary {
    color: #131d4f;;
}

/* -- TO DO -- */

.pagination .page-link {
    border: none;
    padding: 5px 10px;
    background-color: #ffffff;
    border: 1.5px solid #ffffff;
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
}

.pagination .page-link:hover {
    background-color: white;
    color: #131d4f;
    border: 1.5px solid #131d4f;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
}

.pagination .active .page-link {
    background-color: #131d4f;
    border: 1.5px solid #131d4f;
    color: white !important;
    pointer-events: none;
}
