/* 書籍・資料関連のスタイル */

/* ==============================
   CSS装丁カバー（Issue #35）
   自動生成画像の代わりに、タイトルを意匠化したテキストカバー
   ============================== */

.pt-bookcover {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    min-height: 190px;
    padding: 26px 24px 26px 34px;
    text-decoration: none;
    overflow: hidden;
}

/* 背 */
.pt-bookcover::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, .35);
}

/* 装飾の円 */
.pt-bookcover::after {
    content: "";
    position: absolute;
    right: -36px;
    bottom: -36px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}

.pt-bookcover--v0 {
    background: linear-gradient(155deg, #2F8F7E, #1C5A4E);
}

.pt-bookcover--v1 {
    background: linear-gradient(155deg, #E8854D, #A85420);
}

.pt-bookcover--v2 {
    background: linear-gradient(155deg, #5F9E8F, #2F6E60);
}

.pt-bookcover-title {
    font-family: var(--pt-font-display);
    color: #fff;
    font-size: 1.05em;
    font-weight: 700;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pt-bookcover-author {
    color: rgba(255, 255, 255, .8);
    font-size: .8em;
    font-weight: 700;
}

.pt-bookcover:hover .pt-bookcover-title {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.resources-shortcode {
    margin: 20px 0;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.resource-item {
    background: #fff;
    border: 1px solid var(--pt-line);
    border-radius: var(--pt-radius);
    box-shadow: var(--pt-card-shadow);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.resource-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--pt-card-shadow-hover);
    border-color: rgba(47, 143, 126, .45);
}

.resource-thumbnail {
    overflow: hidden;
}

.resource-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.resource-item:hover .resource-thumbnail img {
    transform: scale(1.05);
}

.resource-content {
    padding: 15px;
}

.resource-content h4 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    line-height: 1.3;
}

.resource-content h4 a {
    color: #333;
    text-decoration: none;
}

.resource-content h4 a:hover {
    color: var(--pt-primary-dark);
}

.resource-author {
    font-size: 0.9em;
    color: #666;
    margin: 5px 0;
}

.resource-type {
    display: inline-block;
    background: var(--pt-primary);
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8em;
    margin: 5px 0;
}

.resource-price {
    font-weight: bold;
    color: var(--pt-accent-dark);
    margin: 5px 0;
}

.resource-rating {
    color: var(--pt-accent);
    margin: 5px 0;
}

.resource-excerpt {
    font-size: 0.9em;
    color: #555;
    margin-top: 10px;
    line-height: 1.4;
}

.resource-more-link {
    text-align: center;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }
} 