/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
}

a {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

a:focus,
a:active {
    outline: none;
    box-shadow: none;
}

.main-container {
    width: 100%;
    height: 100vh;
}

/* Header */
.header {
    width: 100%;
    height: 56px;
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 24px;
    z-index: 2;
    background-color: white;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    width: 95%;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: start;
    width: 253px;
}

.logo img {
    /*max-height: 28px;*/
    max-width: 252px;
    cursor: pointer;
}

.search-bar {
    display: flex;
    height: 40px;
    margin: 0 24px;
}

.search-bar:hover .search-icon, .search-bar:hover input {
    /*background: rgba(0, 0, 0, 0.05);*/
}

.search-bar input {
    width: 500px;
    border-top: 2px solid rgba(0, 0, 0, 0.10);
    border-left: 2px solid rgba(0, 0, 0, 0.10);
    border-bottom: 2px solid rgba(0, 0, 0, 0.10);
    border-right: 0;
    border-radius: 8px 0 0 8px;
    padding: 8px 12px;
    font-size: 16px;
}

/*.search-bar input:focus ~ .search-modal {*/
/*    display: flex;*/
/*}*/

.search-bar .search-icon {
    border-top: 2px solid rgba(0, 0, 0, 0.10);
    border-right: 2px solid rgba(0, 0, 0, 0.10);
    border-bottom: 2px solid rgba(0, 0, 0, 0.10);
    border-left: 0;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    padding-right: 12px;
    cursor: pointer;
    background-color: #FFFFFF;
}

.search-bar .search-icon img {
    width: 24px;
    height: 24px;
}

.logout-modal {
    position: absolute;
    top: 50px;
    left: calc(100% - 250px);
    display: none;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: #FFF;
    box-shadow: 0 12px 36px 0 rgba(0, 0, 0, 0.15);
    z-index: 9;
    cursor: pointer;
}

.logout-button {
    width: 208px;
    height: 40px;
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 8px;
    cursor: pointer;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.logout-button img {
    width: 20px;
    height: 20px;
}

.logout-button:hover {
    background: rgba(0, 0, 0, 0.10);
}

.logout-confirm-modal {
    position: absolute;
    top: 0;

    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 2;
}

.logout-confirm-box {
    position: absolute;
    top: calc(50vh - 138px);
    left: calc(50vw - 188px);
    width: 398px;
    height: 257px;
    padding: 24px;
    border-radius: 12px;
    background: #FFF;
    box-shadow: 0 12px 36px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.logout-details-box  {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.logout-details-box img {
    width: 64px;
    height: 64px;
}

.logout-details-box .header {
    display: flex;
    height: 21px;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    color: #000;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
    margin-top: 4px;
}

.logout-details-box .description {
    color: rgba(0, 0, 0, 0.70);
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    align-self: stretch;
}

.logout-done {
    display: flex;
    height: 40px;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: #F20000;
    cursor: pointer;
    color: #FFF;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 19px;
    width: 132px;
    padding: 8px 54px;
}

.logout-button-box {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    align-self: center;
    width: 100%;
}

.logout-done.cancel {
    background: #DEDEDE;
    color: #000;
}

.search-modal {
    position: absolute;
    top: 52px;
    left: calc(50% - 270px);
    display: none;
    /*height: 458px;*/
    width: 538px;
    padding: 16px;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: #FFF;
    box-shadow: 0 12px 36px 0 rgba(0, 0, 0, 0.15);
    z-index: 9;
}

.search-modal-button {
    display: none;
    padding: 8px 4px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    border-radius: 8px;
    line-height: 150%;
    font-style: normal;
}

.result {
    background: rgba(0, 0, 0, 0.10);
    color: #000;
    border: 0;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    cursor: pointer;
}

.report {
    color: #000;
    opacity: 0.6;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.10);
    font-size: 12px;
    font-weight: 400;
}

.search-modal-suggestion {
    min-height: 80px;
    max-height: 330px;
    width: 100%;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    scrollbar-width: none;
}

.suggestion-row {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.suggestion-row:hover {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/*.suggestion-row:hover > .suggestion-row-icon.close {*/
/*    !*display: block;*!*/
/*    max-height: 20px;*/
/*    max-width: 20px;*/
/*    opacity: 1;*/
/*    transition: all 0.3s ease;*/
/*}*/

/*.suggestion-row:hover > .suggestion-row-icon.send {*/
/*    !*display: none;*!*/
/*    max-height: 0;*/
/*    max-width: 0;*/
/*    opacity: 0;*/
/*    transition: all 0.3s ease;*/
/*}*/

/*.suggestion-row-icon.close {*/
/*    !*display: none;*!*/
/*    max-height: 0;*/
/*    max-width: 0;*/
/*    opacity: 0;*/
/*    transition: all 0.3s ease;*/
/*}*/

.suggestion-row-icon.send, .suggestion-row-icon.close {
    /*display: block;*/
    height: 20px;
    width: 20px;
    opacity: 0.6;
    /*transition: all 0.3s ease;*/
}

.suggestion-row-search {
    height: 28px;
    width: 28px;
    padding: 6px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.10);
}

.suggestion-row-icon {
    max-height: 20px;
    max-width: 20px;
    cursor: pointer;
    /*overflow: hidden;*/
    /*position: absolute;*/
    right: 16px;
}

.suggestion-row-text {
    width: 100%;
    color: #000;
    cursor: pointer;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.login-button {
    width: 252px;
    height: 40px;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 12px;
    justify-content: end;
}

#login_button:hover {
    background: rgba(0, 0, 0, 0.05);
}

.logged-in-box {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
    align-self: center;
    gap: 8px;
    padding: 8px 4px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.10);
}

#welcomeMessage {
    display: flex;
    justify-content: end;
    width: 100%;
    gap: 8px;
    align-items: center;
    align-self: center;
}

#welcomeMessage img{
    width: 24px;
    height: 24px;
    border-radius: 24px;
    background: lightgray 50% / cover no-repeat;
}

.login-button button {
    /*border: 2px solid #A18A6B;*/
    border-radius: 8px;
    cursor: pointer;
    /*transition: background-color 0.3s ease;*/
    /*color: #A18A6B;*/
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    height: 40px;
    background-color: white;
    white-space: nowrap;
    padding: 0 16px;
}

.login-button img {
    height: 24px;
    width: 24px;
    align-self: center;
    /*cursor: pointer;*/
}

.login-button-arrow {
    height: 20px;
    width: 20px;
    align-self: center;
    cursor: pointer;
}

/*.login-button button:hover {*/
/*    background-color: #FF690F;*/
/*    color: #f6f8fa;*/
/*}*/

.login-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 2;
}

