/* ==== CATEGORIES PAGE STYLES ==== */
.categories_dashboard {
    display: flex;
    justify-content: center;
    color: #fff;
    font-family: "Inter", sans-serif;
    width: 100%;
}

.categories_container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 24px;
    width: 100%;
    max-width: 1440px;
    align-items: start;
}

/* ==== LEFT SIDEBAR - CATEGORY NAVIGATION ==== */
.categories_sidebar {
    position: sticky;
    top: 88px; /* Adjusted for fixed header (68px header + 20px spacing) */
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-radius: 16px;
    max-height: calc(100vh - 108px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(240, 137, 11, 0.3) transparent;
}

.categories_sidebar::-webkit-scrollbar {
    width: 6px;
}

.categories_sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.categories_sidebar::-webkit-scrollbar-thumb {
    background: rgba(240, 137, 11, 0.3);
    border-radius: 3px;
}

.categories_sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(240, 137, 11, 0.5);
}

.category_nav_item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none !important;
    border-radius: 16px;
    border: 1px solid rgba(234, 236, 239, 0.08);
    mix-blend-mode: luminosity;
    background: var(--Graphite-Gray, #1e2329);
    mix-blend-mode: luminosity;
}

.category_nav_item:hover {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(234, 236, 239, 0.08);
}

.category_nav_item.active {
    background: linear-gradient(
        90deg,
        rgba(240, 137, 11, 0.15) 0%,
        rgba(255, 51, 88, 0.15) 100%
    );
    border: 1px solid rgba(240, 137, 11, 0.4);
}

.category_nav_icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(139, 148, 158, 0.1);
    transition: all 0.3s ease;
}

.category_nav_item.active .category_nav_icon {
    background: rgba(240, 137, 11, 0.2);
}

.category_nav_icon img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    filter: brightness(0.3);
}

.category_nav_item.active .category_nav_icon img {
    filter: brightness(1.2);
}

