
/* =========================================================
   قصه‌خانه - Modern Home Style
   نسخه نهایی
   - حذف کامل بخش دایره‌های داستان
   - حذف کامل ذوزنقه‌ها
   - کارت‌های داستان شیشه‌ای و مستطیلی
   - ریسپانسیو کامل
========================================================= */

:root {
    --primary: #6d5dfc;
    --primary-dark: #5144d8;
    --secondary: #ec4899;
    --blue: #3b82f6;
    --orange: #f59e0b;

    --dark: #171526;
    --text: #252238;
    --muted: #77738a;

    --surface: #ffffff;
    --soft: #f7f6fc;
    --border: #ebe9f3;

    --glass: rgba(255, 255, 255, .72);
    --glass-strong: rgba(255, 255, 255, .86);

    --shadow: 0 18px 55px rgba(37, 30, 72, .08);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Vazirmatn", sans-serif;
    background: #fff;
    color: var(--text);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    position: relative;
    z-index: 2;
}


/* =========================================================
   NAVBAR
========================================================= */

.main-navbar {
    min-height: 82px;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(235, 233, 243, .8);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 21px;
    background: linear-gradient(135deg, var(--primary), #9a8cff);
    box-shadow: 0 10px 25px rgba(109, 93, 252, .25);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 19px;
}

.brand-text small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
    margin-top: 4px;
}

.main-menu {
    gap: 5px;
}

.main-menu .nav-link {
    color: #666176;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 14px !important;
    border-radius: 12px;
    transition: .25s ease;
}

.main-menu .nav-link:hover,
.main-menu .nav-link.active {
    color: var(--primary);
    background: #f1efff;
}

.navbar-toggler {
    border: 0;
    box-shadow: none !important;
    color: var(--dark);
    font-size: 25px;
}

.login-button,
.user-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 13px;
    padding: 11px 17px;
    font-size: 13px;
    font-weight: 700;
}

.login-button {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 9px 22px rgba(109, 93, 252, .22);
    transition: .25s ease;
}

.login-button:hover {
    color: #fff;
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.user-button {
    background: #f5f3ff;
    color: var(--primary);
}

.user-icon {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #fff;
}

.user-menu {
    min-width: 190px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 8px;
    box-shadow: var(--shadow);
}

.user-menu .dropdown-item {
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
}

.user-menu .dropdown-item i {
    margin-left: 8px;
}

.logout-item {
    color: #e05252 !important;
}


/* =========================================================
   HERO
========================================================= */

.hero-new {
    position: relative;
    min-height: 610px;
    display: flex;
    align-items: center;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 75% 30%,
            rgba(109, 93, 252, .11),
            transparent 28%
        ),
        radial-gradient(
            circle at 10% 70%,
            rgba(236, 72, 153, .07),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #fbfaff 0%,
            #f6f4ff 100%
        );
}

.hero-row {
    min-height: 610px;
}

.hero-decoration {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    opacity: .55;
    pointer-events: none;
}

.hero-decoration-one {
    width: 330px;
    height: 330px;
    left: -160px;
    top: 80px;
    border: 1px solid rgba(109, 93, 252, .18);
}

.hero-decoration-two {
    width: 180px;
    height: 180px;
    right: 35%;
    bottom: -90px;
    border: 1px solid rgba(236, 72, 153, .15);
}

.hero-label,
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    background: #efedff;
    border-radius: 999px;
    padding: 7px 12px;
}

.hero-label span {
    font-size: 15px;
}

.hero-new h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.18;
    letter-spacing: -1.8px;
    font-weight: 900;
    color: var(--dark);
}

.hero-new h1 span {
    background: linear-gradient(
        90deg,
        var(--primary),
        #a45cf4,
        var(--secondary)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    max-width: 650px;
    color: #716d7e;
    font-size: 16px;
    line-height: 2.1;
    margin-bottom: 28px;
}

.hero-search {
    max-width: 620px;
    height: 64px;
    display: flex;
    align-items: center;
    padding: 7px;

    background: rgba(255,255,255,.9);
    border: 1px solid rgba(231,228,241,.9);
    border-radius: 18px;

    box-shadow:
        0 16px 45px rgba(63,51,118,.08),
        inset 0 1px 0 rgba(255,255,255,.9);
}

.search-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: var(--primary);
    font-size: 19px;
}

.hero-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    background: transparent;
}

.hero-search input::placeholder {
    color: #aaa6b7;
}

.hero-search button {
    height: 50px;
    border: 0;
    border-radius: 13px;
    padding: 0 25px;
    color: #fff;
    background: var(--primary);
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: .25s ease;
}

