/* Fanfic App Styles */
.fanfic-app {
    background-color: #f5f5f7;
    color: #333;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ff-header {
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 10;
}

.ff-title {
    font-size: 16px;
    font-weight: bold;
}

/* Top Sub-Tabs for Board */
.ff-sub-tabs {
    display: flex;
    background: #fff;
    padding: 5px 10px;
    border-bottom: 1px solid #eee;
    justify-content: center;
    gap: 20px;
}

.ff-sub-tab {
    padding: 8px 15px;
    font-size: 14px;
    color: #999;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.2s;
}

.ff-sub-tab.active {
    color: #fff;
    background: #333;
    font-weight: bold;
}

.ff-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    padding-bottom: 100px; /* Space for bottom nav */
}

.ff-page {
    display: none;
    height: 100%;
    flex-direction: column;
}

.ff-page.active {
    display: flex;
}

/* Post Card */
.ff-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.1s;
}

.ff-card:active {
    transform: scale(0.98);
}

.ff-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.ff-card-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-size: cover;
    margin-right: 10px;
    background-color: #eee;
}

.ff-card-author {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.ff-card-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.ff-card-preview {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ff-card-meta {
    margin-top: 10px;
    font-size: 12px;
    color: #999;
    display: flex;
    justify-content: space-between;
}

/* Bottom Nav */
.ff-nav {
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.03);
    z-index: 100;
}

.ff-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.ff-nav-item.active {
    color: #333;
    font-weight: bold;
}

.ff-nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

/* Header Icons */
.ff-header-icon {
    position: absolute;
    right: 15px;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    padding: 5px;
}

.ff-header-icon.left {
    left: 15px;
    right: auto;
}

/* Generator Modal */
.ff-modal-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ff-input-group {
    margin-bottom: 15px;
}

.ff-input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
}

.ff-input-group input, .ff-input-group textarea, .ff-input-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    outline: none;
    background: #fff;
}

.ff-input-group textarea {
    height: 100px;
    resize: none;
}

/* Reader Modal */
.ff-reader {
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ff-reader-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    white-space: pre-wrap;
}

.ff-reader-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.ff-reader-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    background: #fff;
}

.ff-comment-section {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.ff-comment-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f9f9f9;
}

.ff-comment-user {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
}

.ff-comment-text {
    font-size: 14px;
    color: #666;
}

/* Me Page */
.ff-me-header {
    background: #fff;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 15px;
}

.ff-me-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #eee;
    background-size: cover;
    margin: 0 auto 15px;
}

.ff-me-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.ff-me-bio {
    font-size: 14px;
    color: #999;
}

.ff-me-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.ff-stat-item {
    text-align: center;
}

.ff-stat-num {
    font-weight: bold;
    font-size: 18px;
}

.ff-stat-label {
    font-size: 12px;
    color: #999;
}
