/* Category Content Styles */
.category-content {
    padding: 40px 0;
    background: #f8f9fa;
}

.category-content .section-header {
    text-align: center;
    margin-bottom: 30px;
}

.category-content .section-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.category-content .category-description {
    color: #666;
    font-size: 16px;
    margin: 10px 0 30px 0;
    text-align: center;
}

/* Content Grid Layout */
.category-content .content-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

/* Content Item */
.category-content .content-item {
    display: flex;
    gap: 15px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: none;
    padding: 15px;
    transition: all 0.3s ease;
    min-height: 200px;
    align-items: stretch;
    cursor: pointer;
}

.category-content .content-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Content Image */
.category-content .content-item .content-image {
    flex: 0 0 120px;
    height: 160px;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-content .content-item .content-image .book-placeholder {
    width: 120px;
    height: 160px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.category-content .content-item .content-image .book-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    animation: categoryShimmer 2s infinite;
}

@keyframes categoryShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Content Info */
.category-content .content-item .content-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: space-between;
    min-height: 160px;
}

.category-content .content-item .content-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #2c3e50;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.6em;
    margin-bottom: 2px;
}

.category-content .content-item .content-info .subtitle {
    color: #666;
    font-size: 14px;
    margin: 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 1.2em;
    margin-top: -23px;
}

.category-content .content-item .content-info .description {
    color: #666;
    font-size: 12px;
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Price Section */
.category-content .content-item .content-info .price {
    font-weight: 600;
    color: #e74c3c;
    margin: 0;
    font-size: 14px;
    line-height: 1.2;
}

.category-content .content-item .content-info .original-price {
    text-decoration: line-through;
    color: #999;
    font-weight: normal;
    font-size: 13px;
    margin-left: 8px;
}

.category-content .content-item .content-info .seller {
    color: #666;
    font-size: 12px;
    margin: 0;
    line-height: 1.2;
}

/* Rating Section */
.category-content .content-item .content-info .rating {
    color: #f39c12;
    font-size: 12px;
    margin: 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-content .content-item .content-info .rating-left {
    display: flex;
    align-items: center;
}

.category-content .content-item .content-info .rating-left i {
    font-size: 11px;
    margin-right: 3px;
}

.category-content .content-item .content-info .rating-left span {
    font-size: 12px;
    color: #666;
}

.category-content .content-type-tag {
    display: inline-block;
    background: #ecf0f1;
    color: #666;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    margin: 0;
    transition: all 0.3s ease;
}

.category-content .content-type-tag:hover {
    background: #3498db;
    color: white;
}

/* Category Actions */
.category-content .category-actions {
    text-align: center;
    margin-top: 30px;
}

.category-content .section-action-btn {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e5e5e5;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
    margin: 15px auto 0;
    width: fit-content;
    cursor: pointer;
}

.category-content .section-action-btn:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #dee2e6;
    transform: translateY(-1px);
}

.category-content .section-action-btn.primary {
    background: #f8f9fa;
    color: #666;
    border-color: #e5e5e5;
}

.category-content .section-action-btn.primary:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    color: #495057;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .category-content .content-grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .category-content {
        padding: 30px 0;
    }
    
    .category-content .section-header h2 {
        font-size: 24px;
    }
    
    .category-content .category-description {
        font-size: 14px;
    }
    
    .category-content .content-grid-3 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .category-content .content-item {
        flex-direction: column;
        min-height: auto;
        gap: 12px;
        padding: 12px;
    }
    
    .category-content .content-item .content-image {
        flex: none;
        height: 140px;
    }
    
    .category-content .content-item .content-image .book-placeholder {
        width: 100px;
        height: 140px;
    }
    
    .category-content .content-item .content-info {
        min-height: auto;
        gap: 3px;
    }
    
    .category-content .content-item .content-info h3 {
        font-size: 15px;
        min-height: 2.4em;
    }
    
    .category-content .content-item .content-info .subtitle {
        font-size: 13px;
        min-height: 1.2em;
    }
    
    .category-content .content-item .content-info .description {
        font-size: 11px;
    }
    
    .category-content .content-item .content-info .price {
        font-size: 13px;
    }
    
    .category-content .content-item .content-info .seller {
        font-size: 11px;
    }
    
    .category-content .content-item .content-info .rating {
        font-size: 11px;
    }
    
    .category-content .content-item .content-info .rating-left {
        display: flex;
        align-items: center;
    }
    
    .category-content .section-action-btn {
        padding: 6px 12px;
        font-size: 12px;
        margin: 12px auto 0;
    }
}

@media (max-width: 480px) {
    .category-content .content-item {
        padding: 10px;
    }
    
    .category-content .content-item .content-info h3 {
        font-size: 14px;
    }
    
    .category-content .content-item .content-info .subtitle {
        font-size: 12px;
    }
    
    .category-content .content-item .content-info .description {
        font-size: 10px;
    }
} 