
/* ================================
   STORIES PAGE
================================ */

.stories-page {
    padding: 55px 0 80px;
    min-height: 70vh;
}

/* ---------- Header ---------- */

.stories-header {
    margin-bottom: 35px;
}

.stories-header h1 {
    font-size: 34px;
    font-weight: 800;
    color: #20212c;
    margin-bottom: 10px;
}

.stories-header p {
    color: #858897;
    font-size: 14px;
    line-height: 2;
    margin: 0;
}

/* ---------- Search ---------- */

.stories-search {
    background: #ffffff;
    border: 1px solid #e8e7ee;
    border-radius: 18px;
    padding: 8px;
    display: flex;
    gap: 8px;
    margin-bottom: 35px;
    box-shadow: 0 10px 30px rgba(30, 30, 60, 0.05);
}

.stories-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 15px;
    font-family: inherit;
    font-size: 13px;
    background: transparent;
}

.stories-search button {
    border: none;
    background: #6d4aff;
    color: #fff;
    border-radius: 12px;
    padding: 11px 22px;
    font-family: inherit;
    cursor: pointer;
    transition: 0.3s;
}

.stories-search button:hover {
    background: #5838df;
    transform: translateY(-2px);
}

/* ---------- Filters ---------- */

.stories-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 30px;
}

.story-filter {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid #e7e5ef;
    color: #686b79;
    font-size: 12px;
    transition: 0.3s;
}

.story-filter:hover,
.story-filter.active {
    background: #6d4aff;
    color: #fff;
    border-color: #6d4aff;
    transform: translateY(-2px);
}

/* ---------- Story Card ---------- */

.story-card-page {
    background: #fff;
    border: 1px solid #ececf1;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    transition: 0.35s ease;
    animation: storyFadeUp 0.6s ease both;
}

.story-card-page:hover {
    transform: translateY(-8px);
    border-color: #ddd6ff;
    box-shadow: 0 18px 40px rgba(35, 30, 70, 0.11);
}

/* ---------- Cover ---------- */

.story-cover-page {
    height: 210px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.story-cover-page::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    top: -60px;
    right: -40px;
}

.story-cover-page::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    bottom: -45px;
    left: -25px;
}

.story-cover-page .story-icon {
    position: relative;
    z-index: 2;
    font-size: 65px;
    transition: 0.4s;
}

.story-card-page:hover .story-icon {
    transform: scale(1.12) rotate(-5deg);
}

/* ---------- Cover Colors ---------- */

.story-cover-1 {
    background: linear-gradient(135deg, #eee9ff, #dcd4ff);
}

.story-cover-2 {
    background: linear-gradient(135deg, #ffe9f1, #ffd4e3);
}

.story-cover-3 {
    background: linear-gradient(135deg, #ddf8f2, #c4eee6);
}

.story-cover-4 {
    background: linear-gradient(135deg, #fff1d8, #ffe1ad);
}

.story-cover-5 {
    background: linear-gradient(135deg, #e4f0ff, #cddfff);
}

.story-cover-6 {
    background: linear-gradient(135deg, #f4e6ff, #e3cfff);
}

/* ---------- Story Body ---------- */

.story-card-body {
    padding: 21px;
}

.story-card-body h2,
.story-card-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: #242532;
    margin-bottom: 9px;
    line-height: 1.7;
}

.story-summary {
    color: #858897;
    font-size: 12px;
    line-height: 1.9;
    margin-bottom: 13px;
}

.story-author {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #777a88;
    font-size: 11px;
}

.story-author i {
    color: #6d4aff;
    font-size: 14px;
}

/* ---------- Meta ---------- */

.story-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f3;
    margin-top: 17px;
    padding-top: 13px;
    color: #9295a2;
    font-size: 10px;
}

.story-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.story-card-meta i {
    color: #6d4aff;
}

/* ---------- Read Button ---------- */

.read-story-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #f3f0ff;
    color: #6848ed;
    border-radius: 11px;
    padding: 10px;
    margin-top: 16px;
    font-size: 12px;
    font-weight: 600;
    transition: 0.3s;
}

.read-story-btn:hover {
    background: #6d4aff;
    color: #fff;
}

/* ---------- Empty State ---------- */

.stories-empty {
    background: #fff;
    border: 1px solid #ececf1;
    border-radius: 22px;
    padding: 65px 25px;
    text-align: center;
}

.stories-empty-icon {
    font-size: 60px;
    margin-bottom: 18px;
}

.stories-empty h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stories-empty p {
    color: #9295a2;
    font-size: 13px;
}

/* ---------- Page Title Badge ---------- */

.stories-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f2efff;
    color: #6747e9;
    border-radius: 50px;
    padding: 8px 14px;
    font-size: 11px;
    margin-bottom: 15px;
}

/* ---------- Pagination ---------- */

.stories-pagination {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 45px;
}

.stories-pagination a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #fff;
    border: 1px solid #e7e5ed;
    color: #686b79;
    font-size: 12px;
    transition: 0.3s;
}

.stories-pagination a:hover,
.stories-pagination a.active {
    background: #6d4aff;
    border-color: #6d4aff;
    color: #fff;
}

/* ---------- Animation ---------- */

@keyframes storyFadeUp {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {

    .stories-page {
        padding: 40px 0 60px;
    }

    .stories-header {
        text-align: center;
    }

    .stories-header h1 {
        font-size: 28px;
    }

    .stories-search {
        margin-top: 25px;
    }

    .story-cover-page {
        height: 190px;
    }

}

@media (max-width: 480px) {

    .stories-search {
        flex-direction: column;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .stories-search input {
        background: #fff;
        border: 1px solid #e8e7ee;
        border-radius: 13px;
        padding: 13px;
    }

    .stories-search button {
        width: 100%;
    }

    .stories-filters {
        justify-content: center;
    }

}