.login-modal-bg {
    position: absolute;
    top: calc(50vh - 120px);
    left: calc(50vw - 200px);
    width: 400px;
    height: 240px;
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    border-radius: 12px;
    background: #FFF;
    box-shadow: 0 12px 36px 0 rgba(0, 0, 0, 0.05);
}

.login-modal-header {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    padding: 0 16px;
    width: 100%;
    align-items: center;
}

.login-modal-title {
    color: #000;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
}

.login-modal-close, .modal-close {
    width: 24px;
    height: 24px;
    padding: 6px;
    border-radius: 90px;
    background: rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.login-divider {
    height: 1px;
    background-color: #ddd;
    width: 100%;
}

.google-box {
    display: flex;
    height: 40px;
    padding: 8px 16px;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.10);
    margin: 0 32px;
    cursor: pointer;
}

.google-icon {
    width: 24px;
    height: 24px;
}

.google-text {
    color: #000;
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    width: 100%;
}

.login-tnc {
    overflow: hidden;
    color: rgba(0, 0, 0, 0.60);
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    width: 100%;
    text-wrap: auto;
    padding: 0 16px;
}

.login-tnc a {
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.login-signIn {
    color: #000;
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    width: 100%;
    padding: 0 16px;
    cursor: pointer;
}

.login-signIn a {
    text-decoration: none;
    font-weight: 700;
}

/* Main Section */
.main-section {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: calc(100vh - 56px);
}

.content-container {
    display: flex;
    flex-wrap: wrap; /* Allow flexible layout on mobile */
    width: 100%;
}

.navigation {
    width: 240px;
    height: 100%;
    overflow: auto;
    padding: 12px 16px;
}

.nav-item {}

.right-nav-container {
    display: flex;
    align-items: center;
    border-radius: 4px;
    opacity: 0.6;
}

.right-nav-container:hover {
    background: rgba(0, 0, 0, 0.10);
}

.right-nav-container.current {
    background: rgba(0, 0, 0, 0.10);
    opacity: 1;
}

.right-nav-container img {
    width: 24px;
    height: 24px;
    margin: 8px 10px;
}

.right-nav-container a {
    text-decoration: none;
    padding: 6px;
    display: block;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    color: #000;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    width: 100%;
}

.right-nav-container.current a {
    /*color: #A18A6B;*/
}

.divider {
    height: 1px;
    background-color: #ddd;
    margin: 8px 0;
    max-width: 250px;
}

/* Mobile Navigation */
.mobile-navigation {
    display: none; /* Hidden by default */
}

.mobile-nav-item {
    width: 100%;
    text-align: center;
}

.mobile-nav-item img {
    width: 24px;
    height: 24px;
    border-radius: 24px;
    opacity: 0.4;
}

.mobile-nav-item a {
    opacity: 0.4;
}

.mobile-nav-item.current img {
    opacity: 1;
}

.mobile-nav-item.current a {
    /*color: #A18A6B;*/
    opacity: 1;
}

/* Filters */
.filter-header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-right: 10px;
    gap: 8px;
    overflow: auto;
    scrollbar-width: none;
    /*height: 32px;*/
}