.hero-search button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.hero-links {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 18px;
}

.hero-links a {
    color: #625d70;
    font-size: 13px;
    font-weight: 700;
    transition: .2s ease;
}

.hero-links a:hover {
    color: var(--primary);
}

.hero-links i {
    margin-left: 6px;
}


/* =========================================================
   HERO VISUAL
========================================================= */

.hero-visual {
    width: min(100%, 500px);
    height: 500px;
    position: relative;
    margin: auto;
    display: grid;
    place-items: center;
}

.hero-image-wrap {
    width: min(100%, 440px);
    height: 450px;
    position: relative;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;

    border-radius:0px;

    box-shadow:
        0 28px 70px rgba(37,30,72,.18);

    transform: rotate(-1.5deg);

    transition:
        transform .6s ease,
        box-shadow .6s ease;
}

.hero-image-wrap:hover .hero-image {
    transform: rotate(0) scale(1.025);

    box-shadow:
        0 34px 80px rgba(37,30,72,.23);
}

.hero-floating-icon {
    position: absolute;
    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    border-radius: 18px;
    color: #fff;
    font-size: 22px;

    box-shadow:
        0 16px 35px rgba(37,30,72,.18);

    animation: heroFloat 4.5s ease-in-out infinite;
    z-index: 3;
}

.hero-icon-one {
    right: -18px;
    top: 55px;
    background: linear-gradient(
        135deg,
        #6d5dfc,
        #9a8cff
    );
}

.hero-icon-two {
    left: -16px;
    bottom: 85px;
    background: linear-gradient(
        135deg,
        #e74791,
        #fb7185
    );
    animation-delay: -1.5s;
}

.hero-icon-three {
    right: 34px;
    bottom: -18px;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: linear-gradient(
        135deg,
        #e99a20,
        #f5c65e
    );
    animation-delay: -3s;
}

@keyframes heroFloat {
    0%,100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-9px) rotate(2deg);
    }
}

.visual-glow {
    width: 300px;
    height: 300px;
    position: absolute;
    border-radius: 50%;
    background: rgba(109,93,252,.18);
    filter: blur(45px);
}

.main-book {
    width: 270px;
    height: 360px;
    padding: 12px;
    position: relative;
    z-index: 2;

    transform: rotate(-4deg);

    border-radius: 8px 22px 22px 8px;

    background:
        linear-gradient(
            135deg,
            #5748d8,
            #8b78ff
        );

    box-shadow:
        25px 30px 60px rgba(47,39,111,.25);
}

.book-inner {
    height: 100%;

    border: 1px solid rgba(255,255,255,.3);
    border-radius: 4px 15px 15px 4px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    color: #fff;
    text-align: center;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(255,255,255,.12),
            transparent 25%
        ),
        linear-gradient(
            145deg,
            rgba(255,255,255,.08),
            rgba(0,0,0,.08)
        );
}

.book-decoration {
    font-size: 25px;
    margin-bottom: 28px;
}

.book-title {
    font-size: 30px;
    font-weight: 900;
}

.book-line {
    width: 55px;
    height: 2px;
    margin: 15px 0;
    background: rgba(255,255,255,.65);
}

.book-subtitle {
    font-size: 13px;
    line-height: 1.9;
    opacity: .9;
}

.book-symbol {
    margin-top: 35px;
    font-size: 27px;
    opacity: .9;
}

.floating-card {
    position: absolute;
    z-index: 4;

    display: flex;
    align-items: center;
    gap: 11px;

    min-width: 175px;
    padding: 13px 15px;

    background: rgba(255,255,255,.93);
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 17px;

    box-shadow:
        0 18px 40px rgba(38,30,78,.13);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.floating-card > i {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;

    border-radius: 12px;
    color: #fff;

    background:
        linear-gradient(
            135deg,
            #f59e0b,
            #fb7185
        );
}

.floating-card strong,
.floating-card small {
    display: block;
}

.floating-card strong {
    font-size: 12px;
}

.floating-card small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
}

.card-top {
    top: 48px;
    right: 8px;
}

.card-bottom {
    bottom: 55px;
    left: 0;
}

.mini-avatar {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;

    border-radius: 12px;
    color: #fff;

    background:
        linear-gradient(
            135deg,
            #ec4899,
            #a855f7
        );
}

.visual-dot {
    position: absolute;
    border-radius: 50%;
}

.dot-one {
    width: 11px;
    height: 11px;
    right: 12%;
    bottom: 19%;
    background: var(--secondary);
}

