﻿
.reading-page {
    max-width: 760px;
    margin: 3.5rem auto;
    padding: 0 1.25rem;
    color: #1f1f1f;
}

/* Header */
.reading-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

    .reading-header h1 {
        font-size: 2rem;
        margin-bottom: .5rem;
    }

.reading-hint {
    color: #777;
    line-height: 1.8;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-bottom: 2rem;
}

.filter-search,
.filter-select {
    padding: .6rem .8rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    min-width: 180px;
}



/* Tags */
.tag-filter {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.tag-chip {
    cursor: pointer;
}

    .tag-chip input {
        display: none;
    }

    .tag-chip span {
        padding: .3rem .6rem;
        border-radius: 999px;
        border: 1px solid #ddd;
        font-size: .75rem;
        color: #555;
    }

    .tag-chip input:checked + span {
        background: #1f1f1f;
        color: #fff;
        border-color: #1f1f1f;
    }



.reading-title {
    font-size: 1.35rem;
    margin-bottom: .4rem;
}

    .reading-title a {
        text-decoration: none;
        color: inherit;
    }

.reading-summary {
    line-height: 1.9;
    color: #444;
}

.reading-meta {
    margin-top: .8rem;
    font-size: .75rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.category {
    font-style: italic;
}


.page-link {
    text-decoration: none;
    color: #666;
}

    .page-link.active {
        color: #000;
        font-weight: bold;
    }




.reading-header.compact {
    margin-bottom: 2rem;
}



.reading-header p {
    color: #666;
    line-height: 1.8;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    padding: 1.2rem;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 3rem;
}

    .filter-panel input,
    .filter-panel select {
        padding: .5rem .6rem;
        border: 1px solid #ddd;
        font-size: .9rem;
        background: #fff;
    }

    .filter-panel button {
        grid-column: span 2;
        padding: .6rem;
        border: none;
        background: #222;
        color: #fff;
        font-size: .9rem;
        cursor: pointer;
    }

.reading-item h2 {
    font-size: 1.3rem;
    margin-bottom: .5rem;
}

.reading-item p {
    line-height: 1.9;
    color: #444;
}

.meta {
    font-size: .8rem;
    color: #999;
    margin-top: .6rem;
}

.empty-state {
    text-align: center;
    color: #777;
    padding: 4rem 0;
}


/* Pagination */
.pagination {
    margin: 4rem 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}
    .pagination a {
        text-decoration: none;
        color: #666;
    }

        .pagination a.active {
            font-weight: bold;
            color: #000;
        }


.reading-detail {
    max-width: 720px;
    margin: 5rem auto;
    padding: 0 1.5rem;
    color: #1f1f1f;
}

.detail-header {
    margin-bottom: 3.5rem;
}

.detail-title {
    font-size: 2.2rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.detail-meta {
    font-size: .85rem;
    color: #777;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

    .detail-meta .dot {
        opacity: .5;
    }

.tag-list {
    margin-top: 1.2rem;
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.tag {
    font-size: .75rem;
    padding: .25rem .5rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #555;
}

.detail-body {
    font-size: 1.05rem;
    line-height: 2.1;
    margin-bottom: 4rem;
    white-space: normal;
}

.detail-footer {
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.reading-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.reaction-btn {
    background: none;
    border: 1px solid #ddd;
    padding: .4rem .7rem;
    font-size: .8rem;
    cursor: pointer;
    color: #444;
}

    .reaction-btn:hover {
        background: #f7f7f7;
    }

.back-link a {
    font-size: .85rem;
    color: #666;
    text-decoration: none;
}


.reading-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}



.reading-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0,0,0,.06);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .reading-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 40px rgba(0,0,0,.1);
    }

/* Header */
.card-header {
    display: flex;
    justify-content: space-between;
    font-size: .8rem;
    color: #777;
    margin-bottom: .5rem;
}

.content-type {
    background: #f1f3f6;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

/* Title */
.card-title {
    font-size: 1.3rem;
    margin: .5rem 0;
    line-height: 1.5;
    color: #222;
}

/* Summary */
.card-summary {
    color: #555;
    line-height: 1.8;
    margin: .5rem 0 1rem;
    max-height: 5.4em;
    overflow: hidden;
    position: relative;
}

    .card-summary::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 40px;
        background: linear-gradient(transparent, #fff);
    }

/* Meta */
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    font-size: .85rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Actions */
.card-actions {
    margin-top: auto;
}

.btn-read {
    display: inline-block;
    padding: .6rem 1.2rem;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity .2s ease;
}

    .btn-read:hover {
        opacity: .9;
    }



.filter-btn {
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: .6rem 1.4rem;
    cursor: pointer;
    font-size: .85rem;
}