/*!
Theme Name: FapStory
Theme URI: https://fapstory.com
Author: FapStory
Author URI: https://fapstory.com
Description: FapStory is a WordPress theme for adult Audio Story websites.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fapstory
*/

:root {
    /* Dark theme colors */
    --text-primary: #F1F5F9;
    --text-placeholder: #A6B7D2;
    --bg-primary: #111827;
    --bg-secondary: #3D4859;
    --bg: #1f2937;
    --border-hr: #3B475C;
    --hover-secondary: #48566a;
    --shadow: rgba(0, 0, 0, 0.3);
    --link: #8ca7ff;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    transition: all .3s;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.2;
    background: var(--bg);
    color: var(--text-primary);
}

a {
    color: var(--link);
    text-decoration: none;
}

svg {
    width: 24px;
    height: auto;
}

img {
    width: 100%;
    height: auto;
}

h1,
h2,
h3 {
    margin-bottom: 10px;
    font-weight: 500;
}

h1 {
    font-size: 1.5em;
}

h2 {
    font-size: 1.3em;
}

h3 {
    font-size: 1em;
}

p {
    margin-bottom: 15px;
}

ul,
ol {
    margin: 0 0 1em 2em;
}

.box-layout {
    background-color: var(--bg-primary);
    max-width: 600px;
    margin: auto;
}

.header-container {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 5px 10px;
    border-bottom: 2px solid var(--bg);
}

input[type="text"] {
    background: var(--bg);
    color: var(--text-placeholder);
    border: 0;
    height: 40px;
    padding: 0 15px;
    width: 100%;
    border-radius: 5px;
    outline: none;
}

form.search-form {
    flex: 1;
    position: relative;
}

.logo-link {
    color: var(--text-primary);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hmenu {
    border-bottom: 2px solid var(--bg);
}

ul.hmenu {
    margin: 0;
    list-style: none;
    display: flex;
    overflow-x: scroll;
    scrollbar-width: none;
	white-space:nowrap;
}

.hmenu li {
    flex: auto;
    text-align: center;
    border-right: 2px solid var(--bg);
}

.hmenu li:last-child {
    border-right: 0;
}

.hmenu a {
    display: block;
    padding: 8px;
}

.hmenu a:hover {
    background-color: var(--bg-secondary);
}


/* Contemt Area */

.audio-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.audio-item a {
    color: var(--text-primary);
}

footer.container {
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer.container p {
    margin: 0;
}

ul.fmenu {
    list-style: none;
    display: inline-flex;
    margin: 0;
    gap: 10px;
}

ul.fmenu a {
    padding: 8px;
    display: block;
}

ul.fmenu a:hover {
    text-decoration: underline;
}


/* Story Preview Player Styles */

.story-item {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    display: flex;
    border-bottom: 2px solid var(--bg);
}

.story-play {
    flex: unset;
    width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #00000036;
}

.story-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--progress, 0%);
    background: linear-gradient(to right, #051937, #243864, #445b95, #6780c9, #8ca7ff);
    opacity: 0.1;
    transition: width 0.1s linear;
    pointer-events: none;
}

.story-content {
    flex: 1;
    padding: 10px;
    position: relative;
}

.story-content a {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--text-primary);
}

.story-content a:hover {
    color: var(--link);
}

.story-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.story-play-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s;
}

.story-play-button:hover {
    background: var(--hover-secondary);
}

.story-play-button svg {
    width: 24px;
    height: 24px;
    fill: var(--text-primary);
}

.story-title {
    margin: 0;
    font-size: 1.1em;
    font-weight: 500;
}

.story-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: .7;
    font-size: 0.9em;
}

.category-loop,
.duration {
    display: flex;
    align-items: center;
    gap: 5px;
}

.category svg,
.duration svg {
    opacity: 0.7;
}

.preview-notice {
    background: rgb(0 0 0 / 33%);
    color: var(--text-primary);
    padding: 10px;
    backdrop-filter: blur(5px);
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.preview-notice.show {
    transform: translateY(0);
}


/* Full Audio styles */

.single-content {
    padding: 10px;
    border-bottom: 2px solid var(--bg);
}

h1.entry-title {
    font-size: 1.3rem;
    text-align: center;
}

h2.relt {
    padding: 10px;
    text-align: center;
}

.entry-audio-player {
    padding: 10px;
    border-bottom: 2px solid var(--bg);
    height: 25vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Soft Animated Gradient Background */
    background: linear-gradient(to right, #845ec2, #d65db1, #ff6f91, #ff9671);
    background-size: 400% 400%;
    animation: gradientShift 10s ease infinite;
    color: #fff;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

h1.fs-title {
    font-size: 16px;
    position: absolute;
    bottom: 0;
}

.full-audio-controls svg {
    width: 45px;
}

.full-audio-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.full-audio-controls button {
    background: transparent;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.full-audio-controls button:hover {
    transform: scale(1.3);
    color: #fff;
    transition: transform 0.2s ease, color 0.2s ease;
}

.full-audio-controls button:active {
    transform: scale(1.1) translateY(1px);
    filter: brightness(1.1);
}

button.rewind {
    flex: 1;
}

button.forward {
    flex: 1;
}

button.forward svg,
button.rewind svg {
    width: 30px;
}

.full-audio-progress {
    height: 8px;
    background: var(--text-primary);
    border-radius: 4px;
    margin: 15px 0;
    overflow: hidden;
    cursor: col-resize;
}

.full-audio-progress-bar {
    height: 100%;
    background: #ff4081;
    width: 0%;
    transition: width 0.3s ease;
}

.full-audio-time {
    font-size: 14px;
    text-align: center;
    color: #ccc;
}

.taxonomy-list {
    display: flex;
    gap: 5px;
    overflow-x: scroll;
    white-space: nowrap;
    scrollbar-width: none;
}

.taxonomy-list a {
    flex: auto;
    color: var(--text-placeholder);
    background: var(--bg);
    padding: 5px;
    border-radius: 5px;
    text-align: center;
}

.taxonomy-list a:hover {
    background: var(--link);
    color: var(--bg);
}

.entry-audio-player {
    position: relative;
}

.archive-content {
    text-align: center;
    padding: 8px;
    border-bottom: 2px solid var(--bg);
}

h1.archive-title {
    margin: 0;
    font-size: 20px;
}

.breadcrumb {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 10px;
}

.entry-content {
    color: var(--text-placeholder);
}


/* Pagination */

.pagination-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.pagination-list a {
    flex: auto;
    color: var(--text-placeholder);
    background: var(--bg);
    padding: 5px;
    border-radius: 5px;
    text-align: center;
}

.pagination-list a:hover {
    background: var(--link);
    color: var(--bg);
}

#live-search-results {
    position: absolute;
    background: var(--bg);
    border: 1px solid var(--bg);
    max-height: 300px;
    overflow-y: auto;
    z-index: 999;
    width: 100%;
    margin-top: 2px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    color: var(--text-primary);
    scrollbar-width: thin;
}

a.qslist {
    color: var(--text-primary);
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 5px 0px;
    padding-left: 5px;
    font-size: 16px;
}

a.qslist:hover {
    text-decoration: underline;
}

.search-Post {
    border-left: 3px solid #4caf50;
}

.search-Category {
    border-left: 3px solid #2196f3;
}

.search-Tag {
    border-left: 3px solid #ff9800;
}