.dot-two {
    width: 17px;
    height: 17px;
    left: 13%;
    top: 18%;
    background: var(--primary);
}

.dot-three {
    width: 8px;
    height: 8px;
    left: 20%;
    bottom: 14%;
    background: var(--orange);
}


/* =========================================================
   QUICK FEATURES
========================================================= */

.quick-section {
    position: relative;
    z-index: 5;
    margin-top: -35px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 13px;
}

.quick-item {
    min-height: 105px;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;

    gap: 13px;
    padding: 16px;

    border: 1px solid rgba(235,233,243,.75);
    border-radius: 20px;

    background: rgba(255,255,255,.78);

    box-shadow:
        0 15px 40px rgba(35,29,67,.07),
        inset 0 1px 0 rgba(255,255,255,.8);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    transition: .25s ease;
}

.quick-item:hover {
    transform: translateY(-6px);

    box-shadow:
        0 22px 50px rgba(35,29,67,.12);
}

.quick-item strong,
.quick-item span {
    display: block;
}

.quick-item strong {
    font-size: 13px;
}

.quick-item span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.7;
}

.quick-item > i:last-child {
    color: #aaa6b7;
    font-size: 14px;
    transition: .2s ease;
}

.quick-item:hover > i:last-child {
    color: var(--primary);
    transform: translateX(-4px);
}

.quick-icon {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    border-radius: 14px;
    font-size: 19px;
}

.quick-icon.purple {
    color: #6858f5;
    background: #eeecff;
}

.quick-icon.pink {
    color: #e94691;
    background: #ffeaf5;
}

.quick-icon.blue {
    color: #347be8;
    background: #e8f2ff;
}

.quick-icon.orange {
    color: #e9920c;
    background: #fff3dd;
}


/* =========================================================
   SECTIONS
========================================================= */

.content-section,
.featured-section,
.community-section {
    padding: 105px 0 30px;
}

.featured-section {
    padding-bottom: 105px;
    background: #f8f7fc;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 20px;
    margin-bottom: 35px;
}

.section-heading h2 {
    margin: 12px 0 7px;

    font-size: 28px;
    font-weight: 900;

    color: var(--dark);
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--primary);
    font-size: 12px;
    font-weight: 800;

    white-space: nowrap;
}

.view-all i {
    transition: .2s ease;
}

.view-all:hover i {
    transform: translateX(-4px);
}

.centered-heading {
    text-align: center;
    justify-content: center;
    align-items: center;
}

.centered-heading .section-label {
    margin: auto;
}

.centered-heading h2 {
    margin-top: 14px;
}


/* =========================================================
   STORY CARDS
   مستطیلی + شیشه‌ای
   بدون ذوزنقه
========================================================= */

#stories .row.g-4 {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;

    margin-inline: 0;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 18px;
}

#stories .row.g-4 > .col-lg-3 {
    width: auto;
    padding: 0;
}

.story-link {
    display: block;
    height: 100%;
}

#stories .story-link {
    padding: 0;
    background: transparent;
    filter: none;
    transition: transform .35s ease;
}

#stories .story-link:hover {
    transform: translateY(-8px);
    filter: none;
}

.story-card-new {
    height: 100%;

    overflow: hidden;

    background: #fff;

    border: 1px solid rgba(255,255,255,.8);

    border-radius: 26px;

    box-shadow:
        0 12px 35px rgba(40,31,80,.07),
        inset 0 1px 0 rgba(255,255,255,.9);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    transition: .3s ease;
}

.story-card-new:hover {
    border-color: rgba(109,93,252,.25);

    box-shadow:
        0 22px 55px rgba(40,31,80,.14),
        inset 0 1px 0 rgba(255,255,255,1);
}

.story-image {
    height: 245px;

    position: relative;

    overflow: hidden;

    background: #eee;
}

#stories .story-image {
    height: 245px;

    margin: 7px 7px 0;

    border-radius: 21px 21px 10px 10px;

    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: .5s ease;
}

.story-card-new:hover .story-image img {
    transform: scale(1.06);
}

.default-cover,
.popular-default {
    width: 100%;
    height: 100%;

    display: grid;
    place-items: center;

    color: rgba(255,255,255,.9);

    font-size: 45px;
}

