/* Public Pages Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

[x-cloak] {
    display: none !important;
}

/* ==========================================================================
   Announcement Banner
   ========================================================================== */

.announcement-banner {
    width: 100%;
    padding: 0.75em 0;
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
    background-color: #b28bff;
    color: #ffffff;
}

.announcement-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.announcement-banner p {
    margin: 0;
}

.announcement-banner a {
    color: inherit;
    text-decoration: underline;
}

.announcement-banner a:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    .announcement-banner {
        font-size: 12px;
    }

    .announcement-banner-content {
        padding: 0 15px;
    }
}

/* ==========================================================================
   Base / Layout
   ========================================================================== */

body {
    margin: 0;
    padding-top: 100px;
    background-color: #181818;
    color: #e5e5e5;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.container {
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 15px;
}

@media (max-width: 1600px) {
    .container {
        max-width: 1200px;
    }
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: #000;
    height: 100px;
    overflow: hidden;
}

.navbar-inner {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    position: relative;
}

@media (max-width: 1280px) {
    .navbar-inner {
        padding-left: 30px;
        padding-right: 30px;
    }
}

.navbar-logo {
    height: 40px;
    width: auto;
}

.navbar-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-left: 3rem;
    gap: 2rem;
}

.navbar-links a {
    color: #e5e5e5;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.125rem;
}

.navbar-links a:hover {
    color: #b28bff;
}

/* Burger menu */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    margin-left: auto;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    order: 3;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: #b28bff;
}

/* Mobile menu sidebar */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 280px;
    height: 100%;
    background: #111;
    z-index: 950;
    padding: 100px 40px;
    visibility: hidden;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