.filter-item a {
    text-decoration: none;
    color: black;
    text-wrap: nowrap;
}

.filter-item {
    border: 1px solid rgba(182, 182, 182, 0.30);
    align-items: center;
    justify-content: center;
    display: flex;
    border-radius: 8px;
    padding: 6px 8px;
}

.super-feeds {
    /*width: calc(100% - 240px);*/
    width: 100%;
    height: 100%;
    overflow: auto;
    /*padding: 12px 24px;*/
    padding: 0 8px 56px;
}

.mobile-search-bar{
    display: none;
}

/* Mobile Search Bar */
.mobile-search-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;;
    background: transparent;
    position: relative;
    width: 100%;
    /*padding: 10px;*/
    box-sizing: border-box;
}

.mobile-search-back {
    display: none;
}

.swipe-blink {
    font-size: 14px;
    font-weight: lighter;
    animation: blink 1s infinite;
    align-items: flex-end;
    align-content: flex-end;
    width: 90%;
    text-align: end;
}

/* Blinking animation */
@keyframes blink {
    0%, 100% {
        opacity: 1; /* Fully visible */
    }
    50% {
        opacity: 0.5; /* Partially transparent */
    }
}

/* Sliding arrow effect */
.swipe-blink .arrow {
    display: inline-block;
    animation: slideArrow 1s infinite; /* Sliding animation */
}

/* Keyframe for sliding arrows */
@keyframes slideArrow {
    0% {
        transform: translateX(0); /* Start position */
    }
    100% {
        transform: translateX(10px); /* End position (adjust for distance) */
    }
}