.cover-1 {
    background: linear-gradient(135deg,#6858f5,#9d8cff);
}

.cover-2 {
    background: linear-gradient(135deg,#e94b9a,#fb7185);
}

.cover-3 {
    background: linear-gradient(135deg,#2387d9,#54b8ed);
}

.cover-4 {
    background: linear-gradient(135deg,#e89a24,#f4c35b);
}

.story-overlay {
    position: absolute;
    inset: auto 0 0;

    padding: 25px 15px 15px;

    display: flex;
    justify-content: center;

    color: #fff;

    font-size: 11px;
    font-weight: 700;

    background:
        linear-gradient(
            transparent,
            rgba(18,14,35,.75)
        );

    opacity: 0;

    transform: translateY(8px);

    transition: .3s ease;
}

.story-card-new:hover .story-overlay {
    opacity: 1;
    transform: translateY(0);
}

.story-overlay i {
    margin-left: 5px;
}

.featured-badge {
    position: absolute;

    top: 12px;
    right: 12px;

    padding: 6px 9px;

    border-radius: 999px;

    color: #fff;

    background: rgba(25,20,49,.75);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    font-size: 9px;
    font-weight: 700;
}

.story-content {
    padding: 18px;
}

#stories .story-content {
    padding: 18px 20px 20px;
}

.story-content h3 {
    margin: 0 0 9px;

    font-size: 16px;
    font-weight: 800;
    line-height: 1.6;

    color: var(--dark);
}

.story-author {
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
}

.story-author i {
    margin-left: 4px;
}

.story-content p {
    min-height: 39px;

    margin: 12px 0;

    color: var(--muted);

    font-size: 10px;
    line-height: 1.9;
}

.story-info {
    display: flex;
    justify-content: space-between;

    gap: 5px;

    padding-top: 13px;

    border-top: 1px solid #f0eef5;

    color: #8b8797;

    font-size: 9px;
}

.story-info i {
    margin-left: 3px;
}


/* =========================================================
   EMPTY
========================================================= */

.empty-new {
    width: 100%;

    padding: 55px 25px;

    text-align: center;

    border: 1px dashed #dcd8e8;
    border-radius: 24px;

    background: #fbfaff;
}

.empty-new-icon {
    width: 62px;
    height: 62px;

    margin: 0 auto 15px;

    display: grid;
    place-items: center;

    border-radius: 20px;

    color: var(--primary);
    background: #efedff;

    font-size: 25px;
}

.empty-new h3 {
    margin-bottom: 8px;
    font-size: 17px;
}

.empty-new p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}


/* =========================================================
   POPULAR
========================================================= */

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.popular-card {
    min-height: 190px;

    display: grid;
    grid-template-columns: 35px 110px 1fr auto;
    align-items: center;

    gap: 15px;
    padding: 18px;

    background: rgba(255,255,255,.76);

    border: 1px solid rgba(235,233,243,.8);
    border-radius: 22px;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    transition: .25s ease;
}

.popular-card:hover {
    transform: translateY(-5px);

    box-shadow: var(--shadow);

    border-color: #ddd8ff;
}

.popular-number {
    color: #d2cfdb;
    font-size: 22px;
    font-weight: 900;
}

.popular-cover {
    width: 110px;
    height: 145px;

    overflow: hidden;

    border-radius: 15px;

    background: #eee;
}

.popular-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-default {
    font-size: 30px;

    background:
        linear-gradient(
            135deg,
            #6d5dfc,
            #a58fff
        );
}

.popular-content {
    min-width: 0;
}

.popular-tag {
    color: #f08a13;
    font-size: 9px;
    font-weight: 800;
}

.popular-content h3 {
    margin: 8px 0;

    font-size: 15px;
    font-weight: 800;
}

.popular-content p {
    margin: 0;

    color: var(--muted);

    font-size: 10px;
    line-height: 1.9;
}

.popular-meta {
    display: flex;
    gap: 15px;

    margin-top: 13px;

    color: #8b8797;

    font-size: 9px;
}

.popular-arrow {
    color: #aaa5b8;
    transition: .2s ease;
}

.popular-card:hover .popular-arrow {
    color: var(--primary);
    transform: translateX(-4px);
}


/* =========================================================
   GENRES
========================================================= */

.genres-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.genre-new {
    min-height: 175px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 18px 10px;

    border: 1px solid rgba(235,233,243,.8);
    border-radius: 22px;

    background: rgba(255,255,255,.74);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    transition: .28s ease;
}

.genre-new:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.genre-icon {
    width: 54px;
    height: 54px;

    display: grid;
    place-items: center;

    margin-bottom: 13px;

    border-radius: 17px;

    font-size: 21px;
}

.genre-new strong {
    font-size: 13px;
}

.genre-new span {
    margin-top: 5px;

    color: var(--muted);

    font-size: 9px;
}

.genre-romance .genre-icon {
    color:#e74791;
    background:#ffe9f4;
}

.genre-mystery .genre-icon {
    color:#6757e9;
    background:#eeecff;
}

.genre-horror .genre-icon {
    color:#5d6074;
    background:#eff0f5;
}

.genre-fantasy .genre-icon {
    color:#a04ee8;
    background:#f4eaff;
}

.genre-scifi .genre-icon {
    color:#2682d7;
    background:#e7f3ff;
}

.genre-comedy .genre-icon {
    color:#e99716;
    background:#fff3df;
}


/* =========================================================
   COMMUNITY
========================================================= */

.community-section {
    background: #faf9fd;
    padding-bottom: 105px;
}

.compact-heading {
    margin-bottom: 25px;
}

.forum-modern,
.comments-modern {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.forum-row {
    display: grid;
    grid-template-columns: 48px 1fr auto;

    align-items: center;

    gap: 13px;

    padding: 13px;

    background: rgba(255,255,255,.75);

    border: 1px solid rgba(235,233,243,.8);
    border-radius: 17px;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    transition: .22s ease;
}

.forum-row:hover {
    transform: translateX(-4px);

    border-color: #ddd8ff;

    box-shadow:
        0 10px 28px rgba(40,31,80,.06);
}

.forum-row-icon {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    color: var(--primary);
    background: #efedff;
}

.forum-row-icon.pink {
    color:#e74791;
    background:#ffeaf5;
}

.forum-row-icon.blue {
    color:#3580df;
    background:#e8f2ff;
}

.forum-row-icon.orange {
    color:#e99918;
    background:#fff2dc;
}

.forum-row-content strong,
.forum-row-content span {
    display: block;
}

.forum-row-content strong {
    font-size: 11px;
}

.forum-row-content span {
    margin-top: 5px;

    color: var(--muted);

    font-size: 9px;
}

.forum-row-meta {
    color: #8b8797;

    font-size: 9px;

    white-space: nowrap;
}

.forum-row-meta i {
    margin-right: 7px;
}

.comment-modern {
    display: grid;
    grid-template-columns: 45px 1fr;

    gap: 12px;

    padding: 17px;

    background: rgba(255,255,255,.75);

    border: 1px solid rgba(235,233,243,.8);
    border-radius: 17px;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.comment-avatar {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    border-radius: 14px;

    color: #fff;

    font-size: 14px;
    font-weight: 800;

    background:
        linear-gradient(
            135deg,
            #6757e9,
            #9b8cff
        );
}

.avatar-pink {
    background:
        linear-gradient(
            135deg,
            #e74791,
            #fb7185
        );
}

.avatar-blue {
    background:
        linear-gradient(
            135deg,
            #3181dd,
            #5bb5ed
        );
}

.comment-modern strong {
    font-size: 11px;
}

.comment-modern span {
    margin-right: 8px;

    color: #aaa6b5;

    font-size: 8px;
}

.comment-modern p {
    margin: 7px 0 0;

    color: #686475;

    font-size: 10px;
    line-height: 1.8;
}


/* =========================================================
   WRITERS
========================================================= */

.writers-section {
    padding: 0 0 105px;
    background: #faf9fd;
}

.writers-box {
    position: relative;
    overflow: hidden;

    padding: 65px;

    border-radius: 32px;

    color: #fff;

    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(255,255,255,.15),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #4e43bf,
            #7565f0 55%,
            #8b56cf
        );

    box-shadow:
        0 25px 70px rgba(76,62,175,.22);
}

.writers-decoration {
    width: 310px;
    height: 310px;

    position: absolute;

    left: -120px;
    bottom: -190px;

    border: 1px solid rgba(255,255,255,.12);

    border-radius: 50%;
}

.light-label {
    color: #fff;
    background: rgba(255,255,255,.12);
}

.writers-box h2 {
    max-width: 620px;

    margin: 18px 0 15px;

    font-size: 36px;
    line-height: 1.45;
    font-weight: 900;
}

.writers-box h2 span {
    color: #ffd6f0;
}

.writers-box p {
    max-width: 590px;

    color: rgba(255,255,255,.78);

    font-size: 13px;
    line-height: 2.1;
}

.writer-button {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-top: 13px;

    padding: 12px 19px;

    border-radius: 13px;

    color: #5548c8;
    background: #fff;

    font-size: 12px;
    font-weight: 800;

    transition: .25s ease;
}

.writer-button:hover {
    color: #5548c8;

    transform: translateY(-3px);

    box-shadow:
        0 12px 25px rgba(0,0,0,.13);
}

.writer-visual {
    height: 280px;

    position: relative;

    display: grid;
    place-items: center;
}

.writer-paper {
    width: 150px;
    height: 190px;

    position: relative;
    z-index: 2;

    display: grid;
    place-items: center;

    border-radius: 8px 20px 20px 8px;

    color: #6657e6;
    background: #fff;

    box-shadow:
        15px 20px 45px rgba(20,14,70,.22);

    font-size: 65px;

    transform: rotate(7deg);
}

.writer-circle {
    position: absolute;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,.25);
}

.circle-one {
    width: 260px;
    height: 260px;
}

.circle-two {
    width: 205px;
    height: 205px;
}

.writer-star {
    position: absolute;
    z-index: 3;

    font-size: 28px;

    color: #ffe5a7;
}

.star-one {
    right: 17%;
    top: 15%;
}

.star-two {
    left: 17%;
    bottom: 15%;

    font-size: 22px;
}


/* =========================================================
   MANAGEMENT
========================================================= */

.management-section {
    padding: 0 0 80px;
    background: #faf9fd;
}

.management-card {
    display: grid;
    grid-template-columns: auto 1fr auto;

    align-items: center;

    gap: 22px;

    padding: 24px 27px;

    border: 1px solid rgba(235,233,243,.8);
    border-radius: 22px;

    background: rgba(255,255,255,.75);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.management-icon {
    width: 54px;
    height: 54px;

    position: relative;

    display: grid;
    place-items: center;

    border-radius: 16px;

    color: var(--primary);
    background: #efedff;

    font-size: 22px;
}

.management-icon span {
    width: 8px;
    height: 8px;

    position: absolute;

    top: 7px;
    right: 7px;

    border-radius: 50%;

    background: #36c58b;

    border: 2px solid #fff;
}

.management-content > span {
    color: var(--primary);

    font-size: 9px;
    font-weight: 800;
}

.management-content h3 {
    margin: 5px 0;

    font-size: 15px;
    font-weight: 800;
}

.management-content p {
    margin: 0;

    color: var(--muted);

    font-size: 9px;
}

.management-button {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    padding: 11px 16px;

    border-radius: 12px;

    color: #fff;
    background: var(--primary);

    font-size: 10px;
    font-weight: 700;
}

.management-button:hover {
    color: #fff;
    background: var(--primary-dark);
}


/* =========================================================
   FOOTER
========================================================= */

.footer-new {
    padding: 75px 0 25px;

    color: #fff;

    background: #171526;
}

.footer-brand {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    font-size: 20px;
    font-weight: 900;
}

.footer-brand span {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background: rgba(255,255,255,.1);
}

.footer-description {
    max-width: 310px;

    margin: 17px 0;

    color: #a6a2b4;

    font-size: 11px;
    line-height: 2;
}

.footer-social {
    display: flex;
    gap: 8px;
}

.footer-social a {
    width: 35px;
    height: 35px;

    display: grid;
    place-items: center;

    border-radius: 11px;

    color: #bdb9c9;
    background: rgba(255,255,255,.06);

    transition: .2s ease;
}

.footer-social a:hover {
    color: #fff;
    background: rgba(255,255,255,.13);

    transform: translateY(-3px);
}

.footer-new h4 {
    margin-bottom: 17px;

    font-size: 12px;
    font-weight: 800;
}

.footer-new .col-lg-2 > a {
    display: block;

    margin-bottom: 10px;

    color: #aaa6b5;

    font-size: 10px;

    transition: .2s ease;
}

.footer-new .col-lg-2 > a:hover {
    color: #fff;
    transform: translateX(-3px);
}

.footer-small {
    margin: 0;

    color: #aaa6b5;

    font-size: 10px;
    line-height: 2;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-top: 55px;
    padding-top: 20px;

    border-top: 1px solid rgba(255,255,255,.08);

    color: #777387;

    font-size: 9px;
}

.footer-bottom i {
    color: #e74791;
    margin-right: 4px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1199px) {

    .main-menu .nav-link {
        padding-inline: 9px !important;
    }

    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .genres-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    #stories .row.g-4 {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .main-navbar {
        padding: 12px 0;
    }

    .main-menu {
        margin-top: 15px;
        gap: 2px;
    }

    .login-button,
    .user-button {
        margin-top: 10px;
    }

    .hero-new,
    .hero-row {
        min-height: auto;
    }

    .hero-new {
        padding: 75px 0 100px;
    }

    .hero-visual {
        margin-top: 60px;
    }

    .hero-image-wrap {
        width: min(100%,430px);
        height: 410px;
    }

    .writers-box {
        padding: 45px 35px;
    }

    .writer-visual {
        margin-top: 25px;
    }

    .management-card {
        grid-template-columns: auto 1fr;
    }

    .management-button {
        grid-column: 2;
        justify-self: start;
    }

    #stories .row.g-4 {
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 15px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .hero-new h1 {
        font-size: 41px;
    }

    .hero-description {
        font-size: 13px;
    }

    .hero-search {
        height: 58px;
    }

    .hero-search button {
        height: 44px;
        padding-inline: 17px;
    }

    .hero-links {
        gap: 15px;
        flex-wrap: wrap;
    }

    .hero-visual {
        width: 100%;
        height: 430px;
    }

    .hero-image-wrap {
        height: 370px;
    }

    .hero-icon-one {
        right: -5px;
    }

    .hero-icon-two {
        left: -5px;
    }

    .main-book {
        width: 225px;
        height: 305px;
    }

    .card-top {
        right: 0;
        top: 15px;
    }

    .card-bottom {
        left: 0;
        bottom: 20px;
    }


    /* Quick */
    .quick-section {
        margin-top: -25px;
    }

    .quick-grid {
        grid-template-columns: 1fr;
    }


    /* Sections */
    .content-section,
    .featured-section,
    .community-section {
        padding-top: 75px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-heading h2 {
        font-size: 23px;
    }


    /* Story cards */
    #stories .row.g-4 {
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 10px;
    }

    #stories .story-image {
        height: 190px;
        margin: 5px 5px 0;
        border-radius: 18px 18px 9px 9px;
    }

    #stories .story-content {
        padding: 14px 15px 16px;
    }

    #stories .story-content h3 {
        font-size: 13px;
    }

    #stories .story-content p {
        display: none;
    }

    #stories .story-card-new {
        border-radius: 22px;
    }


    /* Popular */
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .popular-card {
        grid-template-columns: 30px 90px 1fr auto;

        gap: 10px;
        padding: 13px;
    }

    .popular-cover {
        width: 90px;
        height: 125px;
    }

    .popular-content h3 {
        font-size: 13px;
    }

    .popular-meta {
        flex-direction: column;
        gap: 4px;
    }


    /* Writers */
    .writers-box {
        padding: 38px 24px;
        border-radius: 25px;
    }

    .writers-box h2 {
        font-size: 27px;
    }


    /* Management */
    .management-card {
        grid-template-columns: 1fr;

        text-align: center;

        justify-items: center;
    }

    .management-button {
        grid-column: auto;
        justify-self: center;
    }


    /* Footer */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .brand-text small {
        display: none;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
    }

    .hero-new h1 {
        font-size: 34px;
        letter-spacing: -1px;
    }

    .hero-search input {
        font-size: 11px;
    }

    .hero-image-wrap {
        height: 315px;
    }

    .hero-floating-icon {
        width: 47px;
        height: 47px;

        border-radius: 14px;

        font-size: 17px;
    }

    .hero-icon-one {
        right: 0;
        top: 30px;
    }

    .hero-icon-two {
        left: 0;
        bottom: 55px;
    }

    .hero-icon-three {
        right: 25px;
        bottom: -10px;

        width: 42px;
        height: 42px;
    }


    /* Story cards */
    #stories .row.g-4 {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    #stories .story-image {
        height: 235px;
    }

    #stories .story-content {
        padding: 16px 18px 18px;
    }


    /* Forum */
    .forum-row {
        grid-template-columns: 42px 1fr;
    }

    .forum-row-meta {
        display: none;
    }


    /* Popular */
    .popular-card {
        grid-template-columns: 25px 75px 1fr;
    }

    .popular-cover {
        width: 75px;
        height: 105px;
    }

    .popular-arrow {
        display: none;
    }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .hero-floating-icon {
        animation: none !important;
    }

    .hero-image,
    #stories .story-link,
    #stories .story-image img {
        transition: none !important;
    }
}
/* =========================================================
   REAL FORUM TASKBAR
========================================================= */