body.mobile-menu-open .mobile-menu {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.mobile-menu-links a {
    color: #e5e5e5;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.35rem;
    transition: color 0.2s;
}

.mobile-menu-links a:hover {
    color: #b28bff;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 910;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease-in-out;
    cursor: pointer;
}

body.mobile-menu-open .mobile-menu-overlay {
    background-color: rgba(0, 0, 0, 0.5);
}

@media (max-width: 998px) {
    .navbar-links {
        display: none;
    }

    .burger-menu {
        display: flex;
        margin-left: 1rem;
        order: 3;
    }

    .navbar-user {
        order: 2;
    }

    .search-button {
        display: none;
    }
}

.search-button {
    margin-left: auto;
    order: 2;
}

.search-button .search-submit {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background-color: #b28bff;
    color: #fff;
    border: none;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease-in-out;
}

.search-button .search-submit svg {
    width: 22px;
    fill: #fff;
}

.search-button .search-submit span {
    transition: 0.3s;
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 10;
    transform-origin: center;
    transform: translate(-50%, -50%) scale(1);
}

.search-button .search-submit span:last-child {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
}

.search-button:hover .search-submit {
    background-color: #795cb4;
}

/* Active state: swap icons */
body.active-search .search-button .search-submit {
    background-color: transparent;
}

body.active-search .search-button .search-submit span:first-child {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
}

body.active-search .search-button .search-submit span:last-child {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

/* Search bar */
.navbar-search-bar {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-100%);
    width: calc(100% - 30px - 60px);
    background: #000;
    border: 1px solid #b28bff;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: visibility 0.3s ease-in-out, transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.navbar-search-bar.active {
    visibility: visible;
    transform: translateY(-50%);
    opacity: 1;
}

.navbar-search-bar form {
    display: flex;
    width: 100%;
    height: 60px;
    position: relative;
}

.navbar-search-bar input {
    width: 100%;
    height: 100%;
    display: block;
    box-sizing: border-box;
    margin: 0;
    padding: 0 100px 0 60px;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.navbar-search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.navbar-search-bar .navbar-search-icon {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.navbar-search-bar .navbar-search-icon svg {
    width: 22px;
    fill: #b28bff;
}

.navbar-search-bar form button {
    width: 60px;
    height: 60px;
    position: absolute;
    right: 0;
    top: 0;
    background: #b28bff;
    border: none;
    outline: none;
    cursor: pointer;
    transition: 0.3s;
}

.navbar-search-bar form button:hover {
    background: #795cb4;
}

.navbar-search-bar form button svg {
    width: 22px;
    fill: #fff;
}


.navbar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    text-decoration: none;
    order: 1;
}

.search-button:has(~ .navbar-user) {
    margin-left: 1.5rem;
}

.navbar-user-greeting {
    color: #e5e5e5;
    font-weight: bold;
    font-size: 0.95rem;
}

.navbar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.navbar-user-initial {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #b28bff;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 998px) {
    .navbar-user-greeting {
        display: none;
    }
}

.image-toggle-btn {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    padding: 0.25rem;
    background: transparent;
    border: none;
    color: #555555;
    cursor: pointer;
    transition: color 0.15s ease;
    z-index: 1000;
}

.image-toggle-btn:hover {
    color: #555555;
}

.image-toggle-btn svg {
    width: 0.75rem;
    height: 0.75rem;
    display: block;
}

.image-toggle-btn .icon-eye-off {
    display: none;
}

.image-toggle-btn.active .icon-eye {
    display: none;
}

.image-toggle-btn.active .icon-eye-off {
    display: block;
}

@media (max-width: 768px) {
    .image-toggle-btn {
        display: none;
    }
}

/* Hidden images state */
.images-hidden {
    display: none !important;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
    padding: 3rem 0;
}

section.section-dark {
    background-color: #0f0f0f;
}

section.section-light {
    background-color: transparent;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    padding: 6rem 0;
    text-align: center;
    background-color: #0f0f0f;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin: 0 0 1rem 0;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #a3a3a3;
    margin: 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0 0 2rem 0;
}

.section-subtitle {
    font-size: 1.75rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.category-subsection {
    margin-bottom: 6rem;
}

.section > .container {
    position: relative;
}

.section-link {
    position: absolute;
    top: 0;
    right: 0;
    padding: 1rem 4rem;
    font-size: 1.125rem;
    background-color: #b28bff;
    color: white;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.section-link:hover {
    background-color: #7e22ce;
}

@media (max-width: 1600px) {
    .section-link {
        padding: 0.625rem 1.875rem;
    }
}

@media (max-width: 480px) {
    .section-link {
        position: static;
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        margin-top: 2rem;
    }
}

.section-link-text {
    font-size: 1rem;
    color: #a3a3a3;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

.section-link-text:hover {
    color: white;
}

/* ==========================================================================
   Grids
   ========================================================================== */

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1.5rem;
    row-gap: 2.5rem;
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.creators-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .creators-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Post Card
   ========================================================================== */

.post-card {
    display: block;
    text-decoration: none;
}

.post-card-image {
    aspect-ratio: 16 / 9;
    background-color: #262626;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-content {
    margin-top: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.post-card-avatar {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background-color: #262626;
}

.post-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-title {
    font-size: 1.25rem;
    color: white;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    transition: color 0.15s ease;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card:hover .post-card-title {
    color: #b28bff;
}

.post-card-category {
    font-size: 1rem;
    color: #a3a3a3;
}

/* ==========================================================================
   Category Card
   ========================================================================== */

.category-card {
    display: block;
    text-decoration: none;
}

.category-card-image {
    height: 280px;
    background-color: #262626;
    overflow: hidden;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-card-image img {
    transform: scale(1.05);
}

.category-card-content {
    margin-top: 0.75rem;
}

.category-card-title {
    font-size: 1.25rem;
    color: white;
    font-weight: 600;
    margin: 0;
    transition: color 0.15s ease;
}

.category-card:hover .category-card-title {
    color: #a3a3a3;
}

@media (max-width: 480px) {
    .category-card-image {
        height: 220px;
    }
}

/* ==========================================================================
   Creator Card
   ========================================================================== */

.creator-card {
    display: flex;
    align-items: stretch;
    gap: 1.25rem;
    background-color: #262626;
    padding: 1.5rem;
    border: 2px solid transparent;
    text-decoration: none;
    transition: border-color 0.3s ease;
}

.creator-card:hover {
    border-color: #a855f7;
}

.creator-card-avatar {
    flex-shrink: 0;
}

.creator-card-avatar img {
    width: 180px;
    height: 180px;
    object-fit: cover;
}

.creator-card-avatar-placeholder {
    width: 180px;
    height: 180px;
    background-color: #262626;
    display: flex;
    align-items: center;
    justify-content: center;
}

.creator-card-avatar-placeholder span {
    font-size: 3rem;
    color: #a3a3a3;
}

.creator-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.25rem 0;
}

.creator-card-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin: 0;
    transition: color 0.15s ease;
}

.creator-card:hover .creator-card-name {
    color: #e5e5e5;
}

.creator-card-bio {
    margin-top: 0.75rem;
    font-size: 1.05rem;
    line-height: 1.25;
    color: #a3a3a3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.creator-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.75rem;
}

.creator-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.creator-card-tag {
    padding: 0.4rem 0.65rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #a3a3a3;
    background-color: #262626;
}

.creator-card-downloads {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #a3a3a3;
    flex-shrink: 0;
}

.creator-card-downloads svg {
    width: 1rem;
    height: 1rem;
}

@media (max-width: 1600px) {
    .creator-card-avatar img {
        width: 120px;
        height: 129px;
    }

    .creator-card-avatar-placeholder {
        width: 120px;
        height: 129px;
    }

    .creator-card-bio {
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 480px) {
    .creator-card {
        flex-direction: column;
        background: none;
        padding: 0;
    }

    .creator-card-avatar img {
        width: 100%;
        height: 160px;
    }

    .creator-card-avatar-placeholder {
        width: 100%;
        height: 160px;
    }

    .creator-card-body {
        width: 100%;
        gap: 0.625rem;
    }

    .creator-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .creator-card-tags {
        width: 100%;
    }
}

/* ==========================================================================
   Footer Nav
   ========================================================================== */

.footer-nav {
    background-color: #0f0f0f;
    padding: 4rem 0;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin: 0 0 1rem 0;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #a3a3a3;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-legal {
    background-color: #181818;
    padding: 2rem 0;
}

.footer-legal .container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-copyright {
    color: #a3a3a3;
    font-size: 0.875rem;
}

.footer-disclaimer {
    color: #a3a3a3;
    font-size: 0.875rem;
}

.footer-terms {
    color: #a3a3a3;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-terms:hover {
    color: white;
}

@media (max-width: 1600px) {
    .footer-legal {
        padding: 1.75rem 0;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-legal .container {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Article Content
   ========================================================================== */

.content-article {
    font-family: 'Montserrat', sans-serif;
}

.content-article > * {
    width: 100%;
}

.content-article > .part-width {
    margin-bottom: 30px;
}

.article-title {
    width: 100%;
    z-index: 10;
    color: #fff;
    margin-bottom: 0.25em;
    font-size: 60px;
    line-height: 80px;
    font-weight: 700;
    cursor: default;
}

.tags-display {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.tags-display .tag-item {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    padding: 4px 0;
    display: inline-block;
    transition: color 0.3s ease-in-out;
}

.tags-display .tag-item:hover {
    color: #b28bff;
}

.article-updated-date {
    display: block;
    color: #909090;
    font-size: 18px;
    font-weight: 500;
    line-height: 30px;
    margin-bottom: 30px;
}

/* Tags Index Page */

.tags-index {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.tag-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tag-group.level-0 > .tag-group-title {
    font-size: 28px;
    font-weight: 700;
}

.tag-group.level-1 > .tag-group-title {
    font-size: 20px;
    font-weight: 600;
}

.tag-group.level-2 > .tag-group-title {
    font-size: 16px;
    font-weight: 600;
}

.tag-group-title {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.tag-group-title:hover {
    color: #b28bff;
}

.tag-group-children {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-group-children .tag-group {
    width: 100%;
    margin-top: 10px;
}

.tag-index-item {
    font-size: 17px;
    font-weight: 500;
    color: #b28bff;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease-in-out;
}

.tag-index-item:hover {
    color: #fff;
}

.tag-index-item .tag-count {
    font-size: 13px;
    color: #888;
    text-transform: none;
}

.article_content {
    padding: 20px 0;
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    line-height: 22px;
}

.article_content hr {
    background: #262626;
    margin-bottom: 25px;
    border: none;
    height: 1px;
}

.article_content blockquote,
.article_content q {
    padding: 20px;
    border: 1px solid #262626;
    border-left: 2px solid #fff;
}

.article_content blockquote p,
.article_content q p {
    padding-bottom: 0;
}

.article_content .alignright {
    float: right;
    margin-left: 30px;
}

.article_content .alignleft {
    float: left;
    margin-right: 30px;
}

.article_content h1,
.article_content h2,
.article_content h3 {
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
}

.article_content h4,
.article_content h5,
.article_content h6 {
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
}

.article_content h1 {
    font-size: 38px;
    line-height: 48px;
}

.article_content h2 {
    font-size: 32px;
    line-height: 42px;
}

.article_content h3 {
    font-size: 28px;
    line-height: 38px;
}

.article_content h4 {
    font-size: 24px;
    line-height: 34px;
}

.article_content h5 {
    font-size: 18px;
    line-height: 28px;
}

.article_content h6 {
    font-size: 15px;
    line-height: 25px;
}

.article_content p {
    margin: 0;
    padding-bottom: 15px;
    font-size: 16px;
    line-height: 25px;
    color: #fff;
}

.article_content a {
    text-decoration: none;
    color: #B28BFF;
}

.article_content ul,
.article_content ol {
    padding: 30px 0;
    margin: 0;
    list-style: none;
    grid-column-gap: 20px;
    align-items: self-start;
    display: grid;
    width: 100%;
}

.article_content ul li,
.article_content ol li {
    position: relative;
    padding-left: 30px;
    font-size: 16px;
    line-height: 25px;
    color: #fff;
}

.article_content ul li::after {
    content: ' ';
    position: absolute;
    left: 0;
    top: 4px;
    width: 15px;
    height: 15px;
    background: #B28BFF;
}

.article_content ol {
    counter-reset: item;
}

.article_content ol li {
    counter-increment: item;
}

.article_content ol li::after {
    content: counter(item) '.';
    background: transparent;
    color: #B28BFF;
    top: 0;
}

.article_content table {
    overflow: auto;
    display: block;
    height: auto !important;
    width: 100% !important;
    border: 1px solid transparent;
}

.article_content table tr td {
    padding: 10px 5px;
    border-color: transparent;
    vertical-align: top;
}

.article_content table tr td:last-child {
    border-right: none;
}

.article_content table tr:last-child {
    border-bottom: none;
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery {
    margin-top: 2rem;
}

/* Main carousel */
.main-carousel {
    height: 60vh;
    max-height: 600px;
    margin-bottom: 1rem;
    overflow: hidden;
    user-select: none;
}

.main-carousel .flickity-viewport {
    height: 100%;
}

.main-carousel .carousel-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.main-carousel .carousel-item img,
.main-carousel .carousel-item video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.main-carousel .video-drag-overlay {
    position: absolute;
    inset: 0;
    bottom: 60px;
    z-index: 1;
}

/* Preview carousel */
.preview-carousel {
    overflow: hidden;
    user-select: none;
}

.preview-carousel .carousel-item {
    width: 100px;
    height: 70px;
    margin-right: 8px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.preview-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 640px) {
    .preview-carousel .carousel-item {
        width: 120px;
        height: 70px;
    }
}

@media (min-width: 1024px) {
    .preview-carousel .carousel-item {
        width: 220px;
        height: 130px;
    }
}

@media (min-width: 1280px) {
    .preview-carousel .carousel-item {
        width: 290px;
        height: 170px;
    }
}

/* Video thumbnail placeholder */
.video-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background-color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
}

/* Gallery play button */
.gallery .play-button {
    position: absolute;
    cursor: pointer;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    border-radius: 9999px;
    background: rgb(79, 70, 229);
    height: 80px;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.gallery .play-button:hover {
    background: rgb(67, 56, 202);
}

.gallery .play-button svg {
    fill: white;
    stroke: none;
    height: 36px;
    width: 36px;
    margin-left: 4px;
}

/* Thumbnail play button */
.gallery .thumb-play-button {
    height: 60px;
    width: 60px;
    pointer-events: none;
}

.gallery .thumb-play-button svg {
    height: 30px;
    width: 30px;
}

/* Tablet size */
@media (max-width: 1024px) {
    .gallery .play-button {
        height: 60px;
        width: 60px;
    }

    .gallery .play-button svg {
        height: 28px;
        width: 28px;
        margin-left: 3px;
    }

    .gallery .thumb-play-button {
        height: 50px;
        width: 50px;
    }

    .gallery .thumb-play-button svg {
        height: 24px;
        width: 24px;
        margin-left: 2px;
    }
}

/* Mobile size */
@media (max-width: 768px) {
    .gallery .play-button {
        height: 50px;
        width: 50px;
    }

    .gallery .play-button svg {
        height: 24px;
        width: 24px;
        margin-left: 2px;
    }

    .gallery .thumb-play-button {
        height: 40px;
        width: 40px;
    }

    .gallery .thumb-play-button svg {
        height: 20px;
        width: 20px;
        margin-left: 2px;
    }
}

/* ==========================================================================
   Downloads Section
   ========================================================================== */

.downloads-section {
    margin-top: 3rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 1.5rem 0;
}

.downloads-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.file-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: #202020;
    border: 1px solid #2a2a2a;
    transition: border-color 0.15s ease;
}

.file-card:hover {
    border-color: #3a3a3a;
}

.file-card-info {
    flex: 1;
    min-width: 0;
    margin-right: 1rem;
}

.file-card-name {
    color: white;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.download-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #b28bff;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.download-btn:hover {
    background-color: #9b6ff5;
}

.download-btn svg {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

/* Breadcrumbs */
.breadcrumbs {
    padding-bottom: 1.25rem;
}

.breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    color: #666;
}

.breadcrumbs li:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid #555;
    border-bottom: 1.5px solid #555;
    transform: rotate(-45deg);
    margin: 0 0.75rem;
}

.breadcrumbs a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: #fff;
}

.breadcrumbs span[aria-current="page"] {
    color: #b28bff;
}

/* About Page */
.about-content h1 {
    font-size: 1.75rem;
}

.about-content p {
    font-size: 1.1rem;
}

.about-divider {
    border: none;
    border-top: 2px solid #b28bff;
    margin-top: 2rem;
}

.about-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (min-width: 768px) {
    .about-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.about-category-card {
    display: flex;
    align-items: stretch;
    text-decoration: none;
    background-color: #454545;
    overflow: hidden;
    padding: 1.5rem;
    gap: 1.5rem;
}

.about-category-card-image {
    width: 40%;
    aspect-ratio: 1;
    flex-shrink: 0;
    background-color: #262626;
    overflow: hidden;
}

.about-category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about-category-card:hover .about-category-card-image img {
    transform: scale(1.05);
}

.about-category-card-content {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.about-category-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.75rem;
    transition: color 0.15s ease;
}

.about-category-card:hover .about-category-card-title {
    color: #a3a3a3;
}

.about-category-card-description {
    font-size: 1rem;
    color: white;
    margin: 0;
    line-height: 1.5;
}

/* About FAQ */
.about-faq-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 1.5rem;
    text-transform: uppercase;
}

.about-faq {
    display: flex;
    flex-direction: column;
}

.about-faq-item {
    border-top: 2px solid #b28bff;
}

.about-faq-item:last-child {
    border-bottom: 2px solid #b28bff;
}

.about-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    list-style: none;
}

.about-faq-question::-webkit-details-marker {
    display: none;
}

.about-faq-question:hover {
    color: #b28bff;
}

.about-faq-toggle {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.about-faq-toggle::before,
.about-faq-toggle::after {
    content: '';
    position: absolute;
    background-color: #b28bff;
    transition: transform 0.2s ease;
}

.about-faq-toggle::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.about-faq-toggle::after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

details[open] .about-faq-toggle::after {
    transform: translateX(-50%) rotate(90deg);
}

.about-faq-answer {
    overflow: hidden;
}

.about-faq-answer p {
    font-size: 1rem;
    color: white;
    margin: 0;
    padding: 0 0 1.25rem;
    line-height: 1.6;
}

.about-faq-answer a {
    color: #b28bff;
    text-decoration: none;
}

.about-faq-answer a:hover {
    text-decoration: underline;
}

/* Contact Page */
.contact-box {
    background-color: #000;
    padding: 40px;
    align-self: start;
}

.contact-box h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 1rem;
    margin-top: 1rem;
}

.contact-box p {
    font-size: 1.5rem;
    margin: 0 0 1.5rem;
}

.contact-box p:last-child {
    font-size: 1rem;
    font-weight: bold;
}

.contact-box a {
    color: #b28bff;
    font-weight: 700;
}

.contact-box + div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Terms Page */

.terms-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
}

.terms-content .terms-updated {
    color: #909090;
    font-size: 1rem;
    margin: 0 0 2rem;
}

.terms-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 2rem 0 1rem;
}

.terms-content p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #e5e5e5;
    margin: 0 0 1rem;
}

.terms-content ul {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}

.terms-content li {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #e5e5e5;
    margin-bottom: 0.5rem;
}

.terms-content a {
    color: #b28bff;
}

/* Mod Installation Page */
.mod-install-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.mod-install-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.mod-install-tldr {
    text-align: center;
}

.mod-install-tldr p:first-child {
    font-size: 1.25rem;
    color: #fff;
    margin: 0 0 0.5rem;
}

.mod-install-tldr p:last-child {
    font-size: 0.875rem;
    color: #a3a3a3;
    margin: 0;
    line-height: 1.8;
}

.mod-install-step {
    align-items: center;
}

.mod-install-step img {
    width: 100%;
    height: auto;
    display: block;
}

.mod-install-step h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 1.25rem;
    text-decoration: underline;
}

.mod-install-step p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e5e5e5;
    margin: 0 0 1.5rem;
}

.mod-install-step ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mod-install-step li {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e5e5e5;
    padding-left: 1.25rem;
    position: relative;
}

.mod-install-step li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: #e5e5e5;
}

/* Mod Install Banner (on post pages) */
.mod-install-banner {
    display: block;
    width: 100%;
    margin-bottom: 0.75rem;
    padding: 1rem;
    background-color: #b28bff;
    color: #fff;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.15s ease;
}

.mod-install-banner:hover {
    background-color: #795cb4;
}

.mod-install-banner + .downloads-section {
    margin-top: 0;
}

.post-creator-section {
    margin-top: 3rem;
}

/* Two Column Layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .two-col {
        grid-template-columns: 1fr 1fr;
    }
}

/* Page Header */
.page-header {
    padding: 3rem 0;
}

/* Search page bar */
.search-page-bar {
    position: relative;
    margin-top: 1.5rem;
    border: 1px solid #b28bff;
    background: #000;
}

.search-page-bar form {
    display: flex;
    width: 100%;
    height: 60px;
}

.search-page-bar input {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0 100px 0 60px;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.search-page-bar input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-page-bar-icon {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    pointer-events: none;
}

.search-page-bar-icon svg {
    width: 22px;
    fill: #b28bff;
}

.search-page-bar form button {
    width: 60px;
    height: 60px;
    position: absolute;
    right: 0;
    top: 0;
    background: #b28bff;
    border: none;
    outline: none;
    cursor: pointer;
    transition: 0.3s;
}

.search-page-bar form button:hover {
    background: #795cb4;
}

.search-page-bar form button svg {
    width: 22px;
    fill: #fff;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 3rem;
    border-radius: 0;
    padding: 0 0.75rem;
    background-color: #262626;
    color: #a3a3a3;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: bold;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.pagination-link svg {
    width: 1rem;
    height: 1rem;
}

.pagination-link:hover:not(.disabled):not(.active) {
    background-color: #363636;
    color: white;
}

.pagination-link.active {
    background-color: #a855f7;
    color: white;
}

.pagination-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Announcements List */

.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background-color: #2a2a2a;
    border: 1px solid #2a2a2a;
}

.announcement-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background-color: #181818;
    color: #e5e5e5;
    text-decoration: none;
    transition: background-color 0.15s;
}

.announcement-item:hover {
    background-color: #222;
}

.announcement-item-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.announcement-item-date {
    font-size: 0.8125rem;
    color: #a3a3a3;
    white-space: nowrap;
    margin-left: 2rem;
}

.article-meta {
    color: #a3a3a3;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    color: #a3a3a3;
    padding: 4rem 0;
    font-size: 1.125rem;
}

/* Sort Controls */
.page-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sort-container {
    display: flex;
    align-items: center;
}

.custom-dropdown {
    position: relative;
    width: 250px;
}

.custom-dropdown .dropdown-trigger {
    background: none;
    padding: 12px 20px;
    color: #fff;
    border: 2px solid #b28bff;
    font-size: 1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    box-sizing: border-box;
}

.custom-dropdown .dropdown-trigger:hover {
    opacity: 0.8;
}

.custom-dropdown .dropdown-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    background: black;
    border: 2px solid #b28bff;
    border-top: none;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.custom-dropdown .dropdown-list li {
    cursor: pointer;
    padding: 12px 20px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: black;
    border-bottom: 1px solid #333;
}

.custom-dropdown .dropdown-list li:hover {
    background: #333;
}

.custom-dropdown .dropdown-list li.selected {
    background: #444;
}

.custom-dropdown .dropdown-list li:last-child {
    border-bottom: none;
}

/* ==========================================================================
   Age Gate Modal
   ========================================================================== */

.overlay-modal_agreement {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    z-index: 900;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

#modal_agreement {
    display: none;
    overflow: auto;
    transition: opacity 0.3s ease-in-out;
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 999;
    width: 100%;
    max-width: 1060px;
    transform: translate(-50%, -50%);
    background: #000;
    filter: drop-shadow(0px 0px 40px #b28bff);
    flex-flow: wrap row;
    justify-content: flex-start;
    align-content: center;
    align-items: center;
}

#modal_agreement > * {
    flex: 1 1;
    color: #fff;
}

#modal_agreement .column-content {
    display: flex;
    flex-flow: wrap column;
    align-items: flex-start;
    align-content: flex-start;
    gap: 20px;
    padding: 50px 70px;
}

#modal_agreement .column-content h1, h2 {
    font-weight: 700;
    margin: 0;
}

#modal_agreement .column-content .description p {
    color: #a3a3a3;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

#modal_agreement #action-check-agree {
    background-color: #b28bff;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 15px 70px;
    border: none;
    cursor: pointer;
    min-width: 240px;
    text-align: center;
    transition: background-color 0.2s ease-in-out;
}

#modal_agreement #action-check-agree:hover {
    background-color: #795cb4;
}

#modal_agreement .column-banner {
    width: 100%;
    max-width: 435px;
}

#modal_agreement .column-banner img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: cover;
}

@media (max-width: 768px) {
    #modal_agreement {
        max-width: 320px;
        max-height: 95%;
        flex-flow: wrap row-reverse;
        align-content: flex-start;
        align-items: flex-start;
        gap: 0;
    }

    #modal_agreement > * {
        flex: 100%;
    }

    #modal_agreement .column-content {
        order: 2;
        width: 100%;
        padding: 30px;
    }

    #modal_agreement .column-banner {
        order: 1;
        width: 100%;
        max-width: 100%;
    }
}

/* ==========================================================================
   Floating Edit Post Button
   ========================================================================== */
.edit-post-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    background-color: #b28bff;
    color: #ffffff;
    border: none;
    border-radius: 0;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s, box-shadow 0.2s;
    gap: 0.25rem;
}

.edit-post-fab:hover {
    background-color: #9b6ff5;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.edit-post-fab svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2;
}

.edit-post-fab span {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}