.category_nav_text {
    flex: 1;
    color: var(--Muted-Gray, #8b949e);
    font-family: Montserrat;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    transition: color 0.3s ease;
}

.category_nav_item.active .category_nav_text {
    color: var(--Silver-White, #eaecef);
}

/* ==== RIGHT CONTENT AREA ==== */
.categories_content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid rgba(234, 236, 239, 0.08);
    background: var(--Graphite-Gray, #1e2329);
}

/* Content Sections Toggle */
.category_content_section {
    display: none;
    opacity: 0;
    animation: fadeOut 0.3s ease;
}

.category_content_section.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.categories_title {
    color: var(--Silver-White, #eaecef);
    font-family: Montserrat;
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
    transition: opacity 0.3s ease;
}

.categories_intro {
    color: var(--Muted-Gray, #8b949e);
    font-family: Inter;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    margin-bottom: 32px;
}

.categories_section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.categories_section_title {
    color: var(--Silver-White, #eaecef);
    font-family: Montserrat;
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    margin: 0;
}

.categories_text {
    color: var(--Muted-Gray, #8b949e);
    font-family: Inter;
    font-size: 15px;
    font-weight: 400;
    line-height: 24px;
    margin: 8px 0;
}

.categories_list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.categories_list li {
    position: relative;
    padding-left: 24px;
    color: var(--Silver-White, #eaecef);
    font-family: Inter;
    font-size: 15px;
    font-weight: 400;
    line-height: 24px;
}

.categories_list li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--Binance-Yellow, #f0890b);
    font-weight: 700;
}

.categories_content a {
    color: var(--Binance-Yellow, #f0890b);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.categories_content a:hover {
    color: #ff9a1f;
}

/* ==== SEO CONTENT STYLING ==== */
.categories_seo_content {
    display: flex;
    flex-direction: column;
}

.categories_seo_content h2,
.categories_seo_content h3 {
    color: var(--Silver-White, #eaecef);
    font-family: Montserrat;
    font-size: 22px;
    font-weight: 700;
    line-height: 30px;
    margin: 24px 0 12px 0;
}

.categories_seo_content h3 {
    font-size: 20px;
    line-height: 28px;
}

.categories_seo_content p {
    color: var(--Muted-Gray, #8b949e);
    font-family: Inter;
    font-size: 15px;
    font-weight: 400;
    line-height: 24px;
    margin: 8px 0;
}

.categories_seo_content ul,
.categories_seo_content ol {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.categories_seo_content ul li {
    position: relative;
    padding-left: 24px;
    color: var(--Silver-White, #eaecef);
    font-family: Inter;
    font-size: 15px;
    font-weight: 400;
    line-height: 24px;
}

.categories_seo_content ul li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--Binance-Yellow, #f0890b);
    font-weight: 700;
}

.categories_seo_content ol li {
    position: relative;
    padding-left: 28px;
    color: var(--Silver-White, #eaecef);
    font-family: Inter;
    font-size: 15px;
    font-weight: 400;
    line-height: 24px;
    counter-increment: item;
}

.categories_seo_content ol {
    counter-reset: item;
}

.categories_seo_content ol li::before {
    content: counter(item) ".";
    position: absolute;
    left: 8px;
    color: var(--Binance-Yellow, #f0890b);
    font-weight: 700;
}

.categories_seo_content a {
    color: var(--Binance-Yellow, #f0890b);
    text-decoration: underline;
}

.categories_seo_content strong,
.categories_seo_content b {
    color: var(--Silver-White, #eaecef);
    font-weight: 700;
}

.categories_seo_content br {
    display: block;
    content: "";
    margin: 8px 0;
}

.categories_archive_block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    margin-top: 32px;
}

.categories_archive_btn {
    display: flex;
    height: 48px;
    padding: 0 32px;
    justify-content: center;
    align-items: center;
    border-radius: 32px;
    border: none;
    background: linear-gradient(90deg, #f0890b 0%, #ff3358 100%);
    color: #fff;
    font-family: Montserrat;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(240, 137, 11, 0.3);
    color: #fff !important;
}

.categories_archive_btn:hover {
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(240, 137, 11, 0.5);
    transition: all 0.3s ease;
}

.categories_archive_text {
    color: var(--Muted-Gray, #8b949e);
    font-family: Inter;
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
}

/* ==== RESPONSIVE STYLES ==== */

/* Large tablets and small desktops (1024px - 1199px) */
@media (max-width: 1199px) {
    .categories_container {
        grid-template-columns: 320px 1fr;
        gap: 20px;
    }

    .categories_sidebar {
        top: 84px; /* Adjusted for slightly smaller header spacing */
        max-height: calc(100vh - 104px);
    }

    .categories_content {
        padding: 28px;
    }

    .categories_title {
        font-size: 28px;
        line-height: 36px;
    }
}

/* Tablets (768px - 1023px) */
@media (max-width: 1023px) {
    .categories_container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .categories_sidebar {
        position: relative;
        top: 0;
        max-height: none;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 12px 16px;
        gap: 12px;
        flex-wrap: nowrap;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        cursor: grab;
        user-select: none;
    }

    .categories_sidebar::-webkit-scrollbar {
        display: none;
    }

    .categories_sidebar:active {
        cursor: grabbing;
    }

    .category_nav_item {
        flex-shrink: 0;
        min-width: 200px;
        white-space: nowrap;
    }

    .category_nav_item.active {
        background: linear-gradient(
            90deg,
            rgba(240, 137, 11, 0.15) 0%,
            rgba(255, 51, 88, 0.15) 100%
        ) !important;
        border: 1px solid rgba(240, 137, 11, 0.4);
    }

    .category_nav_item.active .category_nav_icon {
        background: rgba(240, 137, 11, 0.2);
    }

    .category_nav_item.active .category_nav_icon img {
        filter: brightness(1.2);
    }

    .category_nav_item.active .category_nav_text {
        color: var(--Silver-White, #eaecef);
    }

    .categories_content {
        padding: 24px;
    }

    .categories_title {
        font-size: 26px;
        line-height: 34px;
    }

    .categories_section_title {
        font-size: 22px;
        line-height: 30px;
    }
}

/* Mobile landscape and large phones (481px - 767px) */
@media (max-width: 767px) {
    .categories_dashboard {
        padding: 0 0;
    }

    .categories_sidebar {
        position: relative;
        top: 0;
        max-height: none;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 12px 16px;
        gap: 10px;
        flex-wrap: nowrap;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        border-radius: 0;
        border-left: none;
        border-right: none;
        cursor: grab;
        user-select: none;
    }

    .categories_sidebar::-webkit-scrollbar {
        display: none;
    }

    .categories_sidebar:active {
        cursor: grabbing;
    }

    .category_nav_item {
        flex-shrink: 0;
        min-width: 180px;
        padding: 10px 14px;
        white-space: nowrap;
    }

    .category_nav_item.active {
        background: linear-gradient(
            90deg,
            rgba(240, 137, 11, 0.15) 0%,
            rgba(255, 51, 88, 0.15) 100%
        );
        border: 1px solid rgba(240, 137, 11, 0.4);
    }

    .category_nav_item.active .category_nav_icon {
        background: rgba(240, 137, 11, 0.2);
    }

    .category_nav_item.active .category_nav_icon img {
        filter: brightness(1.2);
    }

    .category_nav_item.active .category_nav_text {
        color: var(--Silver-White, #eaecef);
    }

    .category_nav_icon {
        width: 36px;
        height: 36px;
    }

    .category_nav_icon img {
        width: 20px;
        height: 20px;
    }

    .category_nav_text {
        font-size: 13px;
        line-height: 18px;
    }

    .categories_content {
        padding: 20px;
        gap: 20px;
    }

    .categories_title {
        font-size: 24px;
        line-height: 32px;
    }

    .categories_intro {
        font-size: 15px;
        line-height: 22px;
        margin-bottom: 24px;
    }

    .categories_section {
        gap: 14px;
        margin-bottom: 24px;
    }

    .categories_section_title {
        font-size: 20px;
        line-height: 28px;
    }

    .categories_text {
        font-size: 14px;
        line-height: 22px;
    }

    .categories_list li {
        font-size: 14px;
        line-height: 22px;
    }
}

/* Mobile portrait (320px - 480px) */
@media (max-width: 480px) {
    .categories_dashboard {
        padding: 0 0;
    }

    .categories_sidebar {
        max-height: none;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 10px 12px;
        gap: 8px;
        flex-wrap: nowrap;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        border-radius: 0;
        border-left: none;
        border-right: none;
        cursor: grab;
        user-select: none;
    }

    .categories_sidebar::-webkit-scrollbar {
        display: none;
    }

    .categories_sidebar:active {
        cursor: grabbing;
    }

    .category_nav_item {
        flex-shrink: 0;
        min-width: 160px;
        padding: 8px 12px;
        gap: 10px;
        white-space: nowrap;
    }

    .category_nav_item.active {
        background: linear-gradient(
            90deg,
            rgba(240, 137, 11, 0.15) 0%,
            rgba(255, 51, 88, 0.15) 100%
        );
        border: 1px solid rgba(240, 137, 11, 0.4);
    }

    .category_nav_item.active .category_nav_icon {
        background: rgba(240, 137, 11, 0.2);
    }

    .category_nav_item.active .category_nav_icon img {
        filter: brightness(1.2);
    }

    .category_nav_item.active .category_nav_text {
        color: var(--Silver-White, #eaecef);
    }

    .category_nav_icon {
        width: 32px;
        height: 32px;
    }

    .category_nav_icon img {
        width: 18px;
        height: 18px;
    }

    .category_nav_text {
        font-size: 12px;
        line-height: 16px;
    }

    .categories_content {
        padding: 16px;
        gap: 16px;
    }

    .categories_title {
        font-size: 20px;
        line-height: 28px;
        margin-bottom: 12px;
    }

    .categories_intro {
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 20px;
    }

    .categories_section {
        gap: 12px;
        margin-bottom: 20px;
    }

    .categories_section_title {
        font-size: 18px;
        line-height: 26px;
    }

    .categories_text {
        font-size: 13px;
        line-height: 20px;
    }

    .categories_list {
        gap: 10px;
        margin: 12px 0;
    }

    .categories_list li {
        font-size: 13px;
        line-height: 20px;
        padding-left: 20px;
    }

    .categories_archive_block {
        padding: 16px;
        gap: 10px;
        margin-top: 24px;
    }

    .categories_archive_btn {
        height: 44px;
        padding: 0 24px;
        font-size: 13px;
    }

    .categories_archive_text {
        font-size: 12px;
        line-height: 18px;
    }

    .categories_seo_content h2,
    .categories_seo_content h3 {
        font-size: 18px;
        line-height: 26px;
    }

    .categories_seo_content p {
        font-size: 13px;
        line-height: 20px;
    }

    .categories_seo_content ul li,
    .categories_seo_content ol li {
        font-size: 13px;
        line-height: 20px;
    }
}

/* Extra small mobile (max 360px) */
@media (max-width: 360px) {
    .categories_sidebar {
        max-height: none;
        padding: 8px 10px;
        gap: 6px;
        cursor: grab;
        user-select: none;
    }

    .categories_sidebar::-webkit-scrollbar {
        display: none;
    }

    .categories_sidebar:active {
        cursor: grabbing;
    }

    .category_nav_item {
        min-width: 150px;
        padding: 7px 10px;
    }

    .category_nav_icon {
        width: 28px;
        height: 28px;
    }

    .category_nav_icon img {
        width: 16px;
        height: 16px;
    }

    .category_nav_text {
        font-size: 11px;
        line-height: 15px;
    }

    .categories_content {
        padding: 12px;
    }

    .categories_title {
        font-size: 18px;
        line-height: 26px;
    }

    .categories_section_title {
        font-size: 16px;
        line-height: 24px;
    }

    .categories_seo_content h2,
    .categories_seo_content h3 {
        font-size: 16px;
        line-height: 24px;
    }

    .categories_seo_content p {
        font-size: 12px;
        line-height: 18px;
    }

    .categories_seo_content ul li,
    .categories_seo_content ol li {
        font-size: 12px;
        line-height: 18px;
        padding-left: 20px;
    }
}