.community-section {
    padding: 80px 0;
    background: #fff;
}

.forum-taskbar {
    position: relative;
    overflow: hidden;

    padding: 18px;

    border-radius: 28px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.82),
            rgba(247,244,255,.68)
        );

    border: 1px solid rgba(255,255,255,.9);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    box-shadow:
        0 20px 55px rgba(70,55,120,.10);
}


/* HEADER */

.forum-taskbar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 8px 8px 18px;
}

.forum-taskbar-title {
    display: flex;
    align-items: center;

    gap: 13px;
}

.forum-taskbar-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #6d4aff,
            #d946ef
        );

    color: #fff;

    font-size: 20px;

    box-shadow:
        0 9px 24px rgba(109,74,255,.22);
}

.forum-taskbar-title span {
    display: block;

    margin-bottom: 3px;

    color: #9793a5;

    font-size: 10px;
}

.forum-taskbar-title h2 {
    margin: 0;

    color: #29263a;

    font-size: 17px;
    font-weight: 800;
}


/* BUTTONS */

.forum-taskbar-buttons {
    display: flex;
    align-items: center;

    gap: 8px;
}

.forum-view-button,
.forum-new-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 9px 13px;

    border-radius: 12px;

    text-decoration: none;

    font-size: 10px;

    transition: .25s ease;
}