/* Hide the mobile search bar on desktops */
@media (min-width: 1025px) {
    .mobile-search-bar {
        display: none; /* Hide on desktop */
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .super-feeds {
        width: calc(100% - 76px);
        padding: 12px 8px;
    }
}

/* Search Icon Styling */
.mobile-search-bar .search-icon {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search-bar .search-icon img {
    width: 24px;
    height: 24px;
}

/* Hidden Input Initially */
.mobile-search-bar input {
    display: none; /* Hidden initially */
    width: 100%; /* Full width when visible */
    /*padding: 10px;*/
    border: none;
    border-radius: 0;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 1000; /* Ensure it is above other elements */
}

/* Expanded State */
.mobile-search-bar.expanded input {
    display: block; /* Show input when expanded */
}


/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 8px 16px;
        gap: 8px;
    }

    /*.search-bar {*/
    /*    display: none;*/
    /*    width: 100%;*/
    /*}*/

    /*.search-bar input {*/
    /*    width: 100%;*/
    /*}*/

    /*.mobile-search-bar{*/

    /*}*/

    /*.mobile-search-back {*/

    /*}*/

    /*.search-modal {*/
    /*    width: 100%;*/
    /*    left: 0;*/
    /*    height: calc(100% - 52px);*/
    /*    justify-content: space-between;*/
    /*    padding: 0 16px 16px;*/
    /*    align-items: flex-start;*/
    /*    border-radius: 0;*/
    /*    box-shadow: unset;*/
    /*    touch-action: none;  !* Prevents default touch scrolling behavior *!*/
    /*    user-select: none;   !* Prevents text selection *!*/
    /*    -webkit-user-drag: none; !* Prevents image dragging in some browsers *!*/
    /*}*/

    /*.search-modal-suggestion {*/
    /*    min-height: unset;*/
    /*    max-height: unset;*/
    /*    touch-action: none;  !* Prevents default touch scrolling behavior *!*/
    /*    user-select: none;   !* Prevents text selection *!*/
    /*    -webkit-user-drag: none; !* Prevents image dragging in some browsers *!*/
    /*}*/

    /*.login-button {*/
    /*    display: none;*/
    /*}*/

    /*.login-button button {*/
    /*    display: none;*/
    /*}*/

    /*.login-button span {*/
    /*    display: none;*/
    /*}*/

    .navigation {
        display: none; /* Hide navigation on small screens */
    }

    .mobile-navigation {
        display: flex; /* Show mobile navigation */
        position: fixed; /* Fix position at the bottom */
        bottom: 0;
        background: #fff; /* Background color */
        border-top: 1px solid #ddd; /* Top border for separation */
        justify-content: space-around; /* Even spacing for items */
        padding: 7px 0;
        z-index: 1;
        font-size: 12px;
        width: 100%;
    }

    .mobile-navigation a {
        text-decoration: none;
        color: #333; /* Default text color */
        font-size: 14px; /* Adjust font size for mobile */
        text-align: center; /* Center align items */
        display: block;
    }

    .mobile-navigation a:hover {
        color: #FF690F; /* Highlight effect on hover */
    }
    .content-container {
        flex-direction: column; /* Stack content on mobile */
    }

    .filter-item {

    }

    .right-nav-container {
        justify-content: flex-start; /* Align nav items on mobile */
    }

    .login-modal-bg {
        bottom: 0;
        top: unset;
        left: 0;
        width: 100%;
        border-radius: 12px 12px 0 0;

        /* Animation properties */
        animation: slide-in 400ms ease-out;
    }

    @keyframes slide-in {
        from {
            transform: translateY(100%); /* Start off-screen below */
            opacity: 1; /* Optional: Fade-in effect */
        }
        to {
            transform: translateY(0); /* Move to its original position */
            opacity: 1; /* Fully visible */
        }
    }

    .logout-modal {
        display: none !important;
    }

    .logout-confirm-box {
        top: unset;
        left: unset;
        bottom: 0;
        width: 100%;
        height: auto;
        border-radius: 12px 12px 0 0;

        /* Animation properties */
        animation: slide-in 400ms ease-out;

        touch-action: none;  /* Prevents default touch scrolling behavior */
        user-select: none;   /* Prevents text selection */
        -webkit-user-drag: none; /* Prevents image dragging in some browsers */
    }
}

@media (max-width: 1024px) {
    .search-bar {
        display: none;
        width: 100%;
    }

    .search-bar input {
        width: 100%;
    }

    .mobile-search-bar{

    }

    .mobile-search-back {

    }

    .search-modal {
        width: 100%;
        left: 0;
        height: calc(100% - 52px);
        justify-content: space-between;
        padding: 0 16px 16px;
        align-items: flex-start;
        border-radius: 0;
        box-shadow: unset;
        touch-action: none;  /* Prevents default touch scrolling behavior */
        user-select: none;   /* Prevents text selection */
        -webkit-user-drag: none; /* Prevents image dragging in some browsers */
    }

    .search-modal-suggestion {
        min-height: unset;
        max-height: unset;
        touch-action: none;  /* Prevents default touch scrolling behavior */
        user-select: none;   /* Prevents text selection */
        -webkit-user-drag: none; /* Prevents image dragging in some browsers */
    }

    .login-button {
        display: none;
    }

    .login-button button {
        display: none;
    }

    .login-button span {
        display: none;
    }

    .navigation {
        width: auto;
    }

    .right-nav-container .nav-item-a {
        display: none;
    }
}

@media (min-width: 1025px) {
    .super-feeds {
        width: calc(100% - 240px);
        padding: 12px 24px;
    }
}