.forum-view-button {
    color: #6848ed;

    background: rgba(255,255,255,.75);

    border: 1px solid rgba(109,74,255,.10);
}

.forum-new-button {
    color: #fff;

    background:
        linear-gradient(
            90deg,
            #6d4aff,
            #b83ed5
        );
}

.forum-view-button:hover,
.forum-new-button:hover {
    transform: translateY(-2px);
}


/* TOPIC LIST */

.forum-taskbar-list {
    display: flex;
    flex-direction: column;

    gap: 7px;
}


/* TOPIC */

.forum-taskbar-topic {
    display: flex;
    align-items: center;

    gap: 13px;

    min-height: 68px;

    padding: 10px 13px;

    border-radius: 18px;

    background: rgba(255,255,255,.48);

    border: 1px solid rgba(255,255,255,.75);

    text-decoration: none;

    transition:
        transform .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.forum-taskbar-topic:hover {
    transform: translateX(-4px);

    background: rgba(255,255,255,.88);

    box-shadow:
        0 10px 28px rgba(70,55,120,.08);
}


/* ICON */

.forum-topic-icon {
    width: 40px;
    height: 40px;

    min-width: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: rgba(109,74,255,.09);

    color: #6d4aff;

    font-size: 17px;
}


/* CONTENT */

.forum-topic-content {
    flex: 1;

    min-width: 0;
}

.forum-topic-content strong {
    display: block;

    margin-bottom: 5px;

    color: #302d3d;

    font-size: 13px;
    font-weight: 700;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.forum-topic-content span {
    display: flex;
    align-items: center;

    gap: 6px;

    color: #9995a6;

    font-size: 9px;
}

.forum-topic-content b {
    color: #c5c0d0;

    font-weight: 400;
}


/* STATS */

.forum-topic-stats {
    display: flex;
    align-items: center;

    gap: 13px;

    color: #9793a4;

    font-size: 10px;

    white-space: nowrap;
}

.forum-topic-stats span {
    display: inline-flex;
    align-items: center;

    gap: 4px;
}

.forum-topic-stats > i {
    color: #6d4aff;

    transition: .25s;
}

.forum-taskbar-topic:hover
.forum-topic-stats > i {
    transform: translateX(-4px);
}


/* EMPTY */

.forum-empty {
    display: flex;
    align-items: center;

    gap: 15px;

    padding: 22px;

    border-radius: 18px;

    background: rgba(255,255,255,.48);
}

.forum-empty > i {
    font-size: 28px;

    color: #6d4aff;
}

.forum-empty div {
    flex: 1;
}

.forum-empty strong {
    display: block;

    margin-bottom: 4px;

    color: #302d3d;

    font-size: 12px;
}

.forum-empty span {
    color: #9995a6;

    font-size: 9px;
}

.forum-empty a {
    padding: 9px 13px;

    border-radius: 11px;

    background: #6d4aff;

    color: #fff;

    text-decoration: none;

    font-size: 10px;
}


/* MOBILE */

@media (max-width: 768px) {

    .forum-taskbar-header {
        align-items: flex-start;

        flex-direction: column;
    }

    .forum-taskbar-buttons {
        width: 100%;
    }

    .forum-view-button,
    .forum-new-button {
        flex: 1;
    }

    .forum-topic-stats {
        gap: 7px;
    }

    .forum-topic-stats span {
        font-size: 9px;
    }

}

@media (max-width: 500px) {

    .forum-taskbar {
        padding: 12px;
    }

    .forum-taskbar-topic {
        gap: 9px;

        padding: 9px;
    }

    .forum-topic-icon {
        width: 36px;
        height: 36px;

        min-width: 36px;
    }

    .forum-topic-content strong {
        font-size: 11px;
    }

    .forum-topic-stats span {
        display: none;
    }

}